Design system architecture, APIs, and component interfaces with structured workflow
Follows a systematic workflow (Understand → Research → Specify → Decompose → Plan) to design system architecture, APIs, and component interfaces. Use when planning new systems, making build vs buy decisions, or breaking down complex architectural problems.
/plugin marketplace add Shakes-tzd/contextune/plugin install contextune@ContextuneSystematic architecture design following: Understand → Research → Specify → Decompose → Plan
This command provides a structured approach to system design, API design, and architectural planning.
Use /ctx:design when you need to:
Extract essentials:
If unclear, ask:
Run WebSearch queries (use WebSearch tool):
# Search for best libraries/tools
WebSearch: "best {technology} for {problem} 2025"
# Search for implementation examples
WebSearch: "{problem} implementation examples latest"
# Search for known issues
WebSearch: "{problem} common pitfalls challenges"
# Compare top solutions
WebSearch: "{library A} vs {library B} comparison 2025"
Example for authentication:
WebSearch: "best authentication library Node.js 2025"
WebSearch: "JWT vs Session authentication comparison 2025"
WebSearch: "authentication implementation examples Express"
WebSearch: "authentication security pitfalls 2025"
For each solution found, evaluate:
Output format:
| Solution | Maturity | Fit | Integration | Cost | Risk | Recommendation |
|---|---|---|---|---|---|---|
| Library A | High (10K⭐) | 95% | ✅ | Free (MIT) | Low | ✅ Use |
| Library B | Medium (2K⭐) | 85% | ✅ | $99/mo | Medium | ❌ Skip |
| Build Custom | N/A | 100% | ✅ | Dev time | High | ❌ Skip |
Structure:
## Problem Statement
[1-2 sentences]
## Requirements
- [ ] Functional (High/Med/Low priority)
- [ ] Performance (metrics, scale)
- [ ] Security (requirements)
## Constraints
- Technical: [stack, systems]
- Resources: [time, budget, team]
## Success Criteria
- [Measurable outcomes]
Process:
For each task:
Phase structure:
## Phase 1: Foundation (Parallel)
- [ ] Task A - Infrastructure
- [ ] Task B - Data models
- [ ] Task C - CI/CD
## Phase 2: Core (Sequential after Phase 1)
- [ ] Task D - Auth (needs A,B)
- [ ] Task E - API (needs B)
## Phase 3: Features (Mixed)
- [ ] Task F - Feature 1 (needs D,E)
- [ ] Task G - Feature 2 (needs D,E) ← Parallel with F
| Factor | Build | Buy |
|---|---|---|
| Uniqueness | Core differentiator | Common problem |
| Fit | Tools don't match | 80%+ match |
| Control | Need full control | Standard OK |
| Timeline | Have time | Need speed |
| Expertise | Team has skills | Steep curve |
| Maintenance | Can maintain | Want support |
This command is enhanced by the ctx:architect skill, which provides:
The skill automatically activates when Contextune detects design-related prompts.
API Design:
/ctx:design Design REST API for user management with auth
System Architecture:
/ctx:design Design microservices architecture for e-commerce platform
Component Planning:
/ctx:design Plan authentication system with OAuth2 and JWT
/ctx:research - Research libraries and best practices/ctx:plan - Create parallel development planctx:architect skill - Automated design workflow guidance