About cco-anatomy
cco-anatomy generates a compact map of a project’s files, including size, token estimates, and categories, for Claude users assessing codebase context. It highlights token totals, large files, and category distribution.
Key features
- 01Maps files by size, token estimate, and category
- 02Reports total token cost
- 03Identifies largest files
- 04Breaks down tokens by category
- 05Can save output as PROJECT_ANATOMY.md
Use cases
- 01Review a codebase before choosing files to read
- 02Identify large files for offset/limit reading
- 03Save a project map as persistent context
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ egorfedorov/ claude-context-optimizer --skill cco-anatomyAfter installing, type/cco-anatomyin Claude Code to confirm it loaded.
Details
From the project READMEProject Anatomy Generator
Generate a compact project map showing every file with its size, token estimate, and category. This lets Claude understand the codebase structure by reading one file instead of twenty.
Run the anatomy generator for the current working directory:
node ${CLAUDE_PLUGIN_ROOT}/src/anatomy.js "${CWD}"
Present the output to the user. Highlight:
- Total token cost if all files were read
- Heaviest files that should use offset/limit
- Category breakdown — where most tokens live (source, config, tests, docs)
Suggest saving the output to PROJECT_ANATOMY.md in the project root if the user wants to use it as persistent context.
Comments
Markdown supported