skills/architecture-overview-diagram/SKILL.md
Generate a README-level architecture overview DOT diagram for a repository through code-first investigation, iterative design, and antagonistic review. Use when the user says "create an architecture diagram", "make a README diagram", "top-level overview diagram", or wants a single diagram that gives a non-technical reader the "I get it" understanding of a system. Produces a .dot source, .svg, and .png — reviewed to PASS quality. Also surfaces doc/code discrepancies and optionally generates detail diagrams.
npx skillsauth add microsoft/amplifier-bundle-dot-graph architecture-overview-diagramInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate a single, README-level architecture overview diagram for a repository. The diagram should give a non-technical reader an instant "I get it" understanding of what the system does, how it works, and what value it provides — from the diagram alone, without reading any docs.
The process is code-first: read the actual source code, not documentation, to determine what the system really does. Then iterate the diagram design with user feedback and antagonistic review until it passes quality gates.
This skill commonly surfaces doc/code discrepancies, dead code, and stale artifacts as a side effect of the investigation. Those findings should be presented to the user for cleanup alongside the diagram work.
<repo_path>: Path to the repository to diagram.<reference_diagram>: (Optional) Path to a gold-standard diagram to use as a
style/structure reference. If this repo is part of an ecosystem with sibling
repos that already have overview diagrams, use those as implicit references
for visual consistency — even if the user doesn't explicitly provide one.Launch parallel agents to read the actual source code and build a ground-truth understanding of the system architecture. Do NOT read documentation first — code is the source of truth.
Execution: Delegate to foundation:explorer (2-3 parallel instances with
different scopes) and python-dev:code-intel or rust-dev:code-intel for
semantic call-graph tracing.
Investigation targets:
Success criteria: A complete mental model of what the system does, its components, data flows, external dependencies, and user-facing behaviors — all derived from source code with file:line citations.
In parallel with Step 1, catalog all existing docs and diagrams in the repo.
Execution: Delegate to foundation:explorer (separate instance,
context_depth="none").
Find:
.dot, .svg, .png diagram filesArtifacts: Compile a cleanup backlog of doc/code discrepancies, stale references, and other issues found. Present this to the user alongside the diagram work — the investigation commonly surfaces significant cleanup needs.
Success criteria: Complete inventory of existing documentation with accuracy assessment against code findings from Step 1, plus a cleanup backlog for the user to review.
If a gold-standard reference diagram was provided, OR if sibling repos in the same ecosystem already have overview diagrams, analyze their design principles to guide our diagram's style and structure.
Execution: Delegate to design-intelligence:design-system-architect
with the reference diagram.
Extract:
Rules: When working within an ecosystem of repos, visual consistency matters. If sibling repos use specific color palettes, shape vocabularies, or cluster patterns, match them — the diagrams should look like a family. If the system has an underlying DSL with defined shape semantics (e.g. a pipeline DSL where hexagon=human gate), the overview diagrams should use those same shapes — don't introduce conflicting meanings at different documentation layers.
Success criteria: A numbered list of design principles extracted from the reference, ready to apply to our diagram.
Before creating any DOT, define what story the diagram tells. This is the most important step — a diagram without a clear story is just boxes and arrows.
Answer these questions:
Present the story to the user for feedback before proceeding.
Rules:
Success criteria: User confirms the story and scope before diagram creation.
Human checkpoint: Present the story framing and get explicit approval.
Generate the DOT source following these hard constraints:
constraint=false)Execution: Delegate to dot-graph:dot-author with the complete design
specification from Step 4 and the design principles from Step 3.
Render to .svg and .png alongside the .dot source.
Success criteria: A valid, rendered DOT diagram that follows all constraints.
Show the rendered diagram to the user. Ask for specific feedback:
Iterate Steps 5-6 as needed based on feedback. Expect 2-4 iterations.
Success criteria: User says the direction is right.
Human checkpoint: User reviews and provides feedback each iteration.
Before the antagonistic review, proactively search for important mechanisms that the diagram does NOT yet show. Send fresh agents to read the code with the specific question: "what user-facing capabilities exist that aren't in this diagram?"
Execution: Delegate to foundation:explorer (fresh, context_depth="none")
and resolve:resolve-expert or domain-appropriate expert agents. Give them
the current diagram's node list and ask them to find what's missing.
Rate each finding: CRITICAL (users need to know), IMPORTANT (valuable but detail-level), or IMPLEMENTATION (skip for overview).
Present the findings to the user for decision on what to add.
Success criteria: User confirms which missing mechanisms to add (if any).
Human checkpoint: Present missing mechanism candidates and get approval.
Launch parallel antagonistic reviews from three different perspectives:
8a. Fresh code audit — Delegate to foundation:explorer with
context_depth="none" and model_role="critique". Give it the diagram's
claims and ask it to verify each against the actual source code. For each
claim: ACCURATE, INACCURATE, or PARTIALLY ACCURATE with file:line evidence.
8b. Diagram quality review — Delegate to dot-graph:diagram-reviewer.
Get a structured PASS/WARN/FAIL verdict covering syntax, structure, color
consistency, edge labels, readability, and comparison to reference.
8c. Design critique — Delegate to design-intelligence:design-system-architect
with model_role="critique". Ask it to compare against the reference diagram
and find problems in story clarity, balance, missing/excess information, edge
label quality, and feedback loop clarity.
Success criteria: All three reviews complete. All factual claims verified as ACCURATE. Diagram reviewer returns PASS or WARN (no FAIL). Design critique identifies only minor issues.
Fix any issues found in Step 8:
Re-render the diagram after fixes.
Success criteria: All review findings addressed. Diagram re-rendered.
Run one more dot-graph:diagram-reviewer pass on the final version to
confirm PASS (or acceptable WARN).
Success criteria: Diagram reviewer returns PASS or WARN with no blocking issues.
.dot, .svg, and .png to the target repo's docs/ directory reference to the repo's README.md
(near the top, after the title and description, before prerequisites)Success criteria: Diagram is committed, pushed, and visible in the repo's README on GitHub.
Human checkpoint: Confirm the placement and commit message before pushing.
After the overview is placed, assess whether detail-level diagrams would add value. Good candidates are:
Look at sibling repos for patterns — if the backend has 7 detail diagrams covering different angles, the frontend likely benefits from 2-3 covering its distinctive perspectives.
Execution: Delegate to dot-graph:dot-author with specific angle and
code-level findings from Step 1. Use the same visual conventions as the
overview. Save to docs/diagrams/ subdirectory.
Success criteria: Detail diagrams committed and pushed.
Human checkpoint: Confirm which detail diagrams to create.
development
Use when you need true understanding of a complex system — not a quick answer. Parallax Discovery is a multi-agent, multi-pass investigation methodology that combines three perspectives (code tracing, behavior observation, integration mapping) to produce verified, evidence-backed findings.
development
Use when writing or reading DOT/Graphviz code and needing quick syntax reference — node declarations, edge syntax, attributes, subgraphs, HTML labels, and common gotchas
testing
Use when enforcing quality standards on DOT diagrams — checking completeness, structure, and visual clarity before sharing or committing
tools
Use when you need copy-paste DOT templates for common diagram types — start from a working pattern rather than blank canvas