cco-anatomy

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

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:
bash
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.
生成简洁的项目映射图,展示每个文件的大小、token估算值和分类。 这样Claude只需读取一个文件,就能了解代码库结构,无需查看二十个文件。
为当前工作目录运行结构生成器:
bash
node ${CLAUDE_PLUGIN_ROOT}/src/anatomy.js "${CWD}"
将结果展示给用户。重点突出:
  1. 总token成本:如果读取所有文件所需的总token消耗
  2. 最大文件:应使用offset/limit的大型文件
  3. 分类占比:token主要集中在哪些部分(源码、配置、测试、文档)
如果用户希望将其作为持久化上下文使用,建议将输出保存到项目根目录的
PROJECT_ANATOMY.md
文件中。