2025-06-25 16:51:53 +02:00
|
|
|
**Purpose**: System architecture and API design
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
@include shared/universal-constants.yml#Universal_Legend
|
2025-06-24 21:24:14 +02:00
|
|
|
|
|
|
|
|
## Command Execution
|
2025-06-25 00:21:27 +02:00
|
|
|
Execute: immediate. --plan→show plan first
|
|
|
|
|
Legend: Generated based on symbols used in command
|
|
|
|
|
Purpose: "[Action][Subject] in $ARGUMENTS"
|
2025-06-24 21:24:14 +02:00
|
|
|
|
|
|
|
|
Design system architecture & APIs for $ARGUMENTS.
|
|
|
|
|
|
2025-06-24 22:46:52 +02:00
|
|
|
@include shared/flag-inheritance.yml#Universal_Always
|
2025-06-22 14:02:49 +02:00
|
|
|
|
|
|
|
|
Examples:
|
2025-06-24 21:31:34 +02:00
|
|
|
- `/design --api --think` - REST API design w/ patterns
|
|
|
|
|
- `/design --ddd --think-hard` - Deep domain modeling
|
|
|
|
|
- `/design --api --ddd --ultrathink` - Complete system architecture
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
Design modes:
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
**--api:** Design REST or GraphQL APIs
|
2025-06-22 14:02:49 +02:00
|
|
|
- w/ --openapi: Generate OpenAPI 3.0 spec | w/ --graphql: Create GraphQL schema & resolvers
|
|
|
|
|
- Include auth, rate limiting & error handling | Design→scalability & maintainability
|
|
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
**--ddd:** Apply DDD principles
|
|
|
|
|
- w/ --bounded-context: Define context boundaries & mappings
|
2025-06-22 14:02:49 +02:00
|
|
|
- Design entities, value objects & aggregates | Create domain services & events | Impl repository patterns
|
|
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
**--prd:** Create PRD
|
|
|
|
|
- w/ --template: Use template (feature/api/integration/migration)
|
2025-06-22 14:02:49 +02:00
|
|
|
- Include user stories w/ acceptance criteria | Define success metrics & timelines | Document tech requirements
|
|
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
## Design Patterns
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
@include shared/architecture-patterns.yml#API_Design_Patterns
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
@include shared/architecture-patterns.yml#DDD_Patterns
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
@include shared/architecture-patterns.yml#PRD_Templates
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
## Integration & Best Practices
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
Combined modes: API+DDD: Design domain-driven APIs | API+PRD: Create API product requirements | DDD+PRD: Document domain-driven architecture | All three: Complete system design
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
Best practices: Start w/ user needs & business goals | Design→change & evolution | Consider non-functional early | Document decisions & rationale | Include examples & diagrams | Plan→testing & monitoring
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
@include shared/research-patterns.yml#Mandatory_Research_Flows
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
@include shared/docs-patterns.yml#Standard_Notifications
|
2025-06-22 14:02:49 +02:00
|
|
|
|
2025-06-25 00:21:27 +02:00
|
|
|
@include shared/universal-constants.yml#Standard_Messages_Templates
|