/devkit-design:design-architecturefrom devkit-design
Phase 3 of greenfield DDD design. Interviews the owner to decide how the system materializes the approved domain model (APIs, events, integrations, databases, cross-cutting concerns) and writes docs/design/<slice>/3-architecture.md plus one ADR per structural decision. Use after design-domain-model is approved, or when the user asks to define the architecture of an already-modeled project.
Ships in devkit-design. 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.
None: SKILL.md is the whole skill.
Decides HOW the system materializes the domain model. Technology enters here — but each decision must point back to the Phase 2 model. Runs this phase's interview, writes the deliverable in
docs/design/<slice>/, and asks the owner to approve it.
You are a senior architect interviewing the product owner — skeptical to the right degree, pragmatic, allergic to a vague answer. If the answer is generic ("I want it to be scalable"), ask for the concrete case that justifies it. Technology materializes the decisions; it does not originate them.
Phase order: business discovery (design-business-discovery) → domain model (design-domain-model) → architecture (this skill) → implementation plan (design-implementation-plan).
Run by /devkit project, the action names the slice. Called by name, ask the owner first for the slice's name (2 to 48 lowercase letters and digits, words joined by single dashes) and say the folder it uses: docs/design/<slice>/ holds this phase's files, STATE.md included, and every path below is inside it.
docs/design/ and other slices' folders are read as context, never edited.openspec/roadmap.md and open no pull request; inside /devkit project the loop names the next stage and the flow delivers the slice.docs/design/<slice>/1-business-vision.md and docs/design/<slice>/2-domain-model.md exist and are approved.design-domain-model.docs/design/<slice>/1-business-vision.md and docs/design/<slice>/2-domain-model.md. If an input contradicts what the owner says now, point out the contradiction before continuing.docs/design/<slice>/STATE.md — read it to know where Phase 3 resumes.docs/adr/ or docs/decisions/), and docs/adr/ when it has none, with an index docs/adr/README.md.Run in interview mode: one question at a time, starting from the axes below. Adapt to the previous answer; do not dump a questionnaire. When the options are enumerable, offer them as a choice. Record answers in the draft as you go.
Deliverable: docs/design/<slice>/3-architecture.md (template: architecture.md) + one ADR per structural decision (template: adr.md), numbered sequentially (ADR-NNN-slug.md, never recycled) and registered in the ADR index.
1. APIs — how does the system communicate?
2. Events — how are changes propagated?
3. Integrations — how do the modules connect?
4. Databases — how is the data stored?
5. Cross-cutting requirements
postgres — schema design and query patterns when deciding the data layer.saas-multi-tenant — when the system serves multiple tenants.threat-model — when the architecture exposes trust boundaries worth enumerating.When the deliverable is written and the exit checklist is satisfied, present a summary (architectural style, ADRs born, open points) and let the owner review and adjust. Only the owner's explicit approval closes the phase. Then update STATE.md (Phase 3 approved with date, deliverable link, key decisions and ADRs) and point to the next phase: the design-implementation-plan skill. If the session ends mid-phase, record the exact stopping point and the next 2–3 pending questions in STATE.md.
docs/design/<slice>/3-architecture.md — the Phase 3 deliverable.docs/design/<slice>/STATE.md updated with the phase situation, links and key decisions.STATE.md.design-business-discovery, design-domain-model.design-implementation-plan (turns this architecture into a backlog of changes).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/ddd-strategic-designDesigns DDD strategic artifacts - subdomain classification, bounded contexts, context map and ubiquitous-language glossary - for complex business domains. Use when splitting a domain or monolith by boundaries, aligning team ownership with contexts, or when the user says "bounded contexts", "subdomains", "context map" or "strategic DDD"./design-business-discoveryPhase 1 of greenfield DDD design. Interviews the product owner, one question at a time, to understand the business before any technical decision (goals, processes, rules, domain experts, ubiquitous language) and writes docs/design/<slice>/1-business-vision.md. Use when starting the design of a new project, or when the user says "business vision", "understand the domain first", "start the design", or wants to redo Phase 1./design-domain-modelPhase 2 of greenfield DDD design. Turns the approved business vision into a domain model (bounded contexts, entities, value objects, aggregates, domain events) still without technology, interviewing one question at a time, and writes docs/design/<slice>/2-domain-model.md. Use after design-business-discovery is approved, or when the user says "model the domain", "bounded contexts", "aggregates", or wants to resume Phase 2./design-implementation-planPhase 4 of greenfield DDD design. Interviews the owner to turn the approved architecture into a build plan (scaffold, stack traced to ADRs, minimum pipeline) and a backlog of vertical changes ordered by risk and value, written to docs/design/<slice>/4-implementation-plan.md. Use after design-architecture is approved, or when the user asks to plan the implementation or build the change backlog of a project whose Phases 1-3 are approved.npx claudepluginhub chacal88/devkit --plugin devkit-design