/system-design-skills:back-of-the-envelopefrom system-design-skills
Performs back-of-the-envelope capacity estimates: QPS, storage, bandwidth, servers, and peak load. Use when design decisions depend on scale or when vague traffic phrases need concrete numbers.
Ships in system-design-skills. 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.
Turn vague scale ("high traffic", "huge data") into a few concrete numbers that decide the design. BOTECs are quick, approximate calculations — feasibility checks, not precision. The point is the process and directional correctness: they tell you when a single database won't do, when caching is forced, when a write spike needs a queue.
A design for 1k QPS and one for 1M QPS are different systems. 10 GB fits in RAM; 10 TB needs distributed storage. Estimate first, choose second.
At step 2 of any design (right after requirements), and any time a choice depends on scale: sizing the read vs write path, deciding sharding vs a single node, justifying a cache, or sanity-checking a proposed component against load.
Don't chase precision or model every microservice — that's the opposite of the technique. Don't estimate what won't change a decision (YAGNI). Round aggressively: "99,987 / 9.1" is "100,000 / 10". Always label units and write assumptions down.
Estimates are only as good as their inputs. Pin down:
Work each as a single multiply/divide chain. Full worked numbers and the CPU-time
derivation are in references/estimation-recipes.md.
DAU × actions_per_user_per_day ÷ 86,400. Peak QPS ≈ 2 × QPS
(state your peak factor).writes_per_day × avg_object_size. Total =
storage/day × retention_days (watch base-10 vs base-2; storage is sold base-10).QPS × payload_size (separate read and write; egress usually
dominates and costs money).peak_QPS ÷ per_server_QPS. Use the per-server rates
below as the divisor.concurrent_users × per_connection_cost;
check the working set fits RAM (else it's an IO-bound, disk-backed design).These are the reference points to know, so you can estimate without lookups.
Full tables (latency, server specs, request types, powers of two, nines) live in
references/numbers-to-remember.md — load it when you need a specific figure.
The two that drive most decisions:
| What | Rule of thumb |
|---|---|
| Single SQL/RDBMS node | ~1,000 QPS |
| Key-value store node | ~10,000 QPS |
| Cache server (Redis/Memcached) | ~100,000–1M QPS |
| One modern CPU core | ~1,000 simple requests/s → a 64-core box ≈ 64k req/s |
| Read 1 MB: memory vs SSD vs disk | ~μs vs tens–hundreds of μs vs ms (memory ≫ SSD ≫ disk) |
Think in orders of magnitude, not exact values. CPU-bound work is ~1×, memory-bound ~10×, IO-bound ~100× the time. That ratio, not the decimals, is what shifts an architecture.
Distilled from the recipes and the ways estimates mislead.
Do
Don't
Estimation is usually a table, not a picture — keep the numbers and assumptions
inline. When a derived number forces a structural change (e.g. "300k QPS > single
DB → shard / add replicas"), that belongs in the architecture diagram itself; use
the architecture-diagram skill when drawing the design those numbers justify.
requirements-scoping — depends on it for the inputs (DAU, action rates, ratios, SLAs) this skill turns into numbers.data-storage — feeds into it: the storage totals and shard counts computed here drive its SQL/NoSQL and partitioning choices.caching — feeds into it: a high read ratio or hot working set sized here is the case for a cache.scaling-evolution — feeds into it: when an estimate crosses a per-node ceiling, that ceiling is the next bottleneck to plan around.system-design — owned-concept lives here for the reasoning loop; this is the orchestrator that calls this skill at step 2.references/numbers-to-remember.md — the cheat sheet: latency table, typical server spec, per-server QPS rates, CPU/memory/IO-bound request types, powers of two, availability nines. Read when you need a specific figure.references/estimation-recipes.md — worked examples (Twitter-scale QPS + storage, the 64-core→64k req/s CPU-time derivation, bandwidth and server-count sizing). Read to see a full chain end to end.For a deterministic check of a sizing chain (the one place exact arithmetic earns its keep), run the calculator rather than doing it by hand:
scripts/botec.py — python3 scripts/botec.py --dau 150e6 --actions 2 --peak 2 --obj-bytes 1e6 --media-frac 0.10 --retention-days 1825 --server-qps 1000 --json → QPS, peak, storage/day & total, bandwidth, server count. Per-server-QPS defaults mirror the rules of thumb above (override with --server-qps).scripts/test_botec.py — asserts the calculator matches expected_outputs/twitter_scale.json (the worked Twitter example), so the prose recipe and the math can't drift.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/api-designThis skill should be used when the user needs to "design the API", do "endpoint design", pin down a "request/response shape", choose a "pagination" strategy (cursor vs offset), add an "idempotency key" to a write, plan "API versioning", an "error contract", or pick between "REST vs gRPC vs GraphQL" or "WebSocket vs polling". Use it whenever a design has reached the interface — the concrete request, response, primary access path, and how clients page, retry, and version — even if the user only said "the boxes talk to each other"./architecture-diagramThis skill should be used when a system design needs a diagram — "draw the architecture", "diagram this system", "show the components", "make an architecture/infrastructure/topology diagram", or visualizing boxes-and-arrows, data flow, regions, or failure paths for a design. It generates a self-contained dark-theme HTML + SVG diagram (with PNG/PDF export). Use it whenever the `system-design` orchestrator or a building block reaches the "draw it" step, even if the user doesn't say "diagram"./blob-storeThis skill should be used when the user wants a "blob store" or "object storage", names "S3" or an S3-compatible store, needs to "store images / video / files", asks about "multipart upload" or "resumable upload", "signed / presigned URLs", "media storage", "unstructured data at scale", object "versioning", storage "tiering" (hot/cold/archive), or "erasure coding" vs replication for durability. Use it whenever a design must hold large unstructured objects (photos, video, backups, logs, ML datasets) and serve them cheaply and durably, even if the user just says "where do we put the files".npx claudepluginhub proyecto26/system-design-skills --plugin system-design-skillsOther plugins' skills for the same job