System Design
ninehills/skills
Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.
Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.
$ npx skills add wondelai/skills --skill system-design -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install wondelai/skills system-design --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/wondelai/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/system-design .claude/skills/system-design && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "system-design" agent skill from https://github.com/wondelai/skills/tree/main/system-design into .claude/skills/system-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "system-design", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/wondelai/skills/tree/main/system-designType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add wondelai/skills --skill system-design -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install wondelai/skills system-design --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wondelai/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/system-design .agents/skills/system-design && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "system-design" agent skill from https://github.com/wondelai/skills/tree/main/system-design into .agents/skills/system-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "system-design", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wondelai/skills --skill system-design -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install wondelai/skills system-design --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wondelai/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/system-design .cursor/skills/system-design && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "system-design" agent skill from https://github.com/wondelai/skills/tree/main/system-design into .cursor/skills/system-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "system-design", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/wondelai/skills.git --path system-design--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add wondelai/skills --skill system-design -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install wondelai/skills system-design --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wondelai/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/system-design .gemini/skills/system-design && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "system-design" agent skill from https://github.com/wondelai/skills/tree/main/system-design into .gemini/skills/system-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "system-design", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install wondelai/skills system-designInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add wondelai/skills --skill system-design -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/wondelai/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/system-design .github/skills/system-design && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "system-design" agent skill from https://github.com/wondelai/skills/tree/main/system-design into .github/skills/system-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "system-design", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add wondelai/skills --skill system-design -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install wondelai/skills system-design --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/wondelai/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/system-design .opencode/skills/system-design && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "system-design" agent skill from https://github.com/wondelai/skills/tree/main/system-design into .opencode/skills/system-design/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "system-design", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
system-designDesign scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.
System Design is an agent skill from wondelai/skills. Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues. Use when the user mentions "system design", "scale this", "high availability", "rate limiter", "design a URL shortener", "design Twitter", "design Uber", "design a news feed", "system design interview", "capacity planning", or "distributed architecture". Also trigger when estimating infrastructure requirements, choosing between microservices and monoliths, or designing for millions of…
Its SKILL.md is about 4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/building-blocks.md`, `references/common-designs.md` and `references/database-scaling.md`).
It sits in Backend & APIs, covering Microservices, Software architecture and Cloud networking. It works with X (Twitter). The repository describes itself as: Wondel.ai Agent Skills — Business, Marketing, UX & Coding Frameworks from Bestselling Books. 50 skills + 12 guided journeys for Claude Code, Codex, Cursor & other agentskills.io… The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit c172996. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
short.lyAlso links to:
amazon.combytebytego.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
System Design loads about 4k tokens when it runs, and up to ~21k if it reads all its reference files. Until then it costs about 178 tokens; SKILL.md has 1,877 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from wondelai/skills at commit c172996, republished under its MIT licence (© wondelai). 1,877 words, ~4,001 tokens.
.claude/skills/system-design/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.A structured approach to designing large-scale distributed systems. Apply these principles when architecting new services, reviewing designs, estimating capacity, or preparing for system design discussions.
Start with requirements, not solutions. Jumping to architecture before understanding constraints produces over- or under-engineered systems. Scalable systems are assembled from well-understood building blocks (load balancers, caches, queues, databases, CDNs) — the skill lies in choosing the right blocks, sizing them with estimates, and owning the tradeoffs each choice introduces.
Goal: 10/10. Score a design by how many of the eight Quick Diagnostic rows it satisfies — score = round(passed / 8 × 10): 9-10 = all/nearly all rows pass — explicit requirements, real estimates, redundancy, a stated DB-scaling and caching strategy, async via queues, monitoring, and a deployment plan, with tradeoffs named; 5-6 = the design works but skips estimation, redundancy, or operations; <=3 = architecture proposed before requirements or estimates exist. Always state the current score, name the failing diagnostic rows, and give the specific fix for each.
Six areas for building reliable, scalable distributed systems:
Core concept: Every design follows four stages: (1) understand the problem and establish scope, (2) propose a high-level design and get buy-in, (3) dive deep into critical components, (4) wrap up with tradeoffs and future improvements.
Why it works: Without structure, designs either stay too abstract or get lost in premature detail. The four steps invest time proportionally — broad strokes first, depth where it matters.
Key insights:
Code applications:
| Context | Pattern | Example |
|---|---|---|
| New service kickoff | One-page design doc covering all four steps before coding | Requirements, API contract, data model, capacity estimate, then implementation |
| Architecture review | Walk reviewers through the steps sequentially | Scope, diagram, deep-dive on riskiest component, open questions |
| Incident postmortem | Trace the failure through the four-step lens | Which requirement was missed? Which block failed? What tradeoff bit us? |
See references/four-step-process.md when running a design end-to-end — per-stage time allocation, example clarifying questions, and tips for each of the four steps.
Core concept: Use powers of two, latency numbers, and simple arithmetic to estimate QPS, storage, bandwidth, and server count before committing to an architecture.
Why it works: Estimation prevents over-provisioning (wasted money) and under-provisioning (outages under load). A 2-minute calculation can save weeks of rework.
Key insights:
Code applications:
| Context | Pattern | Example |
|---|---|---|
| Capacity planning | Estimate QPS, multiply by growth factor | 100M DAU x 5 actions / 86400 = ~5,800 QPS avg, ~30K peak |
| Storage budgeting | Per-record size x volume x retention | 500M tweets/day x 300 bytes x 365 days = ~55 TB/year |
| SLA definition | Convert nines to allowed downtime | Four nines = ~52 minutes downtime per year |
See references/estimation-numbers.md when sizing a system — full latency table, availability-nines table, and worked QPS/storage/bandwidth calculations.
Core concept: Scalable systems are assembled from a standard toolkit: DNS, CDN, load balancers, reverse proxies, application servers, caches, message queues, and consistent hashing.
Why it works: Each block trades one cost for another (a cache trades freshness for read speed; a queue trades latency for decoupling), so introduce a block only once its specific bottleneck appears — adding all of them up front just multiplies failure modes.
Key insights:
Code applications:
| Context | Pattern | Example |
|---|---|---|
| Read-heavy workload | Cache-aside Redis in front of database | Cache user profiles with TTL; invalidate on write |
| Traffic spikes | Message queue between API and workers | Enqueue image-resize jobs; workers pull at their own pace |
| Global users | CDN for static assets | Serve JS/CSS/images from edge; origin serves only API |
| Uneven load | Consistent hashing for shard assignment | Adding a node moves only ~1/n keys |
See references/building-blocks.md when choosing components — how each of DNS, CDN, load balancers, caching strategies, message queues, and consistent hashing works and when to introduce it.
Core concept: Choose SQL vs NoSQL based on data shape and access patterns; scale vertically first, then horizontally (replication and sharding) when vertical limits are reached.
Why it works: The database is usually the first bottleneck. Understanding replication, sharding, and denormalization tradeoffs delays expensive re-architectures and makes growth deliberate.
Key insights:
Code applications:
| Context | Pattern | Example |
|---|---|---|
| Read-heavy API | Leader-follower with read replicas | Reads to replicas, writes to leader; accept slight lag |
| User data at scale | Hash-based sharding on user_id | hash(user_id) % num_shards; even, independent shards |
| Analytics dashboard | Denormalized materialized views | Pre-join and aggregate nightly; serve from materialized table |
See references/database-scaling.md when the database is the bottleneck — replication topologies, the three sharding strategies compared, denormalization tradeoffs, and a SQL-vs-NoSQL selection guide.
Core concept: Most systems are variations of a small set of well-known designs: URL shortener, rate limiter, notification system, news feed, chat, search autocomplete, web crawler, unique ID generator.
Why it works: A mental library of known designs lets you recognize which pattern a new problem resembles and adapt it, rather than inventing from scratch.
Key insights:
Code applications:
| Context | Pattern | Example |
|---|---|---|
| Short link service | Base62-encode auto-increment ID or hash | https://short.ly/a1B2c3 maps to a key-value row |
| API protection | Token bucket at gateway | 100 tokens/min per key; steady refill; reject with 429 |
| Social feed | Hybrid fanout | Precompute feeds for <10K-follower accounts; merge celebrity posts at read time |
See references/common-designs.md when a problem resembles a known design — full walkthroughs of URL shortener, rate limiter, news feed, chat, autocomplete, web crawler, and unique ID generator.
Core concept: A system is only as good as its ability to stay up, recover, and be observed. Health checks, monitoring, logging, and deployment strategies are first-class design concerns, not afterthoughts.
Why it works: Production systems fail in ways diagrams never predict. Operational readiness — metrics, alerts, rollback plans, redundancy — determines whether a failure is a blip or an outage.
Key insights:
Code applications:
| Context | Pattern | Example |
|---|---|---|
| Zero-downtime deploy | Blue-green with health check gates | Switch to green after checks pass; keep blue as instant rollback |
| Gradual rollout | Canary with metric comparison | 5% traffic to new version; compare errors and latency; promote or rollback |
| Data safety | Define RPO/RTO, implement accordingly | RPO 1 hour = hourly backups; RTO 5 min = automated failover |
See references/reliability-operations.md when hardening for production — health-check patterns, the observability pillars, deployment strategies, disaster-recovery (RPO/RTO), and autoscaling.
| Mistake | Why It Fails | Fix |
|---|---|---|
| Architecture before requirements | Solves the wrong problem, misses constraints | Spend the first 5-10 minutes on scope: features, scale, SLA |
| No estimation | Provisioning off by orders of magnitude | Estimate QPS, storage, bandwidth before choosing components |
| Single point of failure | One component takes down the system | Redundancy at every layer: multi-server, multi-AZ, multi-region |
| Premature sharding | Huge operational complexity before it's needed | Vertical first, read replicas, cache aggressively, shard last |
| Caching without invalidation | Stale data causes bugs and confusion | Define TTL; cache-aside with explicit invalidation on writes |
| Synchronous calls everywhere | One slow service cascades latency to all callers | Queues for non-latency-critical paths; timeouts on sync calls |
| Ignoring hotspots | One shard or key hammered, others idle | Detect hot keys; add secondary partitioning or local caches |
| No monitoring or alerting | Users find failures before you do | Instrument metrics, logs, and traces from day one |
| Question | If No | Action |
|---|---|---|
| Are functional and non-functional requirements listed? | Design rests on assumptions | Write down features, DAU, QPS, storage, latency and availability SLAs |
| Is there a QPS and storage estimate? | Capacity is a guess | DAU x actions / 86400 for QPS; records x size x retention for storage |
| Is every component redundant? | Single points of failure | Add replicas, failover, or multi-AZ per component |
| Is the database scaling strategy defined? | You hit a wall under growth | Vertical first, then read replicas, then sharding with a clear shard key |
| Is there a cache for read-heavy paths? | Database takes unnecessary load | Redis/Memcached cache-aside with defined TTL |
| Are async paths using queues? | Tight coupling, cascading failures | Decouple with Kafka/SQS for jobs, notifications, analytics |
| Is there a monitoring and alerting plan? | Blind to production failures | Define metrics, log aggregation, tracing, alert thresholds |
| Is the deployment strategy defined? | Risky all-at-once releases | Rolling, blue-green, or canary with automated rollback |
For the complete guides with detailed diagrams and walkthroughs:
Alex Xu is a software engineer who previously worked at Twitter, Apple, and Oracle, and the creator of ByteByteGo. His two-volume System Design Interview series, with over 500,000 copies sold, turned system design into a learnable, repeatable skill through structured thinking, estimation, and clear communication.
© wondelai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (references) in system-design of wondelai/skills.
Open the folder on GitHubat commit c172996
System Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| System Design this skillwondelai/skills | 2.4k | — | ~4k | Automated safety check: Pass | MIT | |
| System Designninehills/skills | 280 | — | ~4.7k | Automated safety check: Pass | MIT | |
| System Design Building BlocksHoangNguyen0403/agent-skills-standard | 571 | — | ~970 | Automated safety check: Pass | MIT | |
| LLM Gatewaysickn33/agentic-awesome-skills | 47k | 1 repos | ~2.1k | Automated safety check: Pass | MIT | |
| Cloudfrontaws/agent-toolkit-for-aws | 2.8k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| AWS Networkingaws/agent-toolkit-for-aws | 2.8k | — | ~2.9k | Automated safety check: Pass | Apache-2.0 |
ninehills/skills
Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.
HoangNguyen0403/agent-skills-standard
Select infrastructure components by the constraint each removes: load balancers, caches and invalidation, queues and pub/sub, CDN, API gateway, rate limiting, consistent hashing.
sickn33/agentic-awesome-skills
Deploy an API gateway for LLM traffic with load balancing, rate limiting, key management, semantic caching, fallback routing, and cost tracking.
aws/agent-toolkit-for-aws
Configures Amazon CloudFront content delivery across six workflows: when to use CloudFront and how it fits with AWS WAF, Shield, CloudFront Functions, Lambda@Edge, Route 53, and origins (creating a…
aws/agent-toolkit-for-aws
Routes AWS networking requests to the correct service skill for implementation.
tech-leads-club/agent-skills
Designs scalable NestJS modular monoliths with domain-driven design, Clean Architecture layers and optional CQRS, defining bounded contexts and strict module boundaries.
wondelai/skills
Navigate the technology adoption lifecycle from early adopters to mainstream market.
wondelai/skills
Apply foundational design principles: affordances, signifiers, constraints, feedback, and conceptual models.
wondelai/skills
Run a structured 5-day process to prototype, test, and validate product ideas with real users.
wondelai/skills
Design habit-forming product loops using the Hook Model (Trigger, Action, Variable Reward, Investment).
wondelai/skills
Diagnose and fix retention problems using behavior design (B=MAP).
wondelai/skills
Design products and pricing around validated willingness to pay, from Ramanujam & Tacke's "Monetizing Innovation".
Works with
Categories
Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues. System Design is an agent skill from wondelai/skills. Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.
System Design fits situations like: the user mentions system design; high availability; design a URL shortener; design a news feed.
Run `npx skills add wondelai/skills --skill system-design -a claude-code`. Or copy the skill folder (system-design in wondelai/skills) into .claude/skills/system-design in your project. Claude Code loads it when a task matches its description.
Run `npx skills add wondelai/skills --skill system-design -a codex`. Or copy the skill folder (system-design in wondelai/skills) into .agents/skills/system-design in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wondelai/skills --skill system-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/system-design, .gemini/skills/system-design, .github/skills/system-design and .opencode/skills/system-design in your project.
SKILL.md names no scripts, command-line tools or credentials: System Design is instructions for the agent only.
SKILL.md names 3 domains. In commands or code: short.ly; the agent is likely to contact it when it follows the instructions. As links in the text: amazon.com and bytebytego.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
System Design is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 4k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 17k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with System Design: System Design (ninehills/skills, 280 stars), System Design Building Blocks (HoangNguyen0403/agent-skills-standard, 571 stars), LLM Gateway (sickn33/agentic-awesome-skills, 47k stars) and Cloudfront (aws/agent-toolkit-for-aws, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
wondelai (a GitHub organization) maintains it in wondelai/skills, which has 2,362 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on September 10, 2026.
Source: wondelai/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.