architecture-map
Skill4 starsChanged 4 months agoMITView on GitHub
Build a living, interactive HTML map of a project's architecture that lives inside the repo, opens via file://, and grows while you plan. Use to get a realistic overview of an existing platform, see what data flows between parts, and preview the impact of a feature/refactor before building it. Reuses the architecture-audit engine to gather verified nodes/edges. SKIP for a one-off static diagram or a text architecture summary — use architecture-audit directly; this skill is for a PERSISTENT, clickable map you revisit and plan on. It maps how parts connect; it does NOT find dead code (that is architecture-cleanup). Triggers: "architecture map", "interactive architecture diagram", "map this repo and let me explore it", "plan a refactor on the map".
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
- marc-aurele-besner/skillabletheir own version, first seen Nov 29, 2026
- jeanjerome/pi-495their 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
- cristian-robert/claude-code-harness★ 2same name
- Mesteriis/Engineering-Bible-AI★ 2same name
- jeanjerome/pi-495★ 1same name
- marc-aurele-besner/skillable★ 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 repository3 other files it gives its agents.
- architecture-auditSkill
- architecture-cleanupSkill
- architecture-improveSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 33
Run the architecture-audit skill's Map phase (Phase 0 scout + Phase 1 parallel readers).
- Very specific: line 47
Write it as a temp fresh JSON: /tmp/arch-fresh.json.
- Very specific: line 50
If <repo>/architecture-map/ does not exist, create it and copy the viewer assets:
- Distinctive: line 58
Write/merge the data with the helper (preserves notes + proposed across re-audits):
- Very specific: line 69
When discussing a feature/refactor, edit map.js directly: add nodes/edges with proposed: true and status: "proposed", or add notes to …
- Very specific: line 74
After write, confirm window.MAP_DATA is present and the JSON parses by round-tripping through the helper: node <SKILL_DIR>/merge-map.mjs …
- Very specific: line 84
Never hand-edit the vendored elk.bundled.js.
“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
Produce / update <repo>/architecture-map/ — an interactive HTML-card + SVG viewer of
the architecture (the Claude Design template), backed by a single data file the agent owns.
Family
Pipeline: architecture-audit (verified nodes/edges) → architecture-map (this — the
interactive map) → architecture-grill (grow the map live while grilling a plan) →
architecture-cleanup (mark dead/removable code red on the map) → architecture-improve
(amber optimisation proposals). This skill maps how parts connect and what flows between them;
dead-code / orphan detection lives in architecture-cleanup, not here.
When NOT to use
SKIP for a one-off static diagram or a text architecture summary — run architecture-audit
directly. Reach for THIS skill only when you want a persistent, clickable map you revisit and plan on.
Two modes (same artifact)
- Kortlæg — audit an existing repo, fill the map.
- Planlæg — open the map, add
proposednodes/edges while discussing a change.
Procedure
A. Gather the data (Kortlæg)
- Run the
architecture-auditskill's Map phase (Phase 0 scout + Phase 1 parallel readers). You want the structured per-subsystem result, not the Markdown doc — each reader returns components (id, label, status, role, filespath:line) andA --> B: labeledges. - Transform that into the map data contract (
references/map-schema.md): subsystems, nodes, edges. Setsource: "audit"and stampgeneratedAtwith the current ISO time. For each node, write the node-card fields so a non-technical reader gets it:label= a descriptive plain-language name (what it does), NOT the raw function name.tech= the technical identifier (function / endpoint / file).engine= the motor category (llm,image,db, … — seereferences/map-schema.mdfor the canonical 14-key enum; don't restate it here) + optionalengineLabelfor the specific name (e.g."OpenRouter · Claude Sonnet 4.6").input/processing/output= plain language. Deriveinputfrom the node's incoming edges,outputfrom its outgoing edges,processingfromrole.
- Write it as a temp fresh JSON:
/tmp/arch-fresh.json.
B. Scaffold / update the folder
- If
<repo>/architecture-map/does not exist, create it and copy the viewer assets:
(The viewer renders nodes as HTML cards + SVG edges — the Claude Design template — and uses ELK for auto-layout.mkdir -p <repo>/architecture-map cp <SKILL_DIR>/assets/index.html <SKILL_DIR>/assets/elk.bundled.js <repo>/architecture-map/elk.bundled.jsis the only bundled dependency; the viewer also pulls IBM Plex from Google Fonts and silently falls back to system fonts offline.) - Write/merge the data with the helper (preserves notes + proposed across re-audits):
(First run:node <SKILL_DIR>/merge-map.mjs <repo>/architecture-map/map.js /tmp/arch-fresh.json > /tmp/map.js && mv /tmp/map.js <repo>/architecture-map/map.jsmap.jsis absent, the helper treats existing as empty.) - Tell the user the open command:
open <repo>/architecture-map/index.html. To preview the bare viewer before real data exists, copy the sample:cp <SKILL_DIR>/assets/sample-map.js <repo>/architecture-map/map.js. Openingindex.htmlwith nomap.jsshows a friendly empty-state instead of crashing.
C. Planlæg (grow during planning)
- When discussing a feature/refactor, edit
map.jsdirectly: add nodes/edges withproposed: trueandstatus: "proposed", or addnotesto existing nodes. Re-running Kortlæg later will NOT wipe these —merge-map.mjskeeps them by id/key.
Verification
- After write, confirm
window.MAP_DATAis present and the JSON parses by round-tripping through the helper:node <SKILL_DIR>/merge-map.mjs <repo>/architecture-map/map.js /tmp/arch-fresh.json >/dev/null && echo OK. - Confirm every node has an
enginefrom the category enum and plain-languageinput/processing/output(the viewer falls back toother⚙️ +roleif missing). - Open
index.html, confirm nodes render (icon + motor badge) and the console is clean.
Notes
file://only (no server). Data lives inmap.js(awindow.MAP_DATA = {…}wrapper) because browsers blockfetch()of JSON overfile://.- Never hand-edit the vendored
elk.bundled.js. The look (cards, colours, panel, edges) lives entirely inindex.html— edit there to evolve the design template. <SKILL_DIR>= this skill's canonical dirskills/architecture-map/.
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.

