/design — Architecture + UI Design
Usage
/design
Prerequisites
specs/stories/must exist (run/specfirst)
Agent Spawning
This skill orchestrates TWO agents concurrently. Use the Agent tool to spawn both in the same message:
Agent 1: architect → reads specs, writes to specs/design/
Agent 2: ui-designer → reads specs, writes to specs/design/mockups/
Both agents read from specs/stories/ but write to separate directories — no file conflicts.
Wait for BOTH to complete before running gates.
Steps
- Read
.claude/skills/architecture/SKILL.mdfor design patterns. - Read
.claude/skills/ui-mockup/SKILL.mdfor mockup patterns. - Spawn both agents concurrently using the Agent tool (two Agent calls in one message):
- Agent 1 (
architect): "Read.claude/skills/architecture/SKILL.md. Read specs fromspecs/stories/. Generate architecture outputs tospecs/design/." - Agent 2 (
ui-designer): "Read.claude/skills/ui-mockup/SKILL.md. Read specs fromspecs/stories/. Generate UI mockups tospecs/design/mockups/."
- Agent 1 (
- Architect writes to
specs/design/:system-design.md— layered architecture, component diagramapi-contracts.md— all endpoints with typed request/response schemasdata-models.md— Pydantic models, DB schema, migrations planfolder-structure.md— file layout per layerdeployment.md— Docker Compose topology, env vars
- UI Designer writes to
specs/design/mockups/:sitemap.md— page inventorymockups/— one HTML file per screen (React + Tailwind, self-contained)component-inventory.md— shared components list
- After both complete — verify consistency: UI mockup data shapes must match
api-contracts.md. - Verify gates for both agents.
Gates
- Architecture: all API endpoints have typed schemas, folder structure defined, migration plan exists
- UI: every story with
Layer: UIhas a corresponding mockup HTML file - Both outputs are consistent (UI uses the same API contracts the architect defined)
Gotchas
- Architect and UI designer diverge on API shapes. The architect defines contracts first; the UI designer consumes them. If run concurrently, verify consistency after both finish.
- Missing deployment design. Architecture must include
deployment.md— without it, Phase 7 has nothing to build from. - Mockups with fake APIs. UI mockups use mock data, but the data shape must match
api-contracts.md. Mismatch here causes integration bugs in Phase 4. - No folder structure output. Without
folder-structure.md, implementer teammates can't determine file ownership for parallel execution.