architecture-map
Skill1 starsChanged 3 months agoMITView on GitHub
Map a codebase into an interactive architecture explainer, split the repo into modules, explore each one with parallel read-only subagents, then synthesize a published page with a system context diagram, a module dependency graph derived from real imports, sequence diagrams for the key request and data flows, the data model, a guided tour of the most important files with permalinks to exact lines, and a hotspot and risk map from git history. Diagrams are inline SVG that work in light and dark themes. Use whenever the user wants to understand, document, onboard onto, or explain an unfamiliar codebase, see how a system fits together, prepare for a large refactor, or produce an architecture overview for a team. Also triggers on /architecture-map with an optional focus area.
- Reads credentials
11 other projects use a version of this.
Adopted by
Most recently taken up by
- bryanus1/agent-skillstheir own version, first seen Nov 29, 2026
- jeanjerome/pi-495their own version, first seen Nov 22, 2026
- MartinPLarsen/claude-architecture-skillstheir own version, first seen Nov 22, 2026
- RaditteAnggoro/skill-for-lazy-developertheir own version, first seen Nov 8, 2026
- DMcSweeney/ClaudeSkillstheir own version, first seen Oct 15, 2026
- kevintsai1202/architecture-maptheir own version, first seen Oct 2, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- almendili/skills★ 382same name
- MartinPLarsen/claude-architecture-skills★ 4same name
- cristian-robert/claude-code-harness★ 2same name
- Mesteriis/Engineering-Bible-AI★ 2same name
- jeanjerome/pi-495★ 1same name
- RaditteAnggoro/skill-for-lazy-developer★ 1same name
- zanthrash/skills★ 1same name
- bryanus1/agent-skills★ 0same name
- DMcSweeney/ClaudeSkills★ 0same name
- kevintsai1202/architecture-map★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository79 other files it gives its agents.
- add-i18nSkill
- add-missing-testsSkill
- align-minimum-release-ageSkill
- audit-licensesSkill
- audit-vulnerabilitiesSkill
- audit-web-vitalsSkill
- build-landing-pageSkill
- claim-all-unassigned-prsSkill
- claim-unassigned-prsSkill
- dedupe-and-prune-depsSkill
- driftSkill
- expert-accessibilitySkill
- expert-appsecSkill
- expert-backendSkill
- expert-dxSkill
- expert-frontend-performanceSkill
- expert-gas-optimizationSkill
- expert-qaSkill
- expert-smart-contract-securitySkill
- expert-tokenomicsSkill
- expert-uiSkill
- expert-uxSkill
- expert-web3-dappSkill
- extract-design-systemSkill
- fix-all-issuesSkill
- fix-dependabot-alertSkill
- fix-dependabot-prSkill
- fix-failing-ciSkill
- fix-flaky-testsSkill
- fix-issueSkill
- fix-renovate-prSkill
- fleet-health-dashboardSkill
- isometric-stack-mapSkill
- nudge-stale-prsSkill
- optimize-all-github-actionsSkill
- optimize-github-actionsSkill
- optimize-imagesSkill
- optimize-pwaSkill
- optimize-seo-aeoSkill
- panel-accessibilitySkill
- panel-architecture-scalabilitySkill
- panel-dapp-uxSkill
- panel-developer-experienceSkill
- panel-qa-release-readinessSkill
- panel-smart-contract-securitySkill
- panel-tokenomicsSkill
- panel-ui-designSkill
- panel-ux-reviewSkill
- panel-web3-integrationSkill
- panel-web-app-securitySkill
- panel-web-performanceSkill
- persona-accessibility-userSkill
- persona-crypto-newcomerSkill
- persona-designerSkill
- persona-developerSkill
- persona-gen-zSkill
- persona-grandmaSkill
- persona-growth-hackerSkill
- persona-investorSkill
- persona-mobile-commuterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Not for answering one narrow question about a file (just read it).
- Very specific: line 87
Links: when the repo has a GitHub remote, link citations as permalinks pinned to the current commit …
- Very specific: line 94
Otherwise: write architecture-<repo>.html outside the tracked tree and open it locally.
- Very specific: line 95
Do not commit the page to the repo unless the user asks.
- Distinctive: line 112
Before a refactor, offer a blast-radius view: every module, flow, and test that depends on the target path.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Architecture Map
Goal: give someone who has never seen this repo an accurate mental model in fifteen minutes, what the pieces are, how a request travels through them, where the data lives, which files matter, and where the dragons are. Every claim is grounded in a file and line they can open.
When to use
- "Explain this codebase" / "how does this all fit together?"
- Onboarding a new teammate, or returning to a repo after months away
- "Before we refactor X, show me everything it touches"
- "Make an architecture overview we can share with the team"
/architecture-map [focus=<area>]: e.g.focus=auth,focus=checkout flow,focus=refactor:src/billing- Not for answering one narrow question about a file (just read it).
1. Survey the repo
Quickly establish the frame before splitting the work:
- Languages, frameworks, package manager, monorepo layout (
workspaces,packages/,apps/,go.work, Cargo workspace). - Entry points: servers, CLIs, workers, cron jobs, serverless handlers, front-end routes, mobile app roots.
- External systems: databases, queues, caches, third-party APIs, auth providers (from config, env var names in
.env.example, IaC,docker-compose). - Deploy shape: Dockerfiles, IaC (Terraform, Pulumi, CDK), CI deploy jobs.
- Size: files and lines per top-level directory (
git ls-files | …) to decide how to split.
Then pick 4–8 modules of comparable weight that follow the repo's real boundaries (packages, bounded contexts, layers). With a focus, give the focus area finer modules and summarize the rest coarsely.
2. Explore modules in parallel
Claude Code: launch one read-only exploring subagent per module in a single message so they run concurrently. Other agents: explore the modules one after another. Each brief is self-contained (repo summary from step 1, the module's paths, the focus if any) and asks for this structured result, conclusions with path:line citations, not file dumps:
module, paths, one-sentence purpose
public surface: exported functions/classes, routes, events, CLI commands (path:line)
depends on: other modules and external systems, and how (import, HTTP, queue, DB)
data: entities/tables/schemas owned or read (path:line)
key flows that pass through it, step by step (path:line per step)
the 3–5 files a newcomer must read first, and why
smells and risks: cycles, god files, dead code, missing tests, TODO/FIXME clusters
open questions the code alone could not answer3. Verify and enrich centrally
Subagents summarize; the orchestrator checks:
- Dependency graph from real imports, not prose. Use the stack's tooling when present (
madge --json,depcruise,go list -deps,cargo metadata,pydeps) or a targetedrgover import statements, aggregated to module level. Flag cycles. - Hotspots from git history: change frequency × size highlights where complexity and risk concentrate:
git log --since=12.months --name-only --pretty=format: | rg -v '^$' | sort | uniq -c | sort -rn | head -30Combine with file line counts and test presence; also note bus factor (git shortlog -sn -- <path>) for the top hotspots.
- Spot-check citations: open a sample of cited lines from every module and fix any that do not say what the summary claims.
4. Synthesize the explainer
One self-contained page. Diagram rules and SVG patterns are in references/diagram-patterns.md. Sections, in reading order:
- TL;DR, what the system does, in three sentences, and the stack in one line.
- System context, the system, its users, and the external systems it talks to.
- Module map, the module dependency graph (cycles in a warning color), each node clickable to its module card.
- Key flows, 2–4 sequence diagrams for the flows that matter most (a typical request, a write path, a background job, auth). Each step links to its code.
- Data model, the core entities and relationships, and which module owns each.
- Module cards, purpose, public surface, dependencies, "read these first" files, risks.
- Guided tour, an ordered walk through 8–12 files ("start here, then…") with why each matters.
- Hotspots and risks, the churn × size table, cycles, untested critical paths, single-owner areas.
- Glossary, domain terms as the code names them.
- Open questions, what the code could not answer, for the team to fill in.
Links: when the repo has a GitHub remote, link citations as permalinks pinned to the current commit (https://github.com/<owner>/<repo>/blob/<sha>/<path>#L<start>-L<end>) so they survive later changes; otherwise show path:line as text. Never inline large code blocks, short excerpts (≤ 10 lines) only where a snippet explains a flow.
The page works in light and dark themes, at phone width, with a sticky section nav. No network calls beyond pinned CDN libraries and fonts; no secrets or .env values.
5. Publish
- Artifact-capable agent: publish as an artifact titled
<Repo> Architecture(or<Repo> · <Focus>with a focus). Republish in place on later runs. - Otherwise: write
architecture-<repo>.htmloutside the tracked tree and open it locally. - Do not commit the page to the repo unless the user asks; if they do, offer
docs/architecture.htmlor a Markdown version with Mermaid diagrams.
6. Report
**<Repo> architecture** · <N> modules · <F> flows · pinned to <short-sha> · <link>
**In one line:** <what it is>
**Read first:** <3 files>
**Biggest risks:** <2–3 bullets with paths>
**Open questions:** <count>: listed at the end of the page7. Iterate
- "Zoom into X" → a focused re-run on that area, republished as its own section or page.
- "This is wrong about Y" → fix the claim, re-verify its citation, republish in place.
- Before a refactor, offer a blast-radius view: every module, flow, and test that depends on the target path.
Quality bar before reporting
- Every module, edge, and flow step cites real code; a sample of citations was opened and checked
- The dependency graph comes from actual imports, with cycles marked
- Diagrams are legible in both themes and at phone width
- Hotspots come from git history, not guesses
- No secrets, credentials, or
.envvalues on the page
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

