cco-claudemd
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCLAUDE.md Analyzer
CLAUDE.md分析工具
Analyze CLAUDE.md files in the current project for token bloat and optimization opportunities.
Run the analyzer:
bash
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.
分析当前项目中的CLAUDE.md文件,排查令牌冗余问题并寻找优化空间。
运行分析工具:
bash
node ${CLAUDE_PLUGIN_ROOT}/src/claudemd-analyzer.js "${CWD}"将分析结果展示给用户。该分析工具会检查以下内容:
- 整体大小 —— 超过2K令牌的文件会被标记
- 大段内容 —— 超过1K令牌的章节
- 重复行 —— 重复出现的内容
- 冗余表述 —— 如“请务必确保”、“重要的是”等表述
- 长代码块 —— 超过20行的示例代码
- 过多空白 —— 占用令牌的空行
针对发现的每个问题,说明可节省的令牌数量潜力并给出具体的修复建议。
如果用户希望应用修复方案,使用编辑工具直接帮助他们修改CLAUDE.md文件。