mcpField
C
cco-claudemd

cco-claudemd

github.com/egorfedorovAgent workflows125256 installsUpdated 1d ago
Repository

About cco-claudemd

cco-claudemd is a skill for analyzing a project's CLAUDE.md files for token-heavy content. It reports potential savings and suggests edits for Claude Code users.

Key features

  1. 01Flags oversized files and sections
  2. 02Finds duplicate lines and verbose wording
  3. 03Identifies long code blocks and excess whitespace
  4. 04Explains savings and suggests fixes

Use cases

  1. 01Review CLAUDE.md files for token bloat
  2. 02Find concrete ways to shorten project instructions

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/egorfedorov/claude-context-optimizer --skill cco-claudemd

After installing, type/cco-claudemdin Claude Code to confirm it loaded.

Details

From the project README

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.

Comments

Markdown supported