autopilot
The whole coding loop on one deliberate yes: map, spec, critic-hardened plan, GitHub issues, parallel worktree implementers, fresh-context review loops, one PR…
Human-facing documentation, architecture docs, and mermaid diagrams for a codebase, a module, or a feature — "draw me the architecture, with receipts." Fans out read-only sub-agents to build a grounded component graph first: every node is a real path, every edge backed by a
$ npx -y skills add duthaho/skillhub --skill blueprint --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/blueprintContext preview
The summary Claude sees to decide when to auto-load this skill.
Human-facing documentation, architecture docs, and mermaid diagrams for a codebase, a module, or a feature — "draw me the architecture, with receipts." Fans out read-only sub-agents to build a grounded component graph first: every node is a real path, every edge backed by a
name: blueprint description: >- Human-facing documentation, architecture docs, and mermaid diagrams for a codebase, a module, or a feature — "draw me the architecture, with receipts." Fans out read-only sub-agents to build a grounded component graph first: every node is a real path, every edge backed by a grep-verified import or call — unverifiable edges are dropped, not drawn. Diagrams render from that verified table per a fixed checklist (never freehand mermaid), capped at 5–8 top-level components with drill-down pages; every doc section cites its sources as file:line. Drafts in chat, writes docs/blueprint/ only on your yes, and stamps a manifest with date + commit so /blueprint refresh regenerates only what the diff touched. Use for "generate an architecture diagram", "document this codebase or module for people", "create a mermaid diagram of this feature" — e.g. "/blueprint", "/blueprint the payment flow", "/blueprint refresh". For agent-facing orientation (AGENTS.md) use map; blueprint is the human-facing sibling.
`/blueprint` — whole-repo architecture doc + top-level mermaid diagram `/blueprint <module|feature>` — scoped doc + diagram for one area `/blueprint refresh` — regenerate only what the diff since the stamp touched
Answer one question: **what does a person need to see to understand how this code is put together — and can every box and arrow be defended?** The documented failure mode of AI-generated architecture docs is confident fiction: diagrams with components that don't exist and arrows nobody can trace. The countermeasure is structural, not stylistic — no edge without a locator, no mermaid the checklist didn't render, no write without a yes.
Look before generating:
**The explicit command wins:** a scope argument runs SCOPED and `/blueprint refresh` runs REFRESH regardless. A bare `/blueprint` with existing output defaults to REFRESH — read the manifest first and jump to the refresh path in Step 5; offer a full regenerate only if the user asks or the manifest looks obsolete. An existing hand-written `docs/architecture*` file is context to read and link, never to overwrite. Whichever mode wins, if the manifest's stamp trails HEAD, state the drift in one line — "blueprint is N commits behind (touched: X, Y)" via `git rev-list --count` + `git diff --stat` over `<stamped-commit>..HEAD` — and offer the refresh unless this run already is one. A stamp that no longer resolves (rebase, shallow clone) is itself the staleness signal: report it and offer a full regenerate. Staleness surfaces at every touch, not only on a remembered refresh.
(the map skill writes the first) — they answer in seconds what fan-out answers in minutes. No AGENTS.md in a large repo? Offer `/map` first; its output makes this run better and the repo better oriented for every later agent.
fan-out: a small repo graphs in one pass inline; a large or polyglot one gets one Explore agent per area.
that module or feature: the graph, the doc, and the diagram cover that area and its direct boundaries — not the whole repo.
State the mode picked (FULL / SCOPED / REFRESH) and why.
Dispatch read-only **Explore** sub-agents — grep/glob/read, keyless, no index to go stale — one per area (FULL) or one per boundary (SCOPED). Each agent returns, for its area:
1. **Candidate components** — the directories/modules that act as units, each with its entry file and one line on its job. 2. **Candidate edges** — imports, calls, route registrations, queue producers/consumers, config wiring — **each with the file:line where it was seen**. An edge the agent "believes" but didn't see is reported as a question, not an edge. 3. **The story** — how execution flows through the area, as prose pointing at files.
**Lossless hand-off:** each agent writes full findings to `out/blueprint/.work/<area>.md` and returns a summary; synthesize from the files, not the relay.
Distill the findings into a **node/edge table** — the single source of truth everything downstream renders from:
sub-nodes). Required fields per row: `id` (`comp-<slug>`, alphanumeric + hyphens, survives renames), `name` (display name), `path` (the real file or directory — must exist), `job` (one line). A node whose path doesn't exist doesn't enter the table. Utilities/logging don't get boxes — they're noise at this altitude.
to"), and the **locator** — the file:line of the import/call/route that proves it. Before an edge enters the table, grep the claimed locator: the cited line must actually contain the relation. **Unverifiable edge → dropped and listed under "unverified candidates"** in the work notes — never softened into the diagram.
their parent component rather than shrinking the boxes — a hairball communicates nothing (the decade-long lesson of every dependency-graph tool). Scoped runs may drill one level deeper per component page.
Read `references/mermaid-checklist.md` now and follow it exactly. The rules in brief: the mermaid is **rendered mechanically from the table** — short IDs from the node rows, quoted labels, no raw parentheses/brackets in label text, `click` links to each node's real p
Give Claude Code a memory and make it cite its sources — skills for research, daily work, and shipping code. They started as prompts I kept retyping, so I wrote each one down once. Keyless: no API keys, no signups.
The whole coding loop on one deliberate yes: map, spec, critic-hardened plan, GitHub issues, parallel worktree implementers, fresh-context review loops, one PR…
Lightweight bug-fixing loop — reproduce → root-cause → fix test-first → verify — deliberately separate from the heavyweight feature workflow so small fixes…
Prompt-cache economics forensics — why your Claude Code tokens burn so fast, with the numbers to prove it. Parses local ~/.claude transcripts (0 tokens, a…
Morning work briefing — "what does my day look like, in one scan?" Gathers today's calendar and emails needing attention (via connected Google MCP tools when…
End-of-session shipping gate — "prove it works, then ship it." Runs an evidence checklist (full test suite, lint/typecheck, build, and actually running the…