Designing architecture
Skill ComeOnOliver/skillshub/skills/CloudAI-X/claude-workflow-v2/designing-architecture
π§ The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.
npx -y skills add ComeOnOliver/skillshub --skill designing-architectureAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Designs software architecture and selects appropriate patterns for projects. Use when designing systems, choosing architecture patterns, structuring projects, making technical decisions, or when asked about microservices, monoliths, or architectural approaches.
SKILL.md
7.1 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it
Designing Architecture
When to Load
- Trigger: System design, module structure, new project scaffolding, choosing architecture patterns
- Skip: Simple bug fixes or minor code changes that don't affect architecture
Architecture Decision Workflow
Copy this checklist and track progress:
Architecture Design Progress:
- [ ] Step 1: Understand requirements and constraints
- [ ] Step 2: Assess project size and team capabilities
- [ ] Step 3: Select architecture pattern
- [ ] Step 4: Define directory structure
- [ ] Step 5: Document trade-offs and decision
- [ ] Step 6: Validate against decision framework
Pattern Selection Guide
By Project Size
| Size | Recommended Pattern |
|---|---|
| Small (<10K LOC) | Simple MVC/Layered |
| Medium (10K-100K) | Clean Architecture |
| Large (>100K) | Modular Monolith or Microservices |
By Team Size
| Team | Recommended |
|---|---|
| 1-3 devs | Monolith with clear modules |
| 4-10 devs | Modular Monolith |
| 10+ devs | Microservices (if justified) |
Common Patterns
1. Layered Architecture
βββββββββββββββββββββββββββββββ
β Presentation β β UI, API Controllers
βββββββββββββββββββββββββββββββ€
β Application β β Use Cases, Services
βββββββββββββββββββββββββββββββ€
β Domain β β Business Logic, Entities
βββββββββββββββββββββββββββββββ€
β Infrastructure β β Database, External APIs
βββββββββββββββββββββββββββββββ
Use when: Simple CRUD apps, small teams, quick prototypes
2. Clean Architecture
βββββββββββββββββββββββββββββββββββββββ
β Frameworks & Drivers β
β βββββββββββββββββββββββββββββββ β
β β Interface Adapters β β
β β βββββββββββββββββββββββ β β
β β β Application β β β
β β β βββββββββββββββ β β β
β β β β Domain β β β β
β β β βββββββββββββββ β β β
β β βββββββββββββββββββββββ β β
β βββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββ
Use when: Complex business logic, long-lived projects, testability is key
3. Hexagonal (Ports & Adapters)
ββββββββββββ
β HTTP API β
ββββββ¬ββββββ
β Port
ββββββββββΌβββββββββ
β β
β Application β
β Core β
β β
ββββββββββ¬βββββββββ
β Port
ββββββΌββββββ
β Database β
ββββββββββββ
Use when: Need to swap external dependencies, multiple entry points
4. Event-Driven Architecture
Producer β Event Bus β Consumer
β
βββ Consumer
β
βββ Consumer
Use when: Loose coupling needed, async processing, scalability
5. CQRS (Command Query Responsibility Segregation)
βββββββββββββββ βββββββββββββββ
β Commands β β Queries β
β (Write) β β (Read) β
ββββββββ¬βββββββ ββββββββ¬βββββββ
β β
βΌ βΌ
Write Model Read Model
β β
ββββββββββ¬ββββββββββββ
βΌ
Event Store
Use when: Different read/write scaling, complex domains, event sourcing
Directory Structure Patterns
Feature-Based (Recommended for medium+)
src/
βββ features/
β βββ users/
β β βββ api/
β β βββ components/
β β βββ hooks/
β β βββ services/
β β βββ types/
β βββ orders/
β βββ api/
β βββ components/
β βββ ...
βββ shared/
β βββ components/
β βββ hooks/
β βββ utils/
βββ app/
βββ ...
Layer-Based (Simple apps)
src/
βββ controllers/
βββ services/
βββ models/
βββ repositories/
βββ utils/
Decision Framework
When making architectural decisions, evaluate against these criteria:
- Simplicity - Start simple, evolve when needed
- Team Skills - Match architecture to team capabilities
- Requirements - Let business needs drive decisions
- Scalability - Consider growth trajectory
- Maintainability - Optimize for change
Trade-off Analysis Template
Use this template to document architectural decisions:
## Decision: [What we're deciding]
### Context
[Why this decision is needed now]
### Options Considered
1. Option A: [Description]
2. Option B: [Description]
### Trade-offs
| Criteria | Option A | Option B |
| ---------------- | -------- | -------- |
| Complexity | Low | High |
| Scalability | Medium | High |
| Team familiarity | High | Low |
### Decision
We chose [Option] because [reasoning].
### Consequences
- [What this enables]
- [What this constrains]
Validation Checklist
After selecting an architecture, validate against:
Architecture Validation:
- [ ] Matches project size and complexity
- [ ] Aligns with team skills and experience
- [ ] Supports current requirements
- [ ] Allows for anticipated growth
- [ ] Dependencies flow inward (core has no external deps)
- [ ] Clear boundaries between modules/layers
- [ ] Testing strategy is feasible
- [ ] Trade-offs are documented
If validation fails, reconsider the pattern selection or adjust the implementation approach.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.