agentleFS
stevancrisstevancris/sre-ai-agent/skills/capacity-planning/SKILL.md

capacity-planning

Skill0 starsChanged 5 months agoMITView on GitHub

Forecast infrastructure capacity needs and plan for growth. Use when planning for a product launch, reviewing resource utilization, handling autoscaling limits, responding to cost spikes from over-provisioning, or building a quarterly infrastructure roadmap. Trigger keywords: capacity, scaling, growth, traffic forecast, infrastructure sizing, autoscaling, resource limits, nodes, pods, instances, headroom, peak traffic, launch, viral growth, capacity crunch, running out of, max replicas, HPA limit, scale up.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before loading context files, check if context/CONTEXT.md exists in the current directory.

    line 17
  2. Distinctive:

    Use the answers inline for this session.

    line 29
  3. Very specific:

    Read context/CONTEXT.md and context/company/tech-stack.md for cloud provider, container platform, and company stage.

    line 38
  4. Distinctive:

    Ask the user for (or help them find):

    line 42
  5. Distinctive:

    Consider vertical pod autoscaling for memory-bound services

    line 101
  6. Distinctive:

    Read replica count for read-heavy scaling

    line 104
  7. Distinctive:

    Always include a "do nothing" scenario to show the cost of inaction (incident, degradation).

    line 138

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Capacity Planning Skill

Setup Check

Before loading context files, check if context/CONTEXT.md exists in the current directory.

If context/CONTEXT.md exists — read it and proceed normally.

If context/CONTEXT.md does not exist — this skill was installed standalone (e.g. via npx skills add). Ask the user these questions before proceeding:

  1. Role — junior-sre / senior-sre / sre-manager (shapes output depth and tone)
  2. Cloud provider — aws / gcp / azure / on-prem / hybrid
  3. Observability stack — e.g. Datadog, Prometheus+Grafana, New Relic
  4. Company name and primary services affected (if relevant to this task)

Use the answers inline for this session. For persistent setup across all skills, suggest:

pipx install sre-agent
sre-agent init

Instructions

Step 1: Load Context

Read context/CONTEXT.md and context/company/tech-stack.md for cloud provider, container platform, and company stage.

Step 2: Gather Current Baseline

Ask the user for (or help them find):

  • Current resource utilization: CPU %, memory %, storage, network throughput
  • Current traffic: RPS at P50 / P95 / P99 / peak
  • Current pod/instance counts per service
  • Autoscaling configuration (min, max, target utilization)
  • Cost baseline (monthly cloud spend)

Step 3: Project Growth

Choose the appropriate growth model:

Linear growth model (steady, predictable business)

projected_traffic = current_traffic × (1 + monthly_growth_rate)^months

Exponential growth model (early startup, high growth)

projected_traffic = current_traffic × growth_multiplier^quarters

Event-driven model (product launch, seasonal peak)

peak_traffic = baseline_traffic × peak_multiplier
# Common peak multipliers: 2x (normal launch), 5x (viral launch), 10x (major campaign)

Ask the user:

  • What is the expected monthly traffic growth rate?
  • Are there any planned events (launches, campaigns, partnerships) that will spike traffic?
  • What is the planning horizon (3 months, 6 months, 1 year)?

Step 4: Identify Bottlenecks

For each resource dimension, calculate when it hits its limit:

Time to limit = (limit - current_value) / monthly_growth_rate

Example:
  CPU: currently at 45%, limit at 80% (with autoscaling headroom)
  Monthly traffic growth: 15%
  CPU grows proportionally to traffic
  Months to limit: (80 - 45) / (45 × 0.15) = 5.2 months

Bottleneck analysis table:

ResourceCurrentLimitGrowth RateMonths to Limit
CPU45%80%15%/mo5.2 months
Memory60%85%12%/mo2.1 months ← FIRST BOTTLENECK
Storage30%90%8%/mo7.5 months
Network20%80%20%/mo3.0 months

Step 5: Sizing Recommendations

For each bottleneck, provide concrete recommendations:

Kubernetes / containers:

  • Adjust resource requests and limits
  • Increase max replicas in HPA
  • Evaluate cluster node count and instance types
  • Consider vertical pod autoscaling for memory-bound services

Databases:

  • Read replica count for read-heavy scaling
  • Connection pool sizing
  • Instance class upgrade timeline
  • Sharding consideration for write-heavy growth

Caching:

  • Cache hit rate improvement (reduce origin load)
  • Cache cluster sizing

Step 6: Capacity Timeline

Produce a month-by-month action plan:

Month 1: Increase memory limits for payment-api (bottleneck at current rate)
Month 2: Add 5 nodes to prod EKS cluster (before projected limit)
Month 3: Upgrade RDS instance class (replication lag increasing)
Month 4: Add read replica for user-service DB
Month 6: Evaluate sharding strategy for orders table (projected 500GB)

Step 7: Cost Projection

Estimate cost of recommended capacity changes:

ChangeMonthly Cost ImpactOne-Time Cost
5 additional EKS nodes (m5.xlarge)+$1,200/mo—
RDS instance upgrade (db.r6g.2xlarge)+$800/mo—
Additional read replica+$600/mo—
Total+$2,600/mo—

Guidelines

  • Always include a "do nothing" scenario to show the cost of inaction (incident, degradation).
  • Build in a 30% headroom buffer beyond projected peak — forecasts are always wrong.
  • Autoscaling is not infinite: always check max replica counts and node pool limits.
  • Persona (sre-manager): include team bandwidth to execute the capacity plan and whether hiring is needed to manage increased infrastructure complexity.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.