Install
$ agentstack add skill-huzaifa525-claude-code-optimizer-optimize-tokens ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Search for the latest token optimization strategies and analyze this project's setup.
Steps
1. Web Research
Search for the latest tips:
- "Claude Code token optimization 2026"
- "Claude Code reduce token usage"
- "Claude Code cost saving tips"
- "Claude Code .claudeignore best practices"
Summarize the top 5-10 NEW tips found online.
2. Analyze Current Project
Check CLAUDE.md:
- Does it exist? How many lines?
- Is it under 200 lines?
- Does it have entry points, flow diagrams, decisions?
Check .claudeignore:
- Does it exist?
- Does it cover: node_modules, dist, lock files, binary assets?
Check .claude/rules/:
- Are rules path-scoped?
- Are there rules loading unnecessarily?
Check .claude/skills/:
- Are exploration skills using
context: fork? - Are side-effect skills using
disable-model-invocation: true?
Check MCP servers:
- How many tool definitions are loaded?
- Any unused servers?
Check settings:
- Is MAXTHINKINGTOKENS capped?
- What model is being used?
3. Output Report
## Token Optimization Report
### Current Setup Score: [X/10]
### What's Good
- [things already optimized]
### Quick Wins (do now)
| Action | Estimated Savings | Effort |
|--------|------------------|--------|
| [action] | [X%] | [Low/Med/High] |
### Latest Tips from Web
- [tip 1 — source]
- [tip 2 — source]
- [tip 3 — source]
### Recommended Changes
1. [specific change with file path]
2. [specific change with file path]
3. [specific change with file path]
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: huzaifa525
- Source: huzaifa525/claude-code-optimizer
- License: MIT
- Homepage: https://www.npmjs.com/package/claude-code-optimizer
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.