system-design
Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.
Skill by wondelai
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/wondelai-system-design-2380b5
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend, devops, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
system-design- Description
- 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 concurrent users. Covers common system designs (TinyURL, feeds, chat) and back-of-the-envelope estimation. For data fundamentals, see ddia-systems. For resilience, see release-it.
- License
- MIT
- Metadata
- author: wondelai · version: 1.4.1
- Instructions
- 200 lines in SKILL.md · view on GitHub
Files (7)
- SKILL.md
- building-blocks.md · references/
- common-designs.md · references/
- database-scaling.md · references/
- estimation-numbers.md · references/
- four-step-process.md · references/
- reliability-operations.md · references/
SKILL.md (first lines)
# System Design Framework 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. ## Core Principle **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. ## Scoring **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. ## The System Design Framework Six areas for building reliable, scalable distributed systems: ### 1. The Four-Step Process **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:** - Step 1 (~5-10 min): clarifying questions, functional and non-functional requirements, agreed scale (DAU, QPS, storage) - Step 2 (~15-20 min): high-level diagram with APIs, services, data stores, data flow arrows - Step 3 (~15-20 min): design the 2-3 hardest or most critical components in detail - Step 4 (~5 min): tradeoffs, bottlenecks, future improvements - Never skip Step 1 — ambiguous scope wastes all downstream effort; get explicit agreement on assumptions **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](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. ### 2. Back-of-the-Envelope Estimation **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:** - Powers of two: 2^10 ≈ 1 thousand, 2^20 ≈ 1 million, 2^30 ≈ 1 billion, 2^40 ≈ 1 trillion - Latency: memory read ~100 ns, SSD read ~100 us, disk seek ~10 ms, same-datacenter round trip ~0.5 ms, cross-continent ~150 ms - Availability nines: 99.9% = 8.77 hours downtime/year; 99.99% = 52.6 minutes/year - QPS: DAU x actions-per-day / 86,400 seconds; peak is typically 2-5x average - Storage: records-per-day x record-size x retention - Round aggressively — the goal is order of magnitude, not precision **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](references/estimation-numbers.md) when sizing a system — full latency table, availability-nines table, and worked QPS/storage/bandwidth calculations. ### 3. Building Blocks **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:** - Load balancers: L4 (transport layer — fast, simple) vs L7 (application layer — content-aware routing) - Cache layers: client, CDN, web server, application (Redis/Memcached), database query cache - Cache strategies: cache-aside (app manages), read-through, write-through (synchronous), write-behind (asynchronous) - Message queues (Kafka, RabbitMQ, SQS): decouple producers from consumers, absorb spikes, enable async processing - Consistent hashing: distributes keys across nodes with minimal redistribution when nodes change **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](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. ### 4. Database Design and Scaling **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:** - Vertical scaling is simpler but has a ceiling; horizontal is harder but nearly unlimited - Replication: leader-follower (one writer, many readers) for read-heavy; multi-leader for multi-region writes - Sharding: hash-based (even distribution, hard range queries), range-based (easy ranges, hotspot risk), directory-based (flexible, extra lookup) - SQL for ACID transactions, joins, defined schema; NoSQL for flexible schema, horizontal scale, very high write throughput - Denormalization trades storage and write complexity for read speed — use when reads dominate and data changes rarely - Celebrity/hotspot problem: one hot shard needs secondary partitioning or a cache layer **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](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. ### 5. Common System Designs **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:** - URL shortener: base62 encoding, key-value store, 301 vs 302 redirect tradeoff (caching vs analytics)
From wondelai/skills, MIT.
More from wondelai/skills
- 0.618score
conversion-optimization
wondelai
Guided journey from a leaking conversion flow - landing page, signup, checkout, or in-app onboarding - to a measured, tested funnel.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
mom-test
wondelai
Talk to customers without leading them using Mom Test rules: discuss their life not your idea, ask about specifics in the past, and talk less.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
37signals-way
wondelai
Build lean, opinionated products using the 37signals philosophy from "Getting Real", "Rework", and "Shape Up".
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
blue-ocean-strategy
wondelai
Create uncontested market space using value innovation instead of competing head-to-head.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
clean-architecture
wondelai
Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to entities.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
clean-code
wondelai
Write readable, maintainable code through disciplined naming, small functions, and clean error handling.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
cold-start-problem
wondelai
Start and scale networked products using Andrew Chen's "The Cold Start Problem" framework for network effects.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
contagious
wondelai
Engineer word-of-mouth and virality using the STEPPS framework (Social Currency, Triggers, Emotion, Public, Practical Value, Stories).
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
continuous-discovery
wondelai
Build a weekly cadence of customer touchpoints using Opportunity Solution Trees, assumption mapping, and interview snapshots.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
create-app
wondelai
Guided journey from a raw app idea to a validated, cleanly architected first version that ships on a sustainable cadence.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
create-business
wondelai
Guided journey from raw idea to a validated, positioned, priced business with a chosen beachhead.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
architecture-optimization
wondelai
Guided journey from a working codebase grown slow and tangled to one measurably fast, cleanly bounded, and readable.
SkillBFreshness: B★ 2.5KClaude Code +9
Signals
- Stars
- 2,503
- Forks
- 250
- Open issues
- 6
- Last commit (this folder)
- Aug 9, 2026 (2 months ago)
- Last release
- Aug 29, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.4.1
- License
- MIT
- Repository
- github.com/wondelai/skills
- Website
- skills.wondel.ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.618score
system-design
wondelai
Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.323score
system-design
wondelai
Design scalable distributed systems using structured approaches for load balancing, caching, database scaling, and message queues.
SkillBFreshness: B★ 2.5KClaude Code +9
More from wondelai
- 0.618score
37signals-way
wondelai
Build lean, opinionated products using the 37signals philosophy from "Getting Real", "Rework", and "Shape Up".
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
blue-ocean-strategy
wondelai
Create uncontested market space using value innovation instead of competing head-to-head.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
mom-test
wondelai
Talk to customers without leading them using Mom Test rules: discuss their life not your idea, ask about specifics in the past, and talk less.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
architecture-optimization
wondelai
Guided journey from a working codebase grown slow and tangled to one measurably fast, cleanly bounded, and readable.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
conversion-optimization
wondelai
Guided journey from a leaking conversion flow - landing page, signup, checkout, or in-app onboarding - to a measured, tested funnel.
SkillBFreshness: B★ 2.5KClaude Code +9 - 0.618score
clean-architecture
wondelai
Structure software around the Dependency Rule: source code dependencies point inward from frameworks to use cases to entities.
SkillBFreshness: B★ 2.5KClaude Code +9
Cite this page
system-design skill. Agent Mart. https://agentmart.dev/skills/wondelai-system-design-2380b5 (last updated 2026-10-24)