arch-dashboard
Skill2 starsChanged 56 days agoMITView on GitHub
Investigate a codebase and generate a self-contained HTML architecture dashboard — an interactive graph of the important components, their relationships, input/output data schemas, and the LLM prompts used at each step, plus a coding guide. Use when the user asks for an architecture overview, architecture dashboard, project map, component diagram, or "help me understand this codebase" as a visual deliverable.
In this repositoryOne other file it gives its agents.
- ai-video-generationSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Prefer precision over volume: 10–40 nodes.
- Very specific: line 42
Write arch-data.json to the scratchpad.
- Very specific: line 82
Keep prompt text verbatim and complete — that's the point of the Prompts tab.
- Very specific: line 83
Put file paths RELATIVE to project.root.
- Very specific: line 94
Verify: run node --check is NOT needed (template is pre-checked).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Architecture Dashboard
Generate architecture-dashboard.html at the project root (or a user-specified path): a
dependency-free, offline HTML page with
- Graph — layered left-to-right node-link diagram of components (auto-layout, pan/zoom, click a node for its detail panel, search box, type legend, light/dark theme)
- Schemas — catalog of the data files/structures flowing between components
- Prompts — every LLM/image/video prompt used per pipeline step, full text, copyable
- Guide — conventions, extension points ("how to add X"), and gotchas for coding
The page is rendered from template.html in this skill directory; you only produce a JSON
architecture model and inject it with build.py. Do not hand-write the HTML.
Step 1 — Investigate the codebase
Budget the investigation to repo size; for large repos fan out Explore agents. You must find:
- Entry points & components — executables/scripts/services/CLIs, key modules, build or pipeline stages. Read the README/CLAUDE.md first; they often name the pipeline.
- Relationships — who calls/reads/writes/submits-to whom. Follow the data: a JSON
manifest written by script A and read by script B is an edge
A → manifest → B. - Data schemas — for each manifest/config/API payload, record actual field names and types by reading a real sample (head a large file, don't load it all).
- Prompts — search broadly:
grep -ril "prompt"plus*.txt/*.mdin prompt-ish dirs, string literals passed to LLM/gen-AI APIs, system prompts in code. Capture the FULL text of the representative/final prompt per step (not every historical version — pick the one the README or manifest marks as selected/latest, and say which you picked). Note the model/ service each prompt targets. - External services — APIs, endpoints, env vars/credentials required.
Prefer precision over volume: 10–40 nodes. Merge trivia (one node per pipeline stage, not per file); every node must earn its place by helping someone code against the project.
Step 2 — Write the architecture model JSON
Write arch-data.json to the scratchpad. Shape (all string fields plain text, no HTML):
{
"project": {
"name": "…", "description": "1–2 sentences", "root": "/abs/path",
"generatedAt": "2026-07-11",
"stats": [{"label": "Pipeline stages", "value": "5"}, …] // 3–6 headline tiles
},
"nodes": [{
"id": "kebab-id", "label": "Short name",
"type": "script|data|prompt|asset|external|config|ui|other", // aliases: module→script, service/api→external, manifest/store→data
"group": "Pipeline stage or subsystem", // optional
"summary": "one line — shows in tooltip and card",
"detail": "a paragraph of what it does and how (plain text)", // optional
"files": [{"path": "rel/path.py", "lines": "114-236", "role": "entry point"}],
"inputs": [{"name": "prompt file", "format": "txt", "schema": "free text; @image_N refs", "from": "where it comes from"}],
"outputs": [{"name": "task.json", "format": "json", "schema": "{taskId, submit}", "to": "who consumes it"}],
"prompts": [{"name": "…", "file": "rel/path.txt", "model": "service/model it targets",
"purpose": "what this prompt achieves", "text": "FULL prompt text"}],
"notes": "guidance for someone coding against this component" // optional
}],
"edges": [{"from": "id", "to": "id", "label": "submits prompt + refs", "kind": "data|call|reference"}],
"schemas": [{
"name": "selected-clips.json", "file": "rel/path", "description": "…",
"fields": [{"name": "clipId", "type": "string", "description": "…"}],
"example": "verbatim trimmed sample" // optional
}],
"guide": {
"conventions": ["short imperative statements of how this repo does things"],
"extensionPoints": [{"title": "Add a new pipeline step", "how": "concrete steps", "files": ["paths to touch"]}],
"gotchas": ["things that will bite a new contributor"]
}
}Rules:
- Edge
from/tomust match node ids; the renderer drops dangling edges silently — check yours. - The graph is layered by edge direction (sources left, sinks right). Model the pipeline as a DAG where possible; cycles are tolerated (back-edges detected) but read worse.
- Keep prompt
textverbatim and complete — that's the point of the Prompts tab. - Put file paths RELATIVE to
project.root.
Step 3 — Build and verify
python3 <this-skill-dir>/build.py --data <scratchpad>/arch-data.json --out <project-root>/architecture-dashboard.htmlbuild.py validates the model (unknown node types, dangling edges, missing ids → hard error),
escapes </ for safe <script> embedding, and injects into template.html.
Verify: run node --check is NOT needed (template is pre-checked); instead open the file
(open <out> on macOS) and confirm with the user, or render/screenshot if browser tooling is
available. If a build error names a dangling edge or bad type, fix the JSON, not the template.
Design notes (already baked into template.html — don't re-derive)
Colors follow the dataviz skill's validated reference palette (categorical slots in fixed order; node text in ink tokens, never series color; legend always present; dark mode uses the palette's selected dark steps, not an auto-flip). If you edit the template's colors, re-run the dataviz validator.
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.

