Design system architecture, API contracts, and data flows. Use when translating analyzed requirements into technical design for feature implementation.
Unified design guidance for feature implementation. Auto-detects context from project files or accepts explicit mode.
/design # Auto-detect from project, show summary
/design architecture # Component architecture, SOLID, patterns
/design api # REST API design, auth, rate limiting
/design data # Pydantic schemas, validators, relationships
/design full # All three in sequence (architecture → data → API)
Parse $ARGUMENTS for explicit mode. If no arguments provided, detect context:
DETECTED=$(bash "$HOME/.claude/skills/design/lib/design-detector.sh")
Map detection results to recommended mode:
pydantic,fastapi → suggest api + datapydantic only → suggest datafastapi or flask or django → suggest apiarchitectureBased on detected or explicit mode, use progressive disclosure:
Level 1 — Summary (default, ~15 lines): Read and present the summary template for the chosen domain:
templates/architecture/summary.mdtemplates/api/summary.mdtemplates/data/summary.mdLevel 2 — Patterns (on request for more detail, ~50 lines): Read the patterns template with decision guidance and examples:
templates/architecture/patterns.mdtemplates/api/patterns.mdtemplates/data/patterns.mdLevel 3 — Full Reference (on request for complete SOP): Read the deep reference documents on demand:
reference/architecture-patterns.md + reference/component-design-guide.mdreference/api-design-guide.md + reference/function-design-patterns.mdreference/data-model-guide.md + reference/pydantic-patterns.mdIf context suggests multiple domains (e.g., new feature with API + data):
/design full for the complete sequenceIf detection returns "unknown" and no explicit mode:
/design full SequenceWhen running the full design workflow:
Output uses templates/architecture-doc.md as the final document template.
Write documents to docs/architecture/ in the project root:
| Subcommand | Output Path |
| ---------------------- | --------------------------------------------- |
| /design architecture | docs/architecture/architecture-{feature}.md |
| /design api | docs/architecture/api-{feature}.md |
| /design data | docs/architecture/data-{feature}.md |
| /design full | docs/architecture/{feature}.md (combined) |
Use templates/architecture-doc.md as the document template with sections:
Create docs/architecture/ if it doesn't exist.
Invoked by: User directly (/design), /story prp workflow (design phase)
Invokes: Nothing directly — produces architecture docs consumed by prp-generator
Connected skills:
/story create → requirements → /design → architecture doc → /story prp → PRP/implementation consumes design outputSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer