architecture-breakdown — Claude Code skill: setup and overview
Maps an unfamiliar codebase into modules, boundaries, data flows, and hot spots. Useful before major refactoring or during onboarding.
npx skills add autohandai/code-cli --skill architecture-breakdown -a claude-codeWhat architecture-breakdown does
The skill inspects an unfamiliar project using environment tools like find_grep, file_stats, and git_log. It checks build manifests to locate entry points, follows imports between layers, and identifies cross-cutting concerns like auth or logging.
Instead of generic summaries, it generates a concrete map. The result includes a module table with dependencies and call traces with exact file:line references. It also lists architectural risks like cyclic imports or god files. Every finding must point to an exact file path, and the skill avoids suggesting rewrites unless asked. Analyzing high-churn files requires terminal access to Git.
What it helps with
- map an unfamiliar codebase architecture before making changes
- locate entry points, HTTP routes, and background jobs
- detect high-churn files and god modules via Git history
- trace end-to-end data flows with exact
file:linereferences
Example prompts for the agent
- Map the architecture of this repository before I begin refactoring.
- Break down the backend architecture into layers, key entry points, and structural risks.
- Survey this codebase and generate a module table with dependency boundaries.
How to install architecture-breakdown
1Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill architecture-breakdown -a claude-code2Manually: put the files in place
~/.claude/skills/architecture-breakdown/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/architecture-breakdown/
1Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill architecture-breakdown -a codex2Manually: put the files in place
.agents/skills/architecture-breakdown/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill architecture-breakdown -a cursor2Manually: put the files in place
.cursor/skills/architecture-breakdown/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install autohandai/code-cli architecture-breakdown2Manually: put the files in place
.github/skills/architecture-breakdown/SKILL.md1Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill architecture-breakdown -a gemini-cli2Platform CLI
gemini skills install https://github.com/autohandai/code-cli --path src/skills/builtin/architecture-breakdownManually: put the files in place
.devin/skills/architecture-breakdown/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add autohandai/code-cli --skill architecture-breakdown -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about architecture-breakdown
How do I install architecture-breakdown in Claude Code?
Run npx skills add autohandai/code-cli --skill architecture-breakdown -a claude-code.
What does architecture-breakdown do?
It analyzes a codebase to map entry points, module boundaries, data flows, and structural risks without proposing unsolicited rewrites.
What tools does architecture-breakdown require?
It uses file inspection tools and executes git_log via run_command to inspect commit statistics for high-churn files.
Source text
SKILL.md · Apache-2.0
--- name: architecture-breakdown description: Map an unfamiliar codebase or subsystem into modules, boundaries, data flow, entry points, and hot spots, and produce a breakdown other engineers can navigate by. Use before large changes, onboarding, or when asked how something is structured. allowed-tools: read_file find_grep fff_find list_tree file_stats git_log run_command --- # Break the architecture down Produce a map, not a summary. The reader should be able to open the right file for any responsibility without searching. ## Survey 1. Entry points: binaries, `main`, CLI commands, HTTP routes, jobs, event handlers. Find them from the build config and manifests, then follow imports. 2. Layers and boundaries: what talks to what. Note the direction of dependencies and any cycles. 3. State: where data lives (stores, caches, files), who owns each piece, and how it moves between layers. 4. Cross-cutting concerns: config, auth, logging, errors, retries, feature flags, i18n. 5. Hot spots: largest files, most-changed files (`git_log --stat` style via `run_command`), most-imported modules. These are where changes hurt. ## Write the breakdown - **One-paragraph shape**: what the system is and its top three modules. - **Module table**: module, responsibility, key files, depends on, depended on by, owner if known. - **Data flow**: two or three end-to-end traces from entry point to effect, with file:line references. - **Boundaries to respect**: the seams that keep layers separate and the rules the code already follows. - **Risks**: cycles, god files, duplicated logic, missing tests, hidden global state, with evidence. - **Where to start** for the change the user has in mind. Keep every claim tied to a path. Mark inferences. Do not propose rewrites unless asked; the breakdown exists so changes fit the structure that is there.
© autohandai · Apache-2.0 · autohandai/code-cli