
Architecture
Force context discovery (scale, team, timeline, domain, constraints) before your agent proposes stack or architecture so MVP choices do not inherit enterprise microservice defaults.
Install
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill architectureWhat is this skill?
- Five-question hierarchy: scale, team, timeline, domain, and constraints—ask the user first
- Project classification matrix across MVP, SaaS, and Enterprise rows (users, team size, timeline, architecture style)
- Maps solo fast-MVP paths (e.g. simple modular stacks) versus comprehensive distributed patterns for large teams
- Real-world architecture examples by project type to anchor recommendations after context is gathered
- Explicit gate: no architecture suggestions until discovery questions are answered
Adoption & trust: 992 installs on skills.sh; 40.1k GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Architecture decisions surface when you scope what to build; Validate/scope is the canonical shelf before heavy Build work, even though the questioning ritual applies later when you redesign. Scope subphase is where solo builders lock scale and constraints; this skill prevents premature pattern dumps until those answers exist.
Common Questions / FAQ
Is Architecture safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Architecture
# Context Discovery > Before suggesting any architecture, gather context. ## Question Hierarchy (Ask User FIRST) 1. **Scale** - How many users? (10, 1K, 100K, 1M+) - Data volume? (MB, GB, TB) - Transaction rate? (per second/minute) 2. **Team** - Solo developer or team? - Team size and expertise? - Distributed or co-located? 3. **Timeline** - MVP/Prototype or long-term product? - Time to market pressure? 4. **Domain** - CRUD-heavy or business logic complex? - Real-time requirements? - Compliance/regulations? 5. **Constraints** - Budget limitations? - Legacy systems to integrate? - Technology stack preferences? ## Project Classification Matrix ``` MVP SaaS Enterprise ┌─────────────────────────────────────────────────────────────┐ │ Scale │ <1K │ 1K-100K │ 100K+ │ │ Team │ Solo │ 2-10 │ 10+ │ │ Timeline │ Fast (weeks) │ Medium (months)│ Long (years)│ │ Architecture │ Simple │ Modular │ Distributed │ │ Patterns │ Minimal │ Selective │ Comprehensive│ │ Example │ Next.js API │ NestJS │ Microservices│ └─────────────────────────────────────────────────────────────┘ ``` # Architecture Examples > Real-world architecture decisions by project type. --- ## Example 1: MVP E-commerce (Solo Developer) ```yaml Requirements: - <1000 users initially - Solo developer - Fast to market (8 weeks) - Budget-conscious Architecture Decisions: App Structure: Monolith (simpler for solo) Framework: Next.js (full-stack, fast) Data Layer: Prisma direct (no over-abstraction) Authentication: JWT (simpler than OAuth) Payment: Stripe (hosted solution) Database: PostgreSQL (ACID for orders) Trade-offs Accepted: - Monolith → Can't scale independently (team doesn't justify it) - No Repository → Less testable (simple CRUD doesn't need it) - JWT → No social login initially (can add later) Future Migration Path: - Users > 10K → Extract payment service - Team > 3 → Add Repository pattern - Social login requested → Add OAuth ``` --- ## Example 2: SaaS Product (5-10 Developers) ```yaml Requirements: - 1K-100K users - 5-10 developers - Long-term (12+ months) - Multiple domains (billing, users, core) Architecture Decisions: App Structure: Modular Monolith (team size optimal) Framework: NestJS (modular by design) Data Layer: Repository pattern (testing, flexibility) Domain Model: Partial DDD (rich entities) Authentication: OAuth + JWT Caching: Redis Database: PostgreSQL Trade-offs Accepted: - Modular Monolith → Some module coupling (microservices not justified) - Partial DDD → No full aggregates (no domain experts) - RabbitMQ later → Initial synchronous (add when proven needed) Migration Path: - Team > 10 → Consider microservices - Domains conflict → Extract bounded contexts - Read performance issues → Add CQRS ``` --- ## Example 3: Enterprise (100K+ Users) ```yaml Requirements: - 100K+ users - 10+ developers - Multiple business domains - Different scaling needs - 24/7 availability Architecture Decisions: App Structure: Microservices (independent scale) API Gateway: Kong/AWS API GW Domain Model: Full DDD Consistency: Event-driven (eventual OK) Message Bus: Kafka Authentication: OAuth + SAML (enterprise SSO) Database: Polyglot (right tool per job) CQRS: Selected services Operational Requirements: - Service mesh (Istio/Linkerd) - Distributed tracing (Jaeger/Tempo) - Centralized logging (ELK/Loki) - Circuit breakers (Resilience4j) - Kubernetes/Helm ``` # Pattern Selection Guidelines > Decision trees for choosing architectural patterns. ## Main Decision Tree ``` START: What's your MAIN concern? ┌─ Data Access Complexity? │ ├─ HIGH (complex queries, testing needed) │ │ → Repository Pattern + Unit of Work │ │ VALIDATE: Will data source change frequentl