system-design
Skill1 starsChanged 5 months agoMITView on GitHub
Design de sistemas em escala: estimativas de capacidade, sharding, replicação, cache, filas, consistência, idempotência e trade-offs de disponibilidade. Use quando o usuário mencionar: "design de sistema", "como escalar", "system design", "projetar API", "modelar dados em escala", "cache", "fila", "consistência", "sharding", "milhões de usuários", "entrevista de system design".
35 other projects use a version of this.
Adopted by
Most recently taken up by
- yahyabedirhan/skillstheir own version, first seen Oct 1, 2026
- codeMaestro78/system_design_skilltheir own version, first seen Oct 1, 2026
- kleosr/bridletheir own version, first seen Sep 29, 2026
- mike22890/opencode-skills-cntheir own version, first seen Sep 13, 2026
- alizafarbati/opencode-agents-mcptheir own version, first seen Sep 8, 2026
- Cool-Coder174/engineering-skillstheir own version, first seen Sep 8, 2026
Used with
Projects with it also use web-design-guidelines, git-workflow and 7 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.
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 3 projects that use this
Microsoft AzureSkillgit-workflow
Squad branching model: dev-first workflow with insiders preview channel
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 5 projects that use this
CloudflareSkillsecurity-audit
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
Also in 3 projects that use this
OpenAISkillverification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Also in 3 projects that use this
SentrySkillsecurity-review
Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.
Also in 3 projects that use this
Other versions35 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 35
- anthropics/knowledge-work-plugins★ 26ksame name
- wondelai/skills★ 2.3ksame name
- ninehills/skills★ 280same name
- NoobyGains/godmode★ 107same name
- proyecto26/system-design-skills★ 85same name
- qodex-ai/ai-agent-skills★ 45same name
- ftvision/system-design-skill★ 37same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- pinchen147/system-design-skill★ 24same name
- s-hiraoku/synapse-a2a★ 16same name
25 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 repository70 other files it gives its agents.
- agent-creationSkill
- handoffSkill
- task-distributorSkill
- task-plannerSkill
- accessibilitySkill
- airbnb-designSkill
- airtable-designSkill
- atlassian-designSkill
- carbon-designSkill
- cloudscape-designSkill
- coinbase-designSkill
- discord-designSkill
- duolingo-designSkill
- figma-designSkill
- fluent-designSkill
- linear-designSkill
- material-designSkill
- meta-designSkill
- netflix-designSkill
- notion-designSkill
- nubank-designSkill
- one-ui-designSkill
- pinterest-designSkill
- polaris-designSkill
- premium-web-designSkill
- primer-designSkill
- reddit-designSkill
- revolut-designSkill
- robinhood-designSkill
- salesforce-lightning-designSkill
- slack-designSkill
- spectrum-designSkill
- spotify-designSkill
- stripe-designSkill
- tiktok-designSkill
- twitch-designSkill
- uber-base-designSkill
- vercel-geist-designSkill
- visionos-designSkill
- whatsapp-designSkill
- economicsSkill
- legal-basicsSkill
- negotiationSkill
- politicalSkill
- api-designSkill
- architectureSkill
- caching-strategiesSkill
- ci-cdSkill
- database-designSkill
- event-drivenSkill
- observabilitySkill
- payment-systemsSkill
- performanceSkill
- qaSkill
- refactoringSkill
- securitySkill
- testingSkill
- clone-websiteSkill
- graphifySkill
- remotionSkill
- The first 60 shown.
The file
Files
System Design
Você atua como engenheiro de sistemas distribuídos. Objetivo: projetar sistemas que escalam e não perdem dados, começando por números (capacidade) e escolhendo mecanismos por trade-off, não por moda.
Método (sempre nesta ordem)
- Requisitos — funcionais (o que faz) + não-funcionais (QPS, latência p99, disponibilidade, tamanho de dados, consistência).
- Estimativa de capacidade — back-of-envelope: QPS de leitura/escrita, storage/dia, banda, memória de cache. Números guiam tudo.
- API + modelo de dados — contratos e entidades primeiro.
- Diagrama de alto nível — cliente → LB → serviços → dados.
- Escalar cada gargalo — cache, réplicas, sharding, fila — justificando.
- Tratar falhas — o que quebra e como o sistema degrada.
Back-of-envelope (decore as ordens de grandeza)
1 dia ≈ 86.400 s ≈ 10^5 s
1M req/dia ≈ ~12 req/s | 1B req/dia ≈ ~12.000 req/s
Leitura:escrita típico ≈ 100:1 (rede social) — dimensiona cache/réplica
Latências (Jeff Dean): mem 100ns · SSD 16µs · rede DC 500µs · disco 10ms · rede EUA↔EU 150msBlocos de construção
| Bloco | Resolve | Cuidado |
| Cache (Redis/CDN) | Leitura repetida, latência | Invalidação, stampede, staleness |
| Read replica | Escala de leitura | Lag de replicação (consistência eventual) |
| Sharding | Escala de escrita/storage | Hot shard, rebalanceamento, joins cross-shard |
| Fila (Kafka/SQS) | Desacoplar, picos, async | Ordem, entrega ≥1 → idempotência obrigatória |
| Load balancer | Distribuir, HA | Health checks, sticky sessions |
| Índice/Busca (ES) | Query full-text/ad-hoc | Sincronizar com fonte de verdade |
Consistência — escolha consciente
- CAP na prática: em partição, escolha C (rejeita) ou A (responde possivelmente stale). Rede vai particionar.
- Forte onde erro custa dinheiro/segurança (saldo, estoque, pagamento → ver [[payment-systems]]).
- Eventual onde stale por segundos é aceitável (feed, contadores, cache).
- Idempotência é o que torna "entrega pelo menos uma vez" seguro. Toda operação de escrita via fila/retry precisa de chave idempotente.
Padrões recorrentes
- CQRS — separar caminho de escrita (normalizado) do de leitura (desnormalizado/materializado).
- Outbox — publicar evento e gravar no DB atomicamente (evita perder mensagem).
- Rate limiting — token bucket na borda.
- Circuit breaker + backoff — falha de dependência não vira cascata.
- Bulkhead / timeout — isolar recursos para conter falha.
Fluxo de entrevista/spec (checklist rápido)
Requisitos → capacidade → API → dados → alto nível → gargalos → falhas → trade-offs finais.
Recursos externos
| Recurso | O que pegar |
| System Design Primer (GitHub) | Referência canônica: caches, sharding, CAP, exemplos completos. |
| ByteByteGo | Diagramas e estudos de caso de sistemas reais. |
| Designing Data-Intensive Applications | A bíblia de consistência, replicação, partição, streams. |
| Latency Numbers Every Programmer Should Know | Tabela de latências para estimativas. |
| AWS Builders' Library | Padrões de produção (timeouts, retries, jitter). |
| High Scalability | Arquiteturas reais de grandes produtos. |
Do / Don't
| Do | Don't |
| Começar por números de capacidade | Ir direto pra caixinhas |
| Escolher consistência por caso | "Forte em tudo" ou "eventual em tudo" |
| Idempotência em escrita async | Confiar em entrega exatamente-uma-vez |
| Justificar cada componente | Adicionar Kafka "porque sim" |
Checklist
- Requisitos funcionais + não-funcionais (QPS, p99, disponibilidade)
- Estimativa de capacidade feita
- API + modelo de dados definidos
- Cada mecanismo (cache/shard/fila) justificado por gargalo real
- Consistência escolhida por caso, com idempotência onde há retry
- Modos de falha e degradação descritos
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.

