cco-claudemd
Analyze CLAUDE.md files for token bloat and suggest optimizations
How do I install this agent skill?
npx skills add https://github.com/egorfedorov/claude-context-optimizer --skill cco-claudemdIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill analyzes CLAUDE.md files for token optimization. It is generally safe but carries a low risk of indirect prompt injection as it processes user-controlled files from the project directory.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
CLAUDE.md Analyzer
Analyze CLAUDE.md files in the current project for token bloat and optimization opportunities.
Run the analyzer:
node ${CLAUDE_PLUGIN_ROOT}/src/claudemd-analyzer.js "${CWD}"
Present the output to the user. The analyzer checks for:
- Overall size — files over 2K tokens get flagged
- Large sections — sections over 1K tokens
- Duplicate lines — repeated content
- Verbose patterns — "please make sure to", "it is important that", etc.
- Long code blocks — examples over 20 lines
- Excessive whitespace — empty lines eating tokens
For each issue found, explain the savings potential and suggest a concrete fix.
If the user wants to apply fixes, help them edit the CLAUDE.md directly using the Edit tool.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/egorfedorov/claude-context-optimizer/cco-claudemd">View cco-claudemd on skillZs</a>