A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Optimize your AI prompts for maximum efficiency. Reduce tokens, improve clarity, and learn better prompting techniques.
Save tokens. Be secure. Write better prompts. It's got a haKC button.
Why haKC? • Features • Install • Usage • Compression • Sites
In the age of AI, your prompt is your power. But are you leaking sensitive data? Wasting tokens on fluff? Confusing the model with verbose instructions?
Before haKChljs language-css ~45 tokens |
After haKChljs language-csharp ~7 tokens | 84% reduction |
| Feature | Benefit |
|---|---|
| DLP Security | Auto-redact credit cards, emails, SSNs, API keys |
| Token Savings | Reduce costs by 15-70% on API calls |
| Better Responses | Clear prompts = sharper AI outputs |
| One Click | Optimize with hotkey or button |
| Live Rules | Auto-updating rules from GitHub |
| Full Control | Export all data for your own analysis |
mindmap
root((PrompthaKCer))
Optimization
30+ Rules
5 Compression Levels
Token Counting
Real-time Stats
Security
Credit Card Redaction
Email Redaction
SSN Protection
API Key Detection
Platforms
ChatGPT
Claude
Gemini
Grok
Perplexity
Custom Sites
Customization
Custom Rules
Site Config
Keyboard Shortcuts
Import/Export
Ctrl+Shift+OSee exactly how your optimizations translate to real savings:
| Metric | What You See |
|---|---|
| Dollar Savings | Live cost calculations based on enabled AI platforms |
| Energy Impact | Compute energy saved with relatable comparisons |
| Scale Projections | Potential savings at 10K/100K/1M prompts per day |
| Beyond Cost | Latency, context, quality, security benefits |
Platform Pricing: Dynamic table showing cost savings per platform based on December 2025 API pricing for ChatGPT, Claude (Sonnet/Opus/Haiku), Gemini, DeepSeek, Grok, Copilot, Perplexity, Poe, and Mistral.
Energy Comparisons: Token savings translated to relatable terms like phone charges, LED bulb hours, laptop runtime, and EV miles.
# Clone the repository
git clone https://github.com/haKC-ai/prompthakcer.git
# Navigate to chrome://extensions/
# Enable "Developer mode"
# Click "Load unpacked"
# Select the prompthakcer folder
flowchart LR
subgraph Input["Input"]
A[Type Prompt]
B[Paste Text]
end
subgraph Action["⬡ haKC"]
C[Click Button]
D[Ctrl+Shift+O]
E[Right-Click Menu]
end
subgraph Output["Output"]
F[Optimized Prompt]
G[Token Stats]
H[Copy/Apply]
end
A --> C & D & E
B --> C & D & E
C & D & E --> F & G
F --> H
Ctrl+Shift+Ograph LR
subgraph Levels["Compression Levels"]
L1["[1] Light<br/>15-25%"]
L2["[2] Medium<br/>25-40%"]
L3["[3] Heavy<br/>40-60%"]
L4["[4] Maximum<br/>50-70%"]
end
L1 -->|More Aggressive| L2
L2 -->|More Aggressive| L3
L3 -->|More Aggressive| L4
style L1 fill:#1a1a2e,stroke:#00ffff,color:#00ffff
style L2 fill:#1a1a2e,stroke:#00ffff,color:#00ffff
style L3 fill:#1a1a2e,stroke:#ff00ff,color:#ff00ff
style L4 fill:#1a1a2e,stroke:#ff00ff,color:#ff00ff
| Level | Description | Savings | Best For |
|---|---|---|---|
| Light | Remove obvious fluff, keep tone | 15-25% | Professional emails |
| Medium | Balanced optimization | 25-40% | General use |
| Heavy | Aggressive compression | 40-60% | API calls |
| Maximum | Extreme reduction | 50-70% | Token-limited contexts |
| Category | Before | After |
|---|---|---|
| Fluff | "Could you please help me..." | "Help me..." |
| Fillers | "just", "really", "very", "basically" | (removed) |
| Redundancy | "I want you to write..." | "Write..." |
| Verbose | "in order to" | "to" |
| Structure | "provide a detailed explanation of" | "explain:" |
| Security | "4532-1234-5678-9012" | "[REDACTED]" |
| Platform | URLs | Status |
|---|---|---|
| ChatGPT | chat.openai.com, chatgpt.com | ✅ |
| Claude | claude.ai | ✅ |
| Gemini | gemini.google.com | ✅ |
| Grok | grok.x.ai, x.com/i/grok | ✅ |
| Perplexity | perplexity.ai | ✅ |
| Copilot | copilot.microsoft.com | ✅ |
| Poe | poe.com | ✅ |
| HuggingFace | huggingface.co/chat | ✅ |
| You.com | you.com | ✅ |
| Phind | phind.com | ✅ |
| Custom | Any URL you add | ✅ |
flowchart TB
subgraph Browser["Chrome Browser"]
subgraph Extension["PrompthaKCer Extension"]
SW["Service Worker"]
POP["Popup UI"]
OPT["Options Page"]
CS["Content Scripts"]
end
subgraph Libs["Shared Libraries"]
RE["rules-engine.js<br/>38+ Rules"]
SD["site-detector.js<br/>10+ Sites"]
HM["history-manager.js"]
end
subgraph Storage["Local Storage"]
HIST[(History)]
SETT[(Settings)]
RULES[(Custom Rules)]
end
end
subgraph Remote["GitHub"]
REMOTE["rules.json<br/>Auto-updating"]
end
POP --> RE & HM
OPT --> RE & SD
CS --> RE & SD & HM
RE <-->|Fetch/Cache| REMOTE
RE --> RULES
HM --> HIST
OPT --> SETT
style Extension fill:#12121f,stroke:#00ffff,color:#fff
style Libs fill:#1a1a2e,stroke:#ff00ff,color:#fff
style Storage fill:#0a0a14,stroke:#00ffff,color:#fff
style Remote fill:#12121f,stroke:#ff00ff,color:#fff
sequenceDiagram
participant U as User
participant CS as Content Script
participant RE as Rules Engine
participant GH as GitHub
participant ST as Storage
U->>CS: Click haKC button
CS->>RE: analyze(prompt)
alt Rules not cached
RE->>GH: Fetch rules.json
GH-->>RE: 38 rules (v1.2.0)
RE->>ST: Cache rules
end
RE->>RE: Apply compression rules
RE->>RE: Redact sensitive data
RE->>RE: Calculate statistics
RE-->>CS: {optimized, stats}
CS->>U: Show modal with results
U->>CS: Apply optimized prompt
CS->>ST: Save to history
CS->>U: "Prompt optimized!"
Create your own optimization rules in Settings > Rules > Add Custom Rule:
// Example: Remove all emoji
{
name: "Remove Emoji",
pattern: "[\\u{1F300}-\\u{1F9FF}]",
flags: "gu",
replace: ""
}
// Example: Shorten common phrase
{
name: "Shorten Please Note",
pattern: "please note that",
flags: "gi",
replace: "note:"
}
| Shortcut | Action |
|---|---|
Ctrl+Shift+O | Optimize prompt on page |
Alt+P | Open popup |
Customize at chrome://extensions/shortcuts
prompthakcer/
├── manifest.json # Chrome extension manifest (MV3)
├── rules.json # Remote-synced optimization rules
├── background/
│ └── service-worker.js # Background service worker
├── content/
│ ├── content.js # Content script for AI sites
│ └── modal.css # On-page modal styles
├── lib/
│ ├── rules-engine.js # Core optimization engine
│ ├── site-detector.js # Site detection and config
│ └── history-manager.js # History management
├── popup/
│ ├── popup.html/css/js # Extension popup
├── options/
│ ├── options.html/css/js # Settings page
└── icons/
└── icon*.png # Extension icons
Don't just chat. haKC.
Made with ⬡ by haKC.ai
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
AI image generation skill for Claude Code -- Creative Director powered by Gemini