# /architecture-design [Handbook](../../README.md) · [Skill index](README.md) · [Runtime source](../../../.claude/skills/architecture-design/SKILL.md) ## Purpose Turn requirements and recorded choices into justified system boundaries, applicable design principles and consequential ADRs. ## When to use You need to choose/revise deployment or module boundaries, data ownership, consistency, integration contracts or other architecture decisions. ## When not to use Do not redesign the application for every feature, treat all patterns as mutually exclusive, or copy Foundry’s own construction ADRs as product decisions. ## Invocation ```text /architecture-design Choose boundaries for the booking API. ``` Autocomplete hint: ` [constraints] [existing ADRs]`. Required information can be supplied in context; this is not a shell command or a CLI parser. Use plain-language arguments. See [argument conventions](../../skill-usage.md) for notation and permission boundaries. **Minimal example:** ```text /architecture-design Choose boundaries for the booking API. ``` **With optional context:** ```text /architecture-design Compare a modular monolith with services for the booking API. We have one team and one deployment; preserve accepted ADRs. ``` ## Inputs | Input | Requirement | If omitted | |---|---|---| | decision or goal | Required | Derive from current request/brief; otherwise ask. | | constraints and ADRs | Optional | Inspect current decisions and manifests before proposing changes. | | owner acceptance | Required to mark accepted | Keep ADR proposed until authorized; do not infer acceptance. | **No arguments:** Inspect the brief/current request; ask which material decision needs resolution if unclear. Optional inputs are discovered where reliable; recommendations do not become confirmed choices. Conditional requirements must be resolved before their dependent action. Required information is enforced by skill instructions, not by native autocomplete. The detailed procedure is [linked directly from SKILL.md](../../../.claude/skills/architecture-design/references/workflow.md). ## What it does 1. Inspect current product decisions and relevant profiles only. 2. Separate deployment, layering/ports/slices, domain modeling, read/write model, event communication and distributed coordination. 3. Compare the simplest suitable design with credible alternatives against requirements and operational cost. Use eng-planner for substantial trade-offs. 4. Write or revise architecture.md and principles.md; show boundaries in a Mermaid diagram. Create ADRs only for consequential choices, superseding accepted decisions instead of erasing history. 5. Request eng-reviewer independently for significant proposals and record verification/next action. ## Outputs and ownership docs/project/architecture.md, principles.md and necessary adr/NNNN-title.md entries; updates to STATE.md and downstream implementation acceptance criteria. No infrastructure, accepted user approval or compiled application is created merely by this skill. ## Questions and decisions Ask only material missing or changed choices. Layered structure can coexist with DDD; CQRS/events/sagas each need separate justification. A recommendation is not an accepted decision without actual authorization or explicit delegated decision-making. ## Permissions and side effects Uses the main conversation’s baseline tools/model. Planning may write project documents and use read-only agents. It does not provision infrastructure, install packages or access credentials. Escalate irreversible changes before execution. ## Validation and completion Check requirement traceability, alternatives, consequences, diagram consistency, actual decision status and testable acceptance. A structural design helper pass does not prove suitability. Review migration/rollback implications when revising an existing architecture. ## Failure and recovery Conflicting requirements/accepted decisions are reported before dependent irreversible work. Preserve accepted ADR history and supersede it with evidence. Stop when a material contract is missing; continue independent discovery that does not assume the answer. ## Example ```text /architecture-design Should our appointment and billing modules remain a modular monolith, or do our deployment and ownership constraints justify separate services? Compare alternatives and write only the necessary ADR. ``` This is a usage example, not evidence that a live model completed the task. ## Related components [design-interview](design-interview.md) · [project-kickoff](project-kickoff.md) · [implement-change](implement-change.md) · [backend-scaffold](backend-scaffold.md) See [helper commands](../helpers.md), [configuration](../configuration.md), [workflow selection](../../when-to-use-what.md) and [known qualification limits](../../../reports/DOCUMENTATION-VALIDATION.md). Use the [meaningful ADR guide](../../adr-guide.md) for idempotency, races, delivery/recovery, compatibility and trust decisions. Proposed templates do not authorize a product decision or prove execution.