egorfedorov

cco-anatomy

Generate a compact project map so Claude understands the codebase without opening every file

egorfedorov 102 10 Updated 5mo ago
GitHub

Install

npx skillscat add egorfedorov/claude-context-optimizer/cco-anatomy

Install via the SkillsCat registry.

About this skill

Generates a compact map of every file in a project with its size, token estimate, and category. It solves the problem of Claude needing to read many files individually to understand a codebase by condensing the structural overview into a single output. Use it when working with an unfamiliar or large codebase to quickly assess file sizes, token costs, and category distribution before reading individual files.

SKILL.md

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.