codemap
БесплатноБез исполняемых скриптовНе проверенCreate a seven-document architecture map when the user asks to map a codebase.
от jellydn★ 130 звёзд на GitHubОб этом скилле
Codemap
What I do
Analyze your entire codebase and create 7 comprehensive documentation files in .planning/codebase/:
- STACK.md - Technologies, dependencies, configuration
- INTEGRATIONS.md - 3rd party providers, APIs, databases, auth providers
- ARCHITECTURE.md - System patterns, layers, data flow
- STRUCTURE.md - Directory layout, key locations, naming conventions
- CONVENTIONS.md - Code style, patterns, error handling
- TESTING.md - Framework, structure, mocking, coverage
- CONCERNS.md - Tech debt, bugs, security, performance issues
When to use me
Use this skill when you need to:
- Onboard new developers to understand the codebase quickly
- Plan new features with full context of existing patterns
- Understand code conventions before making changes
- Identify technical debt and areas of concern
- Document the current state of the project
How it works
This skill runs four focus passes. Use parallel file-reading and file-writing workers when the runtime provides them. If suitable workers are unavailable, perform the same passes sequentially in the current context:
- Tech → Analyzes stack and integrations → STACK.md, INTEGRATIONS.md
- Architecture → Analyzes patterns and structure → ARCHITECTURE.md, STRUCTURE.md
- Quality → Analyzes conventions and testing → CONVENTIONS.md, TESTING.md
- Concerns → Identifies tech debt and issues → CONCERNS.md
Each pass:
- Explores the codebase for its focus
- Uses templates from
$SKILL_PATH/templates/ - Writes documents directly to
.planning/codebase/ - Returns only confirmation (not document contents)
The orchestrator:
- Creates
.planning/codebase/directory - Runs the four passes in parallel only when suitable workers are available
- Otherwise runs those passes sequentially in the current context
- Collects confirmations
- Verifies all documents created
- Commits the codebase map (if configured)
Process
Scope and Runtime
Accept an optional --paths <p1,p2,...> for an incremental map. Validate repository-relative prefixes before use: reject absolute paths, .. components, and shell metacharacters (;, backticks, $, &, |, <, >). If no supplied path is valid, stop and ask for a corrected scope; do not silently expand to the whole repository. Pass the same normalized scope to every mapper and every sequential pass. Do not interpolate unchecked input into shell commands.
Use the actual current date for all analysis-date placeholders. For scoped refreshes, retain documented information outside the scope and state which prefixes were rechecked.
Use parallel agents only when the runtime supports file-reading and file-writing workers. Do not assume an explore agent can write files or use a browser agent as a code mapper. If suitable workers are unavailable, perform the four focus passes sequentially in the current context, using the same scope and templates. Do not require GSD-specific SDK commands or agent types.
Step 1: Check Existing Map
If .planning/codebase/ already exists, prompt:
.planning/codebase/ already exists. What's next?
1. Refresh - Delete existing and remap codebase
2. Update - Keep existing, only update specific documents
3. Skip - Use existing codebase map as-is
Step 2: Create Structure
Create the output directory:
mkdir -p .planning/codebase
Step 3: Run the Four Focus Passes
Run the passes in parallel only when the runtime supports file-reading and file-writing workers. Otherwise perform them sequentially in the current context. Parallel workers are optional, not required. Each pass must receive the validated scope, current date, and the appropriate template paths from $SKILL_PATH/templates/. The examples below describe assignments, not mandatory API parameter names. While a parallel worker is active, do not duplicate its exploration or write its documents.
Tech Agent:
agent_type: explore
description: Map codebase tech stack
prompt: |
Focus: tech
Analyze this codebase for technology stack and external integrations.
Write these documents to .planning/codebase/:
- STACK.md - Languages, runtime, frameworks, dependencies, configuration
- INTEGRATIONS.md - External APIs, databases, auth providers, webhooks
Use the templates from map-codebase skill. Explore thoroughly.
Write documents directly. Return confirmation only.
Architecture Agent:
agent_type: explore
description: Map codebase architecture
prompt: |
Focus: arch
Analyze this codebase architecture and directory structure.
Write these documents to .planning/codebase/:
- ARCHITECTURE.md - Pattern, layers, data flow, abstractions, entry points
- STRUCTURE.md - Directory layout, key locations, naming conventions
Use the templates from map-codebase skill. Explore thoroughly.
Write documents directly. Return confirmation only.
Quality Agent:
agent_type: explore
description: Map codebase conven
Установить codemap в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл codemap?
Create a seven-document architecture map when the user asks to map a codebase.
Как установить скилл codemap?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл codemap запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic