/polymath-scalability:capacity-estimationfrom polymath-scalability
Do back-of-envelope sizing — QPS, bandwidth, storage, cache load, node count — via a script. Not a growth forecast (capacity-plan).
Ships in polymath-scalability. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Before arguing about architecture, size the problem. Order-of-magnitude numbers — with the assumptions written down — decide whether you need one box, a cache, a queue, or a shard.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-scalability:system-design).Not this when: you have utilization history and need a date to act — that is polymath-sre:capacity-plan (and demand-forecast for seasonality). This skill sizes a design; those skills project a running system.
Anything not provided is an assumption: label it [VERIFY] with the source of the guess. Never present a per-node throughput as fact without a benchmark or vendor number cited.
Write the assumptions as a table before computing: each input, its value, and where it came from (product forecast, existing metric, industry rule of thumb, guess). Guesses get a range, and you compute the low and high case.
Run the calculator — never multiply by hand. It applies one fixed set of formulas, so two runs on the same inputs agree:
python3 "${POLYMATH_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/skills/capacity-estimation/scripts/estimate.py" \
--dau 5000000 --actions-per-user-day 20 --read-ratio 0.9 --peak-factor 3 \
--read-bytes 5000 --write-bytes 2000 --retention-days 365 --replication 3 \
--cache-hit 0.8 --per-node-qps 2000 --target-util 0.6
Exit 2 means bad input; fix it rather than guessing a value. Run it once per scenario (low / expected / high).
Interpret in terms of components (the point of the exercise):
polymath-database:db-scaling-strategy). Use measured numbers for the engine, not folklore.polymath-performance:caching-tradeoffs).polymath-performance:http-edge-caching); fan-out multiplies it.polymath-database:data-retention-archiving); add indexes (often 30–100% on top of data) and backup copies, which the script does not include.Sanity-check against a known reference: compare to an existing system's real throughput, or cross-check with a second derivation (e.g. bytes/day ÷ 86,400 against the network figure). If the answer is off by 10×, an assumption is wrong — find it.
Name the dominant uncertainty — the one input whose range changes the architecture — and what measurement would resolve it (a load test: polymath-test-automation:load-test).
State the decisions the numbers support or kill, in one line each ("single Postgres primary is enough for writes; reads need a cache; storage needs tiering after year 2").
Capacity estimate: feed service
Assumptions
dau 5 M product forecast (launch plan) range 3–8 M
20 actions/user/d existing app analytics [VERIFY: web ≠ mobile]
read ratio 0.9 assumption — similar products
peak factor 3 assumption (no peak data yet)
read 5 KB / write 2 KB, retain 365 d, ×3 replication, cache hit 0.8 [VERIFY: needs measurement]
(calculator output)
Requests: 100.00M/day → avg 1,157 QPS → peak 3,472 QPS
reads 3,125/s · writes 347/s
Origin: 972 QPS reach the data tier (625 read misses + 347 writes)
Network: ingress 0.69 MB/s (5.6 Mbit/s) · egress 15.62 MB/s (125.0 Mbit/s)
Storage: 10.00M writes/day → 21.90 TB over 365 d at ×3 replication
Nodes: ceil(3,472 ÷ (2000 × 0.6)) + 1 (N+1) = 4
Reading
Writes (347/s) fit a single primary; reads need a cache (3,125 → 625/s at hit 0.8 — if hit ratio is 0.5 origin is 1,910 QPS).
Egress 125 Mbit/s is trivial for the fleet but argues for a CDN on media later.
Storage 21.9 TB incl. replication: needs a partitioned/tiered store by year 2; indexes and backups come on top [TBD: index overhead].
Dominant uncertainty: cache hit ratio (changes origin load 3×) → measure with a replay of production keys.
Decisions supported: primary + 2 replicas + cache; no sharding at this scale. Revisit if DAU > 8 M or actions/user > 40.
[VERIFY].polymath-sre:capacity-plan).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-scalability6 skills in this plugin
/async-workload-designDesign async and background processing — queue vs stream, worker sizing, idempotency, retries and DLQ, backpressure, priority lanes./multi-region-designDesign multi-region deployment — active-active vs standby, RPO/RTO, replication and conflicts, routing, failover. Not single-region HA./rate-limiting-designDesign rate limits and quotas — token bucket vs window, limit keys, distributed enforcement, 429 headers, fairness, rollout./scalability-reviewReview an architecture for scale bottlenecks — single writers, shared state, hot keys, fan-out — and rank what breaks first. Not new design./system-designDesign a scalable system end to end — SLOs, capacity, API and data model, components, scaling and failure modes, trade-offs.