analyzing-projects
Analyzes codebases to understand structure, tech stack, patterns, and conventions. Use when onboarding to a new project,…
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.
Claude Code
$ npx -y skills add CloudAI-X/claude-workflow-v2 --skill designing-architecture --agent claude-code
Codex
$ npx skills add CloudAI-X/claude-workflow-v2 --skill designing-architecture -a codex -y
Cursor
$ npx skills add CloudAI-X/claude-workflow-v2 --skill designing-architecture -a cursor -y
Gemini CLI
$ npx skills add CloudAI-X/claude-workflow-v2 --skill designing-architecture -a gemini-cli -y
GitHub Copilot
$ npx skills add CloudAI-X/claude-workflow-v2 --skill designing-architecture -a github-copilot -y
OpenCode
$ npx skills add CloudAI-X/claude-workflow-v2 --skill designing-architecture -a opencode -y
Windsurf
$ npx skills add CloudAI-X/claude-workflow-v2 --skill designing-architecture -a windsurf -y
name: designing-architecture description: 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.
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
| Size | Recommended Pattern | | ----------------- | --------------------------------- | | Small (<10K LOC) | Simple MVC/Layered | | Medium (10K-100K) | Clean Architecture | | Large (>100K) | Modular Monolith or Microservices |
| Team | Recommended | | --------- | ---------------------------- | | 1-3 devs | Monolith with clear modules | | 4-10 devs | Modular Monolith | | 10+ devs | Microservices (if justified) |
┌─────────────────────────────┐ │ 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
┌─────────────────────────────────────┐ │ Frameworks & Drivers │ │ ┌─────────────────────────────┐ │ │ │ Interface Adapters │ │ │ │ ┌─────────────────────┐ │ │ │ │ │ Application │ │ │ │ │ │ ┌─────────────┐ │ │ │ │ │ │ │ Domain │ │ │ │ │ │ │ └─────────────┘ │ │ │ │ │ └─────────────────────┘ │ │ │ └─────────────────────────────┘ │ └─────────────────────────────────────┘
**Use when**: Complex business logic, long-lived projects, testability is key
┌──────────┐
│ HTTP API │
└────┬─────┘
│ Port
┌────────▼────────┐
│ │
│ Application │
│ Core │
│ │
└────────┬────────┘
│ Port
┌────▼─────┐
│ Database │
└──────────┘**Use when**: Need to swap external dependencies, multiple entry points
Producer → Event Bus → Consumer
│
├─→ Consumer
│
└─→ Consumer**Use when**: Loose coupling needed, async processing, scalability
┌─────────────┐ ┌─────────────┐
│ Commands │ │ Queries │
│ (Write) │ │ (Read) │
└──────┬──────┘ └──────┬──────┘
│ │
▼ ▼
Write Model Read Model
│ │
└────────┬───────────┘
▼
Event Store**Use when**: Different read/write scaling, complex domains, event sourcing
src/
├── features/
│ ├── users/
│ │ ├── api/
│ │ ├── components/
│ │ ├── hooks/
│ │ ├── services/
│ │ └── types/
│ └── orders/
│ ├── api/
│ ├── components/
│ └── ...
├── shared/
│ ├── components/
│ ├── hooks/
│ └── utils/
└── app/
└── ...src/ ├── controllers/ ├── services/ ├── models/ ├── repositories/ └── utils/
When making architectural decisions, evaluate against these criteria:
1. **Simplicity** - Start simple, evolve when needed 2. **Team Skills** - Match architecture to team capabilities 3. **Requirements** - Let business needs drive decisions 4. **Scalability** - Consider growth trajectory 5. **Maintainability** - Optimize for change
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]
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.
A universal Claude Code workflow plugin with specialized agents, skills, hooks, and mode commands for any software project. Compatible with skills.sh — works with Claude Code, Cursor, Codex, and 35+ AI agents.
Analyzes codebases to understand structure, tech stack, patterns, and conventions. Use when onboarding to a new project,…
Convex backend development guidelines. Use when writing Convex functions, schemas, queries, mutations, actions, or any backend…
Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when…
Designs REST and GraphQL APIs including endpoints, error handling, versioning, and documentation. Use when creating new APIs,…
Designs and implements testing strategies for any codebase. Use when adding tests, improving coverage, setting up testing…
Guides Docker, CI/CD pipelines, deployment strategies, infrastructure as code, and observability setup. Use when writing…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.