system-design
Skill4 starsChanged 9 months agoMITView on GitHub
Use this skill when designing large-scale systems, choosing between architectural patterns, evaluating trade-offs, designing for scalability and reliability, or preparing for system design interviews. Trigger on keywords: system design, architecture, scalability, microservices, monolith, distributed system, design trade-offs, high availability, load balancing, caching strategy, database selection.
74 other projects use a version of this.
Adopted by
Most recently taken up by
- Arupbiswas09/claude_skillstheir own version, first seen Nov 29, 2026
- VinodBobby/skillstheir own version, first seen Nov 29, 2026
- DeepSpaceCartel/skillstheir own version, first seen Nov 29, 2026
- ynz012x/cckit-pythontheir own version, first seen Nov 29, 2026
- butyavk/job-search-kittheir own version, first seen Nov 22, 2026
- rui66648/agents-dev-rulestheir own version, first seen Nov 22, 2026
Used with
Projects with it also use data-pipelines, caching and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jayavibhavnkSkilldata-pipelines
Build ETL/data pipelines - extract, transform, load with proper error handling and monitoring.
Also in 4 projects that use this
wpankSkillcaching
Caching strategies, invalidation, eviction policies, HTTP caching, distributed caching, and anti-patterns. Use when designing cache layers, choosing eviction policies, debugging stale data, or optimizing read-heavy workloads.
Also in 4 projects that use this
travisjneumanSkilldata-engineering
ETL/ELT pipelines, data warehousing (BigQuery, Snowflake, Redshift), stream processing (Kafka, Spark Streaming), orchestration (Airflow, Dagster, Prefect), dbt transformations, and data lake architecture. Use when building data pipelines, designing warehouse schemas, or implementing real-time data processing.
Also in 4 projects that use this
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 13 projects that use this
mmondoraSkillinfrastructure-as-code
Infrastructure as Code with Terraform and Pulumi. State management, modularity, drift detection, secrets handling. Use when provisioning cloud resources, writing Terraform/Pulumi modules, or managing infrastructure configuration.
Also in 3 projects that use this
mjunaidcaSkillkubernetes
Production-grade Kubernetes manifests and debugging for containerized applications. This skill should be used when users ask to deploy to Kubernetes, create K8s manifests, containerize for K8s, set up Deployments/Services/Jobs/StatefulSets/CronJobs, create namespaces with resource quotas, set up multi-team isolation, configure ResourceQuota/ LimitRange, secure with RBAC (ServiceAccount, Role, RoleBinding), configure init containers (model download, db wait, migrations), set up sidecars (logging, metrics), or debug pods (CrashLoopBackOff, logs, exec, describe, events). Auto-detects from Dockerfile/code, generates hardened manifests with educational comments. CKAD-aligned.
Also in 4 projects that use this
Other versions74 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 74
- anthropics/knowledge-work-plugins★ 37ksame name
- wondelai/skills★ 2.8ksame name
- ninehills/skills★ 280same name
- kid-sid/claude-spellbook★ 190same name
- NoobyGains/godmode★ 140same name
- proyecto26/system-design-skills★ 118same name
- nimadorostkar/Claude-Skills-collection★ 41same name
- ftvision/system-design-skill★ 37same name
- pinchen147/system-design-skill★ 32same name
- tusharsrivastava/shark-skills★ 32same name
64 more not listed
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 repository37 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- ai-agent-designSkill
- ai-assisted-learningSkill
- ai-prompting-patternsSkill
- api-designSkill
- backend-devSkill
- career-growthSkill
- client-communicationSkill
- code-explanationSkill
- code-readingSkill
- code-reviewSkill
- cross-functional-collabSkill
- database-designSkill
- debugging-mindsetSkill
- devops-cicdSkill
- doc-creationSkill
- focus-productivitySkill
- frontend-designSkill
- git-workflowSkill
- incident-responseSkill
- internal-commsSkill
- interview-prepSkill
- mcp-builderSkill
- performance-reviewSkill
- problem-solvingSkill
- prompt-engineeringSkill
- research-synthesisSkill
- resume-portfolioSkill
- self-healing-mindsetSkill
- side-project-planningSkill
- sprint-planningSkill
- technical-communicationSkill
- technical-mentoringSkill
- tech-researchSkill
- testingSkill
- threat-modelingSkill
- web-artifacts-builderSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 57 edited versions we read keep these.
4
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 22
Before designing anything, answer:
- Distinctive: line 29
Read/Write ratio: Read-heavy? Write-heavy? Mixed?
- Distinctive: line 103
Rule: Start monolith, extract services when you feel the pain.
- Distinctive: line 140
Don't use your primary DB for full-text search
“Common” is measured: kept by at least 6 in 10 of the 57 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
System Design
Design Process (Always Follow This Order)
- Clarify requirements — functional AND non-functional
- Estimate scale — users, requests/sec, data volume, read/write ratio
- Define the API — what does the system expose?
- Design the data model — what data, how stored, how accessed?
- High-level architecture — major components and their relationships
- Deep dive — zoom into the hardest or most critical parts
- Identify bottlenecks — and how to address them
Requirements Clarification
Before designing anything, answer:
Functional: What does the system do? Scale: How many users? Requests/sec? Data volume? Growth rate? Availability: What's the acceptable downtime? (99.9% = 8.7h/yr, 99.99% = 52m/yr) Latency: What's the acceptable response time? (p99) Consistency: Strong vs eventual consistency? (CAP theorem) Read/Write ratio: Read-heavy? Write-heavy? Mixed? Geography: Single region? Global? Data sovereignty requirements?
Scalability Patterns
Horizontal vs Vertical Scaling
| Vertical | Horizontal | |
| Method | Bigger machine | More machines |
| Limit | Hardware ceiling | Theoretically unlimited |
| Cost | Expensive | More cost-efficient |
| Downtime | Required | Zero downtime possible |
| Complexity | Simple | Requires load balancing, distributed design |
Default: design for horizontal scaling from the start.
Load Balancing
- Round Robin — equal distribution, simple, doesn't account for load
- Least Connections — routes to server with fewest active connections
- Consistent Hashing — for distributed caches, minimizes redistribution on scaling
Caching Strategy
| Layer | Tool | What to Cache |
| CDN | Cloudflare, CloudFront | Static assets, public API responses |
| Application | Redis, Memcached | Session data, computed results, DB query results |
| Database | Query cache, materialized views | Expensive aggregations |
Cache Invalidation Strategies:
- TTL (Time-to-Live) — expire after N seconds. Simple, may serve stale data.
- Write-through — update cache on every write. Strong consistency, slower writes.
- Write-behind — async cache update after write. Fast writes, eventual consistency.
- Cache-aside — app manages cache explicitly. Most flexible.
Data Architecture
SQL vs NoSQL Decision
| Use SQL When | Use NoSQL When |
| Data is relational | Data is unstructured or variable schema |
| ACID transactions required | Horizontal scaling is priority |
| Complex queries and joins | High write throughput needed |
| Data integrity is critical | Eventual consistency is acceptable |
Database Sharding
Partition data across multiple databases:
- Horizontal sharding — split rows (e.g., users A-M on DB1, N-Z on DB2)
- Vertical sharding — split tables by feature (users DB, orders DB, payments DB)
- Hash-based — shard key hashed to determine partition
Read Replicas
- Primary handles writes
- Replicas handle reads
- Good for read-heavy workloads (social feeds, analytics)
- Trade-off: replication lag = eventual consistency
Architecture Patterns
Monolith vs Microservices
| Monolith | Microservices | |
| Complexity | Low (operational), High (code over time) | High (operational), Lower (per service) |
| Deployment | Simple, all-or-nothing | Complex, independent per service |
| Scaling | Scale everything together | Scale services independently |
| Team size | Small teams, early stage | Larger teams, mature product |
| Start with | ✓ Yes | Only when monolith pain is real |
Rule: Start monolith, extract services when you feel the pain. Premature microservices is a common mistake.
Event-Driven Architecture
Use when:
- Services need to be decoupled
- High throughput, async processing
- Audit trail / event sourcing needed
Tools: Kafka (high throughput), RabbitMQ (complex routing), AWS SQS (simple, managed)
CQRS (Command Query Responsibility Segregation)
Separate read and write models:
- Write model — optimized for consistency and transactions
- Read model — optimized for query performance (denormalized, pre-computed)
Good for: high read/write ratio disparity, complex domain logic
Common System Design Components
API Gateway
- Single entry point for all clients
- Handles auth, rate limiting, SSL termination, routing
- Tools: AWS API Gateway, Kong, Nginx
Message Queue
- Decouples producers from consumers
- Enables async processing, load leveling
- Provides buffer for traffic spikes
CDN (Content Delivery Network)
- Serve static assets from edge locations close to users
- Reduce latency, reduce origin server load
- Cache invalidation is the hard part
Search
- Don't use your primary DB for full-text search
- Elasticsearch / OpenSearch for complex text search
- Typesense for simpler, faster search
Non-Functional Requirements Cheatsheet
| Requirement | Pattern |
| High Availability | Redundancy, failover, multi-region |
| Low Latency | CDN, caching, read replicas, edge computing |
| High Throughput | Horizontal scaling, async processing, queues |
| Consistency | ACID transactions, consensus protocols (Raft, Paxos) |
| Durability | Replication, backups, write-ahead logs |
| Security | Auth, encryption at rest + transit, least privilege |
Trade-Off Framework
For every design decision, explicitly state the trade-off:
Decision: [what you chose]
Why: [what problem it solves]
Trade-off: [what you give up]
Alternative: [what you considered]
When to reconsider: [conditions that would change this decision]Back-of-Envelope Estimation
Useful numbers:
- 1M users × 10 req/day = ~120 requests/second
- 1KB × 1M requests/day = ~1GB/day of data
- SSD read: ~0.1ms | Network: ~1ms | HDD: ~10ms
- Single server handles ~10K-50K requests/sec (depends on complexity)
- RAM: 1 server ≈ 64-256GB | Typical process ≈ 100MB-1GB
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.

