capacity-planning
Skill4 starsChanged 4 months agoMITView on GitHub
Decides how much infrastructure a system needs — headroom for growth, scaling policy, and the cost of both. Use this whenever the user asks how much capacity is needed, mentions autoscaling or right-sizing, is planning for a traffic event or seasonal peak, or is trying to cut infrastructure cost without breaking reliability. For measuring where the system breaks in the first place, use load-testing.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- ini8labs/jev-mcp-routertheir own version, first seen Oct 4, 2026
- ricmmartins/azure-sre-agent-skillstheir own version, first seen Jul 29, 2026
- Bappoz/My-Claude-Skillstheir own version, first seen Jul 15, 2026
- janellecipriano/pm-skillstheir own version, first seen Jun 23, 2026
- kienbui1995/magic-powerstheir own version, first seen Apr 10, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- ricmmartins/azure-sre-agent-skills★ 70same name
- ini8labs/jev-mcp-router★ 2same name
- Bappoz/My-Claude-Skills★ 1same name
- janellecipriano/pm-skills★ 1same name
- kienbui1995/magic-powers★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-deploymentSkill
- agent-designSkill
- agent-evaluationSkill
- agent-hardeningSkill
- agent-implementationSkill
- agent-observabilitySkill
- agent-scopingSkill
- api-designSkill
- code-templatingSkill
- dependency-upgradeSkill
- error-handlingSkill
- feature-implementationSkill
- project-scaffoldingSkill
- refactoringSkill
- data-analysisSkill
- data-migrationSkill
- data-modelingSkill
- sql-queriesSkill
- ci-pipelinesSkill
- containerizationSkill
- deployment-strategiesSkill
- infrastructure-as-codeSkill
- debuggingSkill
- issue-investigationSkill
- issue-triageSkill
- log-analysisSkill
- network-troubleshootingSkill
- performance-profilingSkill
- api-documentationSkill
- commit-messagesSkill
- diagrammingSkill
- markdown-docsSkill
- plain-languageSkill
- pr-descriptionsSkill
- release-notesSkill
- browser-testingSkill
- integration-testingSkill
- load-testingSkill
- test-dataSkill
- test-driven-developmentSkill
- unit-testingSkill
- deep-researchSkill
- feed-digestSkill
- summarizationSkill
- accessibility-reviewSkill
- code-analysisSkill
- code-lintingSkill
- code-reviewSkill
- auth-designSkill
- dependency-auditSkill
- secrets-managementSkill
- security-analysisSkill
- threat-modelingSkill
- disaster-recoverySkill
- incident-responseSkill
- monitoring-setupSkill
- root-cause-analysisSkill
- runbooksSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
Can you lose a zone?: If capacity must survive one failure domain going away, that is a floor on redundancy, not a nice-to-have
- Distinctive: line 63
Check each in turn: connection pool size, database connections, thread pool, file descriptors, memory per instance, disk IOPS, network …
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
Capacity planning
Capacity planning turns a measured ceiling into a decision about money and risk. It starts where
load-testing finishes: that tells you where the system breaks; this decides how far from that
point you choose to run, and what it costs.
Two symmetrical failures. Under-provisioned and you fail during the event you knew was coming. Over-provisioned and you pay for idle capacity indefinitely, which is invisible and therefore never fixed.
1. Know your current ceiling and your current load
You cannot plan without both:
- Ceiling: the point where latency degrades, from a load test. Not the point where it crashes, which is well past useful
- Current peak: actual traffic at its highest, not the average. Averages hide the peak that matters
- Headroom: the ratio between them. This is the number the whole exercise is about
Measure peak at a fine granularity. Hourly averages smooth away the ten-minute spike that actually saturates you.
Done when: you can state current headroom as a multiple.
2. Choose headroom from failure cost and lead time
There is no universal right answer. It depends on:
- How fast can you add capacity? Seconds for containers, minutes for VMs, weeks for hardware or a quota increase. Lead time is the dominant factor — if scaling takes 20 minutes, you need enough headroom to survive 20 minutes of growth
- How bad is failing? A checkout path and an internal dashboard warrant different margins
- How spiky is traffic? Smooth diurnal load needs less than an unpredictable spike
- Can you lose a zone? If capacity must survive one failure domain going away, that is a floor on redundancy, not a nice-to-have
Done when: the target headroom has a stated reason.
3. Project growth from data, then add the known events
- Organic growth: extrapolate from real history, not a plan. Look at 6–12 months
- Known events: a launch, a campaign, a seasonal peak, a partner integration. These are step changes, not curve points, and they are what catch people out
- Compounding: growth in users multiplied by growth in usage per user. Both rising is the common case and it compounds faster than either projection suggests
Project to your lead time plus the review interval, not to next year. Planning further out than you can act is a forecasting exercise, not capacity planning.
Done when: the projection covers the next planning horizon with events marked.
4. Find the real constraint
The bottleneck is rarely CPU, though CPU is what dashboards show first.
Check each in turn: connection pool size, database connections, thread pool, file descriptors, memory per instance, disk IOPS, network bandwidth, and any third-party rate limit.
Adding application instances does not help when the constraint is the database, and it often makes things worse by increasing connection pressure. This is the single most common capacity mistake — scaling the tier that is easy to scale rather than the one that is saturated.
Done when: you know which resource saturates first and have planned for that one.
5. Configure autoscaling for reality
Autoscaling is not a substitute for headroom — it has lag, and the lag is where you fail.
- Scale on the constrained resource, not CPU by default
- Set a floor that survives your fastest realistic spike without scaling
- Scale up fast, down slow. Aggressive scale-down causes thrash and cold-start storms
- Know the cold start cost: an instance that takes 90 seconds to serve traffic is 90 seconds of degradation
- Cap the maximum, so a runaway loop or attack cannot autoscale into a large bill
- Check downstream can take it. Scaling to 50 instances against a database that accepts 100 connections total is an outage you caused
Done when: the floor covers the spike and the ceiling caps the spend.
6. Treat cost as a first-class output
Capacity decisions are spending decisions, and stating the number makes the trade-off real.
- Cost per unit of work — per request, per tenant, per job — is more useful than total spend
- Identify the idle: instances at 5% utilisation, over-provisioned memory, storage nobody reads
- Reserved or committed pricing for the stable baseline, on-demand for the peak
- Right-size from measured usage, not from the request values someone guessed at once
Done when: the plan states both the capacity and what it costs.
Report
Give current headroom, projected headroom at the horizon, the constraining resource, the scaling policy, and the cost. Note the assumptions in the growth projection — those are what will be wrong, and naming them lets someone else check your arithmetic.
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
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.

