A system design knowledge base and interview prep tool, built for Claude Code.
You give it a system design problem. It produces a structured solution (requirements, APIs, schemas, deep dives) and two architecture diagrams you can open in Obsidian or Excalidraw: a Base design that just works, and a Deep design that scales.
BRAIN.md: a self-contained knowledge base of system design concepts (CAP theorem, caching, sharding, consistent hashing, fan-out, operational transformation, rate-limiting algorithms, bloom filters, and more), compiled from the source notes.problems/: six solved problems, each with a full written solution plus Base and Deep architecture diagrams. Every problem folder splits its diagrams intoCanvas/(Obsidian Canvas) andExcalidraw/.sources/: detailed breakdowns distilled from system design interview walkthroughs, the raw material the brain is compiled from.canvas_to_excalidraw.py: converts an Obsidian.canvasinto an.excalidraw.md.
| Problem | The interesting part |
|---|---|
| Ticketmaster | Booking consistency, virtual waiting queue, distributed locks |
| Uber | Geospatial matching, real-time location, surge |
| Twitter Feed | Fan-out on write vs read, the celebrity problem |
| URL Shortener | Key generation, read-heavy caching, redirects |
| WebSocket routing, offline delivery, presence | |
| Google Docs | Operational transformation, real-time collaboration |
Each problem keeps the same shape: Base is the naive "it works but does not scale" design, Deep adds the optimizations (caching, queues, sharding, distributed locks, real-time channels) with a summary node showing exactly what changed.
Talk to it like a study partner. A few to start:
/system-design solve Distributed Message Queue
/system-design solve Top K Leaderboard on a 1B-event stream
/system-design explain how CRDTs differ from operational transformation
/system-design explain when to fan out on write vs on read
/system-design review
solve writes the solution and diagrams to disk. explain and review answer from the brain. See the full breakdown below.
Prerequisites: Claude Code. Obsidian is optional, only needed to view the diagrams.
1. Clone and open
git clone https://github.com/Pawel-Kica/system-design-expert
cd system-design-expertOpen Claude Code in the folder. The /system-design skill lives in .claude/skills/ and works right away. No install step.
2. See what it knows
/system-design review
Prints the knowledge base by category and flags the thin spots.
3. Solve your first problem
/system-design solve URL Shortener
Writes a full solution to problems/URL Shortener/ plus two diagrams: Canvas/URL Shortener Base.canvas (naive) and Canvas/URL Shortener Deep.canvas (scaled). Matching .excalidraw.md files land in Excalidraw/.
4. Open the diagrams
Open the repo as an Obsidian vault, then open any .canvas file to see the architecture. Prefer Excalidraw? Open the .excalidraw.md files with the Excalidraw plugin.
5. Grow it
Drop a transcript or article into sources/, then /system-design update to fold it into the brain. Ask it anything with /system-design explain <concept>.
For the same thing in prose, see SETUP.md.
/system-design solve Chat System
Generates a full solution (requirements, core entities, APIs, high-level design, deep dives) and two architecture canvases (Base and Deep), saved under problems/<Name>/.
/system-design explain consistent hashing
Explains the concept from the brain. If the brain is thin on it, pulls from the source notes.
/system-design review
A structured overview of everything in the brain by category, with thin areas flagged and suggestions for what to study next.
/system-design update
Regenerates BRAIN.md from everything in sources/ and problems/. Run it after adding new source material.
The .canvas files open natively in Obsidian. Open this repo as a vault to browse the architecture diagrams, follow the [[wikilinks]] between concepts, problems, and sources, and use the knowledge base as a second brain. The .excalidraw.md files open with the Excalidraw plugin if you prefer that view.
Drop a note, transcript, or article into sources/, then run /system-design update to fold it into the brain.
The methodology (requirements, core entities, APIs, high-level design, deep dives, and the Base vs Deep split) follows HelloInterview. The source notes are distilled from their excellent "Design X w/ an Ex-Meta Staff Engineer" YouTube series. Go watch the originals.
MIT
