Internal skill. Use cc10x-router for all development tasks.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/romiluz13/cc10x/blob/main/plugins/cc10x/skills/architecture-patterns/SKILL.md -a claude-code --skill architecture-patternsInstallation paths:
.claude/skills/architecture-patterns/# Architecture Patterns ## Overview Architecture exists to support functionality. Every architectural decision should trace back to a functionality requirement. **Core principle:** Design architecture FROM functionality, not TO functionality. ## Focus Areas (Reference Pattern) - **RESTful API design** with proper versioning and error handling - **Service boundary definition** and inter-service communication - **Database schema design** (normalization, indexes, sharding) - **Caching strategies** and performance optimization - **Basic security patterns** (auth, rate limiting) ## The Iron Law ``` NO ARCHITECTURE DESIGN BEFORE FUNCTIONALITY FLOWS ARE MAPPED ``` If you haven't documented user flows, admin flows, and system flows, you cannot design architecture. ## Intake Routing **First, determine what kind of architectural work is needed:** | Request Type | Route To | |--------------|----------| | "Design API endpoints" | API Design section | | "Plan system architecture" | Full Architecture Design | | "Design data models" | Data Model section | | "Plan integrations" | Integration Patterns section | | "Make decisions" | Decision Framework section | ## Universal Questions (Answer First) **ALWAYS answer before designing:** 1. **What functionality are we building?** - User stories, not technical features 2. **Who are the actors?** - Users, admins, external systems 3. **What are the user flows?** - Step-by-step user actions 4. **What are the system flows?** - Internal processing steps 5. **What integrations exist?** - External dependencies 6. **What are the constraints?** - Performance, security, compliance 7. **What observability is needed?** - Logging, metrics, monitoring, alerting ## Functionality-First Design Process ### Phase 1: Map Functionality Flows **Before any architecture:** ``` User Flow (example): 1. User opens upload page 2. User selects file 3. System validates file type/size 4. System uploads to storage 5. System shows success message Admin