capacity-planner
БесплатноБез исполняемых скриптовНе проверенTranslates performance test results into infrastructure scaling recommendations with cost estimates. Use when someone has load test data and needs to know…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Capacity Planner
Overview
This skill takes performance test results (breaking points, latency data, error patterns) and produces actionable infrastructure scaling recommendations. It identifies bottlenecks, recommends specific resource changes, estimates costs, and generates verification criteria.
Instructions
Step 1: Gather Current State
Ask or determine:
- Current infrastructure specs (pod count, instance types, DB size, cache config)
- Current sustainable RPS and latency at that level
- Breaking point from load tests (RPS or VU count where SLOs break)
- Target traffic (expressed as RPS, concurrent users, or multiplier like "3x")
Step 2: Identify Bottleneck Layer
From load test error patterns, determine the primary bottleneck:
| Error Pattern | Likely Bottleneck |
|---|---|
| Timeouts increasing gradually | CPU saturation on application pods |
| Sudden spike in 5xx errors | Database connection pool exhaustion |
| Connection refused errors | Pod/instance limit reached |
| Slow first byte, fast transfer | Database query latency |
| Memory-related crashes | Application memory leak or undersized instances |
| Intermittent 503s | Load balancer target limits |
Step 3: Calculate Required Resources
Use linear scaling as baseline, then apply correction factors:
Required pods = current_pods × (target_RPS / current_max_RPS) × 1.3 safety factor
Required DB connections = current_pool × (target_RPS / current_max_RPS) × 1.2
Adjust for:
- Database scaling is NOT linear (add read replicas for read-heavy, scale vertically for write-heavy)
- Cache hit rates improve with more traffic (warm cache)
- Connection overhead per pod
Connection budget check (do this before raising any pool size): total database connections = pods × pool size per pod. The total must stay under the database's max_connections, and on RDS that limit depends on instance memory. If the scaled total does not fit, add a pooler such as Amazon RDS Proxy or PgBouncer, or lower the per-pod pool, instead of raising the pool further.
Step 4: Estimate Costs
Do not reuse remembered instance prices. Price each change with the AWS Pricing Calculator for the target region, and state the source of every figure in the plan.
| Resource | How to price it |
|---|---|
| Pod capacity | Price the node instance type that hosts the pods, then divide by pods per node. A pod's share of a shared node is not a fixed price. |
| RDS instance | Varies by engine, class, Multi-AZ and region. Look up the exact class. |
| RDS read replica | Billed as its own instance of the same class (plus storage for it) |
| ElastiCache node | Varies by node type and region. Look up the exact type. |
| Application Load Balancer | $0.0225/hour (about $16.20/month at 720 h) plus per-LCU charges |
| Network Load Balancer | $0.0225/hour (about $16.20/month at 720 h) plus per-NLCU charges |
Costs vary by region, reserved instances and savings plans. The figures in the examples below are illustrative, not current list prices.
Step 5: Produce Scaling Plan
Format as actionable items with:
- What to change (specific resource, config parameter)
- Current value → target value
- Why (which bottleneck it addresses)
- Cost impact
- Implementation order (dependencies between changes)
- Verification criteria (what to re-test after)
Examples
Example 1: Pre-Launch Scaling Plan
User prompt:
We break at 400 RPS with 3 pods and RDS db.r5.large. Need to handle 1200 RPS for launch.
Agent output:
Capacity Plan: 400 → 1,200 RPS (illustrative prices)
───────────────────────────────
Step Change Cost Delta Addresses
1 DB pool_size: 20 → 80 $0 Connection exhaustion (primary bottleneck)
2 RDS: db.r5.large → db.r5.2xlarge +$822/mo Write throughput + connections
3 Add RDS read replica +$1,096/mo Read query offloading
4 API pods: 3 → 10 (HPA min=7) +$245/mo Request processing capacity
5 Redis: r6g.medium → r6g.xlarge +$258/mo Session/cache throughput
Total additional cost: $2,421/month
Implementation order: 1 → 2 → 3 → 4 → 5 (each step unblocks the next)
Connection check for step 1: 10 pods × pool 80 = 800 connections. Confirm this fits
max_connections for the target instance class, or put RDS Proxy in front first.
Verification: Re-run load test after each step. Expected milestones:
After step 1-2: Breaking point moves to ~700 RPS
After step 3: Breaking point moves to ~1,000 RPS
After step 4-5: Target 1,200 RPS with p95 < 500ms
Example 2: Cost-Optimized Scaling
User prompt:
We need to handle 2x traffic but leadership wants minimal cost increase.
Agent output:
Cost-Optimized Scaling Plan (2x traffic)
────────────────────────────────────────
FREE WINS (configuration only)
1. Increase DB connection pool: 20 → 40 +0$/mo Impact: +30% throughput
2. Enable gzip compression on API responses
Установить capacity-planner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл capacity-planner?
Translates performance test results into infrastructure scaling recommendations with cost estimates. Use when someone has load test data and needs to know what infrastructure changes are required to handle target traffic. Trigger words: capacity planning, scaling plan, infrastructure sizing, how many pods, RDS sizing, handle more traffic, scale for launch.
Как установить скилл capacity-planner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл capacity-planner запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic