mcpField
C
cco-anatomy

cco-anatomy

github.com/egorfedorovAgent workflows125200 installsUpdated 1d ago
Repository

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

  1. 01Maps files by size, token estimate, and category
  2. 02Reports total token cost
  3. 03Identifies largest files
  4. 04Breaks down tokens by category
  5. 05Can save output as PROJECT_ANATOMY.md

Use cases

  1. 01Review a codebase before choosing files to read
  2. 02Identify large files for offset/limit reading
  3. 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-anatomy

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

Details

From the project README

Project 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:

  1. Total token cost if all files were read
  2. Heaviest files that should use offset/limit
  3. 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