Co-Pilot / 辅助式
更新于 a month ago

cartographer

Kkingbootoshi
0.4k
kingbootoshi/cartographer
80
Agent 评分

💡 摘要

Cartographer 是一个插件,使用并行 AI 子代理映射和记录代码库。

🎯 适合人群

软件开发人员技术项目经理DevOps 工程师代码审查员文档专家

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析中风险

风险:Medium。建议检查:是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险;依赖锁定与供应链风险。以最小权限运行,并在生产环境启用前审计代码与依赖。

Cartographer

A Claude Code plugin that maps and documents codebases of any size using parallel AI subagents.

Installation

Step 1: Add the marketplace to Claude Code:

/plugin marketplace add kingbootoshi/cartographer

Step 2: Install the plugin:

/plugin install cartographer

Step 3: Restart Claude Code (may be required for the skill to load)

Step 4: Use it:

/cartographer

Or just say "map this codebase" and it will trigger automatically.

What it Does

Cartographer orchestrates multiple Sonnet subagents to analyze your entire codebase in parallel, then synthesizes their findings into:

  • docs/CODEBASE_MAP.md - Detailed architecture map with file purposes, dependencies, data flows, and navigation guides
  • Updates CLAUDE.md with a summary pointing to the map

How it Works

  1. Runs a scanner script to get file tree with token counts (respects .gitignore)
  2. Plans how to split work across subagents based on token budgets
  3. Spawns Sonnet subagents in parallel - each analyzes a portion of the codebase
  4. Synthesizes all subagent reports into comprehensive documentation

Update Mode

If docs/CODEBASE_MAP.md already exists, Cartographer will:

  1. Check git history for changes since last mapping
  2. Only re-analyze changed modules
  3. Merge updates with existing documentation

Just run /cartographer again to update.

Token Usage

⚠️ NOTE: This skill spawns Sonnet subagents for accurate, reliable analysis. Depending on codebase size, this can use significant tokens. Be mindful of your usage.

You can ask Claude to use Haiku subagents instead for a cheaper run, but accuracy may suffer on complex codebases.

Requirements

  • tiktoken (for token counting): pip install tiktoken or uv pip install tiktoken

Full Documentation

See plugins/cartographer/README.md for detailed documentation.

License

MIT

五维分析
清晰度8/10
创新性8/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析

优点

  • 高效的代码库并行分析
  • 生成全面的文档
  • 智能更新现有文档

缺点

  • 大型代码库的高令牌使用
  • 依赖于 Sonnet 子代理
  • 可能需要手动重启

相关技能

ccmp

A
toolCo-Pilot / 辅助式
86/ 100

“看起来很能打,但别让配置把人劝退。”

claude-mods

A
toolCo-Pilot / 辅助式
86/ 100

“看起来很能打,但别让配置把人劝退。”

agentic-qe

A
toolCo-Pilot / 辅助式
86/ 100

“看起来很能打,但别让配置把人劝退。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 kingbootoshi.