一键导入
codemap-creator
Generate codebase specs (semantic) for comprehensive project documentation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate codebase specs (semantic) for comprehensive project documentation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when you have a TDD plan from writing-tdd-plans with triplet tasks (RED/GREEN/REVIEW) and dependency graph, ready for execution
Use when you have a design document and need to create an implementation plan with enforced TDD and adversarial review gates per task
Use when you have a complex design document where feature decomposition has multiple valid approaches, unclear dependencies, or architectural tradeoffs that benefit from adversarial debate before creating a TDD plan
Use when test suite needs cleanup, when tests are brittle or break on refactors without behavior change, when there are tests coupled to implementation details, or when test maintenance burden is high
Use when reviewing code changes on the current branch, before merging or creating a PR, or when asked to do a code review
| name | codemap-creator |
| description | Generate codebase specs (semantic) for comprehensive project documentation |
Generate semantic codebase specs documentation for a codebase using parallel agents.
docs/codebase/STACK.md - Languages, frameworks, runtime, build toolsINTEGRATIONS.md - External APIs, databases, third-party servicesARCHITECTURE.md - Layers, patterns, data flow, key abstractionsSTRUCTURE.md - Directory organization, file naming, module boundariesCONVENTIONS.md - Naming, imports, error handling, code styleTESTING.md - Test framework, patterns, coverage requirementsCONCERNS.md - Technical debt, fragile areas, known risksGenerate codebase specs from scratch:
/codemap-creator
/codemap-creator src/
Update existing codebase specs with changed files:
/codemap-creator --update
/codemap-creator --update --diff
/codemap-creator --update --pr 456
/codemap-creator src/ → analyzes from src//codemap-creator → analyzes entire projectgit diff to find changed files (default when --update is used)The user invoked this skill with arguments: $ARGUMENTS
Update Mode (if --update present):
--diff or --pr <id>, default to --diff).)Create Mode (default):
.)# For --diff (default)
git diff --name-only && git diff --staged --name-only
# For --pr <id>
gh pr diff <id> --name-only
Launch 4 agents in parallel using a single message with multiple Task tool calls:
# Agent 1: Tech codebase specs (STACK.md, INTEGRATIONS.md)
Task(
subagent_type: "codebase-mapper-tech",
run_in_background: true,
prompt: "Root: <root_dir>"
)
# Agent 2: Architecture codebase specs (ARCHITECTURE.md, STRUCTURE.md)
Task(
subagent_type: "codebase-mapper-arch",
run_in_background: true,
prompt: "Root: <root_dir>"
)
# Agent 3: Quality codebase specs (CONVENTIONS.md, TESTING.md)
Task(
subagent_type: "codebase-mapper-quality",
run_in_background: true,
prompt: "Root: <root_dir>"
)
# Agent 4: Concerns spec (CONCERNS.md)
Task(
subagent_type: "codebase-mapper-concerns",
run_in_background: true,
prompt: "Root: <root_dir>"
)
Output status message and end your turn. The system wakes you when agents finish.
Create Mode:
## Codebase Specs Created
**Location**: docs/codebase/
| File | Content |
|------|---------|
| STACK.md | Languages, frameworks, runtime |
| INTEGRATIONS.md | External services, APIs |
| ARCHITECTURE.md | Layers, patterns, data flow |
| STRUCTURE.md | Directory organization |
| CONVENTIONS.md | Code style, naming, patterns |
| TESTING.md | Test framework, strategies |
| CONCERNS.md | Tech debt, risks |
**Next**: Planning agents will automatically use this documentation.
Update Mode:
## Codebase Specs Updated
**Source**: git diff | PR #X
**Location**: docs/codebase/
| File | Status |
|------|--------|
| STACK.md | Updated |
| INTEGRATIONS.md | Updated |
| ARCHITECTURE.md | Updated |
| STRUCTURE.md | Updated |
| CONVENTIONS.md | Updated |
| TESTING.md | Updated |
| CONCERNS.md | Updated |
| Scenario | Action |
|---|---|
| Root directory not found | Report error, suggest valid paths |
| No files in tree | Report empty, suggest different root |
| Agent fails | Report which agent failed, others continue |
| gh not installed | Report error for PR mode |
# Full specs documentation (project root)
/codemap-creator
# Specs for a subdirectory
/codemap-creator src/
# Update after changes
/codemap-creator --update
/codemap-creator --update --pr 456