architecture-design
Use when the user asks for a design package, designs folder, detailed design, solution design, or contracts of a system or service before it is built — C4…
от bmad-labs★ 20 звёзд на GitHub
Установить architecture-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Architecture Design
Overview
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.
When to use
- "Create the designs", "design package", "detailed design", "solution design", "API contracts", "data model".
- The user names design kinds: C4, ERD, events, API docs, sequences, class diagrams, pipeline.
- Not for: choosing between options (use
trade-off-analysisfirst), a slide deck (useslide-maker), an architecture decision document only (usebmad-architecture), writing code.
Depth levels
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.
Workflow
- Load context. Read the intent, PRD, architecture spine, standards, and the user's reference designs (ERD, event sheets, API sheets, C4 images). List them back. Ask for missing ones.
- Pick the level and the folder list. Propose numbered folders from
references/templates.md §Package layout. Get agreement. Copy
templates/to the target and delete the folders the level does not need. - Write the canon first (
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. - Build one folder at a time, in dependency order: project structure → data model → events → ingress →
egress → integrations → state → sequences → classes → pipeline. For each folder:
- Read the folder's
templates/<folder>/GUIDE.md, then copy its template files. Copy the user's reference format (columns, naming, envelope) before inventing one. - Put contracts in a single source (catalog JSON/YAML); generate md, schemas, examples, proto with a small script when there are more than ~5 items of one kind. Change the source, never the generated file.
- Validate with the real tool (references/checklists.md §Validators). Add one negative test: a bad message the schema must reject.
- Run the folder checklist. Fix. Re-validate.
- Report to the user: what is in it, what to check, new open items. Stop and wait for review.
- Apply feedback. Log each decision (who decided, what) in the canon or the memlog.
- Read the folder's
- Propagate. A change that touches a name, field, code, or rule:
- Update in order: upstream architecture → canon → each folder → generated files (edit the source, re-render).
- List every retired name (old field, code, command, config key, file name).
grep -rneach one across the package and upstream docs, history files excluded. Result: zero hits, or each hit fixed. - Render each changed diagram alone (a batch run hides which file failed). Re-run every validator.
- Report the sweep list and its result with the validator results.
- Close. Update the upstream architecture document with the decisions. When a decision contradicts the PRD or intent, list it as a "PRD correction" and route it to the PRD owner (change proposal), so the two agree. Point the PRD's schema line at the package's data-model folder. List open items and assumptions.
Build the package yourself, folder by folder. Parallel builder agents break naming consistency across folders.
Review or change an existing package
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/checklists.md
- references/plantuml-recipes.md
- references/svg-diagrams.md
- references/templates.md
- scripts/validate_json.py
- templates/00-c4/GUIDE.md
- templates/00-c4/README.md
- templates/00-c4/container.puml
- templates/00-c4/container.svg
- templates/00-c4/context.puml
- templates/00-c4/context.svg
- templates/01-project-structure/GUIDE.md
- templates/01-project-structure/README.md
- templates/01-project-structure/configuration.md
- templates/01-project-structure/error-codes.md
- templates/01-project-structure/modules.md
- templates/01-project-structure/shared-domain.md
- templates/02-domain-events/GUIDE.md
- templates/02-domain-events/ORD101.examples.json
- templates/02-domain-events/ORD101.schema.json
- templates/02-domain-events/ORD103.examples.json
- templates/02-domain-events/ORD103.schema.json
- templates/02-domain-events/ORD_001.schema.json
- templates/02-domain-events/README.md
- templates/02-domain-events/_catalog.json
- templates/02-domain-events/_envelope.schema.json
- templates/02-domain-events/ord101-order-placed.md
- templates/02-domain-events/ord103-payment-failed.md
- templates/03-ingress-api/GUIDE.md
- templates/03-ingress-api/README.md
- templates/03-ingress-api/asyncapi.yml
- templates/03-ingress-api/grpc/order.proto
- templates/03-ingress-api/grpc/place-order.md
- templates/03-ingress-api/kafka/payment-settled.examples.json
- templates/03-ingress-api/kafka/payment-settled.md
- templates/03-ingress-api/kafka/payment-settled.schema.json
- templates/03-ingress-api/pubsub/subscription.md
- templates/03-ingress-api/rest/get-order.md
- templates/03-ingress-api/rest/openapi.yml
- templates/04-egress-api/GUIDE.md
FAQ
Что делает скилл architecture-design?
Use when the user asks for a design package, designs folder, detailed design, solution design, or contracts of a system or service before it is built — C4, project structure, module design, ERD or data model, domain events, ingress or egress API (REST, gRPC, Kafka, Pub/Sub, SQL), sequence, class, state, or data pipeline diagrams — at a high, medium, or low level of detail; or asks to review, correct, or update an existing design package against its requirements.
Как установить скилл architecture-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл architecture-design запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…