Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add autohandai/code-cli --skill architecture-breakdown -a claude-code
Open on GitHub

What 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:line references

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-code

2Manually: put the files in place

~/.claude/skills/architecture-breakdown/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/architecture-breakdown/

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

Similar skills

All skills for Code review and refactoring →

From the same set14

goal-writer Turns a rough request into a verifiable objective for /goal mode. Use it when an agent needs to work with less supervision and a clear condition for stopping. CX Codex +1 ★ 211repo stars git-analysis Answers questions about git history: what changed, who wrote a line, where a regression crept in. Useful for review, bisect-style narrowing and changelogs. CX Codex +1 ★ 211repo stars extension-builder Builds, ports, and tests Autohand Code extensions from natural language prompts or Pi packages. Essential for writing custom tools, agents, and CLI hooks. CX Codex +1 ★ 211repo stars deep-research This skill investigates a topic across multiple sources and saves a cited report. Use it when claims need checking, comparison, and a documented trail. CX Codex +1 ★ 211repo stars data-scientist A skill that turns questions about your data into reproducible scripts: locate the files, clean them, report metrics with honest uncertainty. CX Codex +1 ★ 211repo stars computer-control Controls native desktop apps and browser windows via Autohand Computer Use. Guides the agent to inspect application state, click UI elements, and confirm results. CX Codex +1 ★ 211repo stars code-reviewer This skill assesses a codebase across ten areas and reports actionable findings with priorities. Use it to review a project as it currently stands. CX Codex +1 ★ 211repo stars brainstorm Turns a rough idea into a scoped design before anyone writes code. Useful when you need to weigh approaches or spec out a feature. CX Codex +1 ★ 211repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor