system-design-case-catalog
БесплатноБез исполняемых скриптовНе проверенAnswer classic system design problems as constraint-to-solution sketches and coach interview practice: URL shortener, rate limiter, news feed, chat…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Case Catalog
Priority: P2 (MEDIUM)
Each classic problem has one defining constraint. Name it first; the rest of the design follows.
Defining Constraints
| Problem | Defining constraint | Decisions that follow |
|---|---|---|
| URL shortener | Read-heavy by ~100:1, key must be short and unique | Base62 of a distributed counter, cache-first read path, 301 vs 302 choice |
| Rate limiter | Decision must be cheap, shared, and correct under concurrency | Token bucket in a shared counter, fail-open or fail-closed rule, 429 plus Retry-After |
| News feed | Fan-out cost versus read latency, with celebrity skew | Push for normal accounts, pull for celebrities, hybrid merge at read |
| Chat | Delivery guarantees and presence at persistent-connection scale | WebSocket gateways, per-conversation ordering, offline queue, read receipts |
| Notification | Multi-channel delivery with retries and dedupe | Queue per channel, idempotency key, user preference and quiet hours |
| Autocomplete | Sub-100ms prefix lookup over a huge term space | Trie or prefix index in memory, precomputed top-k per prefix, async rebuild |
| Web crawler | Politeness and dedupe at scale, not raw fetching | Frontier queue per host, robots cache, URL fingerprint dedupe, freshness policy |
| Unique id | Ordered, unique, generated without a central lock | Snowflake-style timestamp plus node plus sequence; clock-skew handling |
| Video streaming | Bitrate ladder and CDN economics, not the upload | Transcode pipeline per rendition, adaptive manifests (HLS/DASH), edge cache hit ratio as the cost lever |
| Ride hailing | Geo matching under moving supply and demand | Geohash or S2 cells, driver location stream with TTL, matching window and surge as a pricing signal |
| Payment ledger | One ledger effect per business operation despite retries and partial failure | Stable business-operation identity, double-entry ledger, and reconciliation; see the idempotency contract |
Coaching Mode
- Mock rounds, the clock, the rubric, and the debrief live in
system-design-interview-coaching; this catalog is its problem bank. - Give the model answer only after the candidate commits to an approach; the defining constraint above is the follow-up question when they stall.
- For production practice, lazy-load production case packs. They are synthetic fixtures unless a named primary source says otherwise; never present their numbers or timelines as deployed facts.
Production Case Routing
- Choose one pack only after stating the profile, workload, SLO, team, budget, and invariant. Recalculate all numbers for the user's system.
- Carry the pack's selected views through the HLD-to-LLD trace; use only the view that answers the current question and do not create a second diagramming lane.
Reuse Rules
- Map a new problem to the nearest catalog shape, then re-derive the numbers. The shape transfers, the sizing never does.
- State where the analogy breaks before borrowing the design.
- A catalog answer is a starting hypothesis, not a substitute for intake and estimation.
Anti-Patterns
- No pattern-matching without numbers: a known shape still needs this system's QPS and data volume.
- No interview answer as a build plan: production adds migration, cost, compliance, and team constraints.
- No full solution dump in coaching mode: the value is in the questions asked, not the answer given.
References
- Common Designs - per-problem sketch with constraints, components, and trade-offs
Установить system-design-case-catalog в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл system-design-case-catalog?
Answer classic system design problems as constraint-to-solution sketches and coach interview practice: URL shortener, rate limiter, news feed, chat, notification, autocomplete, crawler, unique id. Use for interview practice or naming the closest known shape for a new problem.
Как установить скилл system-design-case-catalog?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл system-design-case-catalog запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic