antipattern-detector
Detect common technical and organizational anti-patterns in proposals, architectures, and plans. Use when strategic-cto-mentor…
Guidance for scaling systems from startup to enterprise scale. Use when planning for growth, diagnosing bottlenecks, or designing systems that need to handle 10x-1000x current load.
$ npx -y skills add alirezarezvani/claude-cto-team --skill scalability-advisor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/scalability-advisorContext preview
The summary Claude sees to decide when to auto-load this skill.
Guidance for scaling systems from startup to enterprise scale. Use when planning for growth, diagnosing bottlenecks, or designing systems that need to handle 10x-1000x current load.
name: scalability-advisor description: Guidance for scaling systems from startup to enterprise scale. Use when planning for growth, diagnosing bottlenecks, or designing systems that need to handle 10x-1000x current load.
Provides systematic guidance for scaling systems at different growth stages, identifying bottlenecks, and designing for horizontal scalability.
┌─────────────────────────────────────────────────────────────────────┐ │ SCALING JOURNEY │ ├─────────────────────────────────────────────────────────────────────┤ │ │ │ Stage 1 Stage 2 Stage 3 Stage 4 │ │ Startup Growth Scale Enterprise │ │ 0-10K users 10K-100K 100K-1M 1M+ users │ │ │ │ Single Add caching, Horizontal Global, │ │ server read replicas scaling multi-region │ │ │ │ $100/mo $1K/mo $10K/mo $100K+/mo │ └─────────────────────────────────────────────────────────────────────┘
---
┌────────────────────────────────────────┐ │ Single Server │ │ ┌──────────────────────────────────┐ │ │ │ App Server (Node/Python/etc) │ │ │ │ + Database (PostgreSQL) │ │ │ │ + File Storage (local/S3) │ │ │ └──────────────────────────────────┘ │ └────────────────────────────────────────┘
| Metric | Target | Warning | |--------|--------|---------| | Response time (P95) | < 500ms | > 1s | | Database queries/request | < 10 | > 20 | | Server CPU | < 70% | > 85% | | Database connections | < 50% pool | > 80% pool |
**DO**:
**DON'T**:
---
┌─────────────────────────────────────────────────────────────┐ │ │ │ ┌─────────┐ ┌─────────────────────────────────┐ │ │ │ CDN │ │ Load Balancer │ │ │ └────┬────┘ └──────────────┬──────────────────┘ │ │ │ │ │ │ │ ┌──────────────┼──────────────┐ │ │ │ │ │ │ │ │ ▼ ▼ ▼ ▼ │ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │ │ Static │ │ App 1 │ │ App 2 │ │ App 3 │ │ │ │ Assets │ └────┬────┘ └────┬────┘ └────┬────┘ │ │ └─────────┘ │ │ │ │ │ └──────────────┼────────────┘ │ │ │ │ │ ┌──────────────┼──────────────┐ │ │ │ │ │ │ │ ▼ ▼ ▼ │ │ ┌─────────┐ ┌─────────┐ ┌─────────┐ │ │ │ Primary │ │ Read │ │ Redis │ │ │ │ DB │───│ Replica │ │ Cache │ │ │ └─────────┘ └─────────┘ └─────────┘ │ │ │ └─────────────────────────────────────────────────────────────┘
| Component | Purpose | When to Add | |-----------|---------|-------------| | **CDN** | Static asset caching | Images, JS, CSS taking > 20% bandwidth | | **Load Balancer** | Distribute traffic | Single server CPU > 70% | | **Read Replicas** | Offload reads | > 80% database ops are reads | | **Redis Cache** | Application caching | Same queries repeated frequently | | **Job Queue** | Async processing | Background tasks blocking requests |
Request Flow with Caching:
1. Check CDN (static assets) ─► HIT: Return cached
│
2. Check Application Cache (Redis) ─► HIT: Return cached
│
3. Check Database ─► Return + Cache result**What to Cache**:
-- Find slow queries SELECT query, calls, mean_time, total_time FROM pg_stat_statements ORDER BY total_time DESC LIMIT 20; -- Find missing indexes SELECT schemaname, tablename, indexrelname, idx_scan, seq_scan FROM pg_stat_user_indexes WHERE idx_scan = 0 AND seq_scan > 1000;
---
Your personal CTO Team for Claude Code - Custom AI subagents that provide strategic technical leadership, system architecture design, and brutally honest feedback on your technical decisions.
Detect common technical and organizational anti-patterns in proposals, architectures, and plans. Use when strategic-cto-mentor…
Recommend architecture patterns (monolith, microservices, serverless, modular monolith) based on scale, team size, and…
Identify and challenge implicit assumptions in plans, proposals, and technical decisions. Use when strategic-cto-mentor needs to…
Generate targeted clarifying questions (2-3 max) that challenge vague requirements and extract missing context. Use after…
Infrastructure and development cost estimation for technical projects. Use when planning budgets, evaluating build vs buy…
Transform clarified user requests into structured delegation prompts optimized for specialist agents (cto-architect,…