/bmad-skills:architecture-designfrom bmad-skills
Creates or reviews design packages (C4, ERD, API contracts, data models, sequences, state diagrams) at high/medium/low detail before building. Follows templates with single-source contracts.
Ships in bmad-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A design package is the skeleton and the contracts of a system: its boxes, its data, the shapes that cross every boundary, and the flows between them. It is a helicopter view. It never holds the body of a function.
Core principle: one canon, single-source contracts, every protocol file proven by a real tool, one folder at a time with the user.
Follow 70%, create 30%. The templates in templates/ (index: references/templates.md) are the default
shape (the 70%). Every template has REQUIRED slots — keep them always. The rest (the 30%) you adapt to the use case: add a folder the system needs,
drop one it does not, split a big file, pick the protocol file that fits. Record each adaptation in one line in the
canon's "Folders" table, so the reader knows it was deliberate.
trade-off-analysis first), a slide deck (use slide-maker), an
architecture decision document only (use bmad-architecture), writing code.Ask which level the user wants, unless they already said. Each level includes the one above it.
| Level | Designs | Answers |
|---|---|---|
| High | C4 context + container, ERD, external contracts (every API and event the system serves, calls, produces, consumes) | "What are the parts, what data, what crosses the border?" |
| Medium | + project structure, module design, main logical flow, main data flow (pipeline), entity state design (states + transition table), domain event catalog, error codes, configuration | "How is it organized and how does one unit of work move?" |
| Low | + class diagram per module, sequence per workflow, flow diagrams for hard decisions, interfaces between layers and modules (commands, ports, DTOs), code interfaces (signatures only) | "What does each module expose and who calls what?" |
Never at any level: method bodies, algorithms in code, migrations, framework boilerplate. A signature and a one-line contract ("returns the next order to ship, or none") is the lowest you go.
templates/ to the
target and delete the folders the level does not need.designs/README.md): folders, identifiers, topics, event catalog, API list,
decision register (D1…), open items (DQ-1…). Every later folder uses its names. Guide: templates/GUIDE.md.templates/<folder>/GUIDE.md, then copy its template files. Copy the user's reference
format (columns, naming, envelope) before inventing one.grep -rn each one across the
package and upstream docs, history files excluded. Result: zero hits, or each hit fixed.Build the package yourself, folder by folder. Parallel builder agents break naming consistency across folders.
file:line), the quoted line, a failure scenario, the smallest fix.| Condition | Tool | Guide |
|---|---|---|
| A concept, C4 view, pipeline, workflow, or timeline with ≤ ~10 boxes | Hand-written SVG, coordinates computed by a small script | references/svg-diagrams.md |
| A sequence, class, state, or ERD diagram, or any graph past ~10 nodes | PlantUML | references/plantuml-recipes.md |
| The user rejected a PlantUML diagram's look twice | Switch to hand SVG | svg-diagrams.md |
| Principle | Rule |
|---|---|
| Reference first | Follow the user's ERD, event sheet, API sheet, and pipeline image as closely as possible. Mark every difference as "NEW" or in a "Delta vs reference" table |
| One fact, one place | Do not store what can be derived (a tab, a display status, a file path built from ids). One writer per field; name it |
| Hot read needs a join | When a list, count, or filter on a hot path would need a join to derive a value, store it as a projection: one named writer, written in the same transaction as its source |
| One rule, one file | A table or rule (status transitions, layer rules, response shape) lives in one file. Other files link to it. A diagram of a table is a picture of it; a script diffs its edges with the table |
| Simplest thing | No outbox, worker, cache, or extra field unless the user asked or a requirement needs it |
| No stranded record | Every after-commit step (next command, event, timer) states what re-runs it if the process dies first: Kafka redelivery with the offset committed last, a re-drive timer, or an idempotent periodic re-check. Pick the cheapest. A record never waits for a message that can be lost |
| One code, one meaning | A status event is a fact, published by the one owner after its own transition. Another system's decision is a request with its own code; the owner answers with the fact |
required = producer guarantee | If the source can omit a field (the customer may not give it), the field is optional in the schema, whatever the business calls it. The rule that needs it (a score, a submit check) handles the absence. Define such a term once in the canon |
| Contract, not code | Show shapes, signatures, owners, and order. No function bodies |
| Owner is explicit | Every command is owned by the module that handles it. Every collection names its writer. Every event names its producer and its consumers |
| Assumptions are visible | Tag unknowns [ASSUMPTION]; add a DQ-n open item with the owner who must answer |
| Proof, not claims | "Valid" means a tool said so. Report which checks ran and what they cannot catch |
| Conflicts stop you | Design disagrees with code or requirements: stop, cite both, propose a fix, get agreement |
GUIDE.md per folder (rules, how to fill, best practices, check):
templates/, index in references/templates.mdpython3 scripts/validate_json.py <folder> [<design-root>]
(needs jsonschema, referencing; or uv run --with jsonschema --with referencing python scripts/validate_json.py …)superpowers:brainstorming when the problem or the approach is not yet agreed.bmad-architecture for the decision spine the package details; trade-off-analysis before choosing; context7-mcp for vendor contracts (Orkes, Kafka, gRPC);
superpowers:verification-before-completion before you say a folder is done.| Mistake | Fix |
|---|---|
| Inventing a table format when the user has a reference sheet | Copy the sheet's columns. Nested fields get level columns (one column per depth), not └ |
| Storing derived or speculative fields (status copies, attempt details nobody reads) | Derive at read time or export time; delete the field |
| The sender module owns the command | Move the command into the listener (handler) module |
An adapter (mail provider, vendor SDK) inside shared/ | Give it its own adapter module |
Failed response carries data | Failed: status, code, message. Success: the same + data |
| Hand-editing a generated md, schema, or proto | Edit the source catalog; re-run the generator |
Bare $ref names; circular $ref | Relative file paths; break recursion with a one-level sub-schema |
| Building every folder, then showing the user | Show each folder; wait for review before the next |
| "0 errors, done" | Also say what the checks do not prove (flow correctness, naming across folders) |
| "No outbox, per simplest thing; a sweep is an open item" | Name the cheapest recovery now (offset committed last, re-drive timer, re-check). Simplest thing never means a stuck record |
| The state diagram and a second table "match the canon row for row" | Copies drift. Keep one table; the diagram is checked by an edge diff |
| Validators pass after a rename, so the rename is done | Validators do not see prose. Grep every retired name |
references/checklists.md (opens in a new tab)references/plantuml-recipes.md (opens in a new tab)references/svg-diagrams.md (opens in a new tab)references/templates.md (opens in a new tab)scripts/validate_json.py (opens in a new tab)templates/00-c4/GUIDE.md (opens in a new tab)templates/00-c4/README.md (opens in a new tab)templates/00-c4/container.puml (opens in a new tab)templates/00-c4/container.svg (opens in a new tab)templates/00-c4/context.puml (opens in a new tab)templates/00-c4/context.svg (opens in a new tab)templates/01-project-structure/GUIDE.md (opens in a new tab)templates/01-project-structure/README.md (opens in a new tab)templates/01-project-structure/configuration.md (opens in a new tab)templates/01-project-structure/error-codes.md (opens in a new tab)templates/01-project-structure/modules.md (opens in a new tab)templates/01-project-structure/shared-domain.md (opens in a new tab)templates/02-domain-events/GUIDE.md (opens in a new tab)templates/02-domain-events/ORD101.examples.json (opens in a new tab)templates/02-domain-events/ORD101.schema.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-package, c4-modeling, api-contracts, data-modeling, system-design
npx claudepluginhub bmad-labs/skills --plugin bmad-skills23 skills in this plugin
/architecture-viz-studioUse when the user wants to visualize, present, "show", animate, or build an interactive web page for a software architecture, system design, technical concept, data model, pipeline, or product story — phrases like "intro page", "architecture visualization", "interactive diagram", "scrollytelling", "3D system map", "ERD page", "design walkthrough", "make our architecture look impressive", or "present this design to stakeholders". Also use before hand-rolling Three.js, GSAP or SVG architecture diagrams from scratch, or when the user wants visual feedback on such a page through an edit mode./bmad-leaderUse when a BMAD project has intent, PRD, architecture and optionally technical design, and the user wants one long-running session to drive implementation of stories or epics through bmad-build subagents ("lead the build", "run epic N", "drive the stories"); also when resuming a build ("resume the leader"), reporting progress, closing an epic, unblocking a subagent decision, or when the user explicitly asks for a retrospective of a leader run./book-converterConvert EPUB books (.epub) to high-quality formatted Markdown using pandoc and AI-assisted formatting. Use when the user provides an EPUB file path and wants it converted to professionally formatted Markdown (ebook to markdown, epub to md). This skill handles the complete workflow from EPUB extraction through AI-driven content formatting, including joining split paragraphs, correcting code blocks, standardizing headers, and creating a proper Table of Contents./close-loop-dev-setupUse when an agent cannot validate the product the way a human would — no browser or desktop harness, no screenshots, no vision check, or bmad-leader reports a UAT level as NOT RUN; also when the user says "set up screenshot testing", "let the agent see the UI", "drive the app with Playwright" or asks for a visual check, or to set up a cua-box or tart-box sandbox. Sets up a minimal drive-and-observe loop, by default in a per-project sandbox (Docker or Tart VM), and proves it can fail./create-intentUse when turning Jira stories, tickets, or raw requirement notes into business intent documents (intent, functional and non-functional requirements, open questions) before a PRD or design, when requirements are unclear, conflicting, or incomplete and need questions for a PO, or when the user says "create intent", "summarize the stories", "what does business want", or answers earlier intent questions/github-syncBidirectional sync between BMAD planning artifacts and GitHub Projects v2. Use this skill whenever the user says "sync to github", "push stories", "pull status from github", "set up github project", "github sync", "onboard github project", "create github issues from stories", "update stories from github", "sync status", or wants to manage BMAD artifacts in GitHub Projects. Also trigger when user mentions "gh project", "github board", "sprint board", "project roadmap", "relationship field", "blocked by", or "parent issue" in the context of BMAD artifacts. Trigger on implicit cues like "I want to track stories in github", "let's set up a project board", "what's out of sync", "push the sprint to github".
Other plugins' skills for the same job