system-design-interview

system-design-interview is a skill for Claude Code from swaaap-nil/system-design-skill. It costs 136 tokens per session (5,846 once invoked), scanned A, original, MIT.

A guide that turns an existing codebase into a Staff-level system design interview exercise and a code-grounded model answer.

In plain words
What is it for?
It helps produce interview briefs, shorter or deeper analyses, an interactive interview mode, and saved system-design documentation for the codebase.
Why use it?
It replaces generic interview questions with requirements, architecture, data flows, and trade-offs based on the repository’s actual routes, models, and infrastructure.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps produce interview briefs, shorter or deeper analyses, an interactive interview…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/swaaap-nil/system-design-skill/system-design-interview
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add swaaap-nil/system-design-skill --skill system-design-interview
Clone the repo
git clone --depth 1 https://github.com/swaaap-nil/system-design-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for system-design-interview

README.md
[![agentmods](https://agentmods.dev/badge/skills/swaaap-nil/system-design-skill/system-design-interview.svg)](https://agentmods.dev/skills/swaaap-nil/system-design-skill/system-design-interview)
Your own site
<a href="https://agentmods.dev/skills/swaaap-nil/system-design-skill/system-design-interview"><img src="https://agentmods.dev/badge/skills/swaaap-nil/system-design-skill/system-design-interview.svg" alt="Measured on agentmods" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,846 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00136 $0.05846
Opus 5 $0.00068 $0.02923
Sonnet 5 $0.00027 $0.01169
Haiku 4.5 $0.00014 $0.00585

Measured 6d ago against content hash 9286e9431971, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

system-design-interview scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/contribute.mjs, scripts/scan-secrets.mjs, scripts/verify-brief.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/system-design-interview/SKILL.md · 438 lines

How it starts

The opening of the file, as written. The whole thing — 438 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codebase → Staff-Level System Design Interview

Convert the repository in the working directory into a system design interview problem that a Staff/L6 candidate would be given, then answer it at that bar. The output is grounded in code that actually exists — not a generic template with the repo's name pasted in.

Modes

Read $ARGUMENTS. If empty, use brief.

Argument Behaviour
(empty) / brief Full 7-section interview brief. The default.
quick Same 7 sections, one-third the length. Drop the as-built subsection and delta table from section 5, and the access-pattern table from section 6. Keep the target-design diagram — it is the highest-value element.
deep <topic> Skip to section 7. Produce three bottlenecks on <topic> instead of two, each with the full failure math.
interview Socratic mode. Emit sections 1–4 only, then stop and ask the user to propose a high-level design. Critique their answer against references/rubric.md, then reveal sections 5–7. Do not reveal the answer early.
save [slug] Produce the brief, then write it to docs/system-design/<slug>.md in the repo. Full fidelity — real paths, real names. Stays local. See Phase 4.
contribute [slug] Produce a redacted brief safe to publish, write it to docs/system-design/<slug>.shared.md, then offer to open the PR with scripts/contribute.mjs. Follows references/publishing.md exactly. See Phase 4.
similar Recon only, then match this repo against the community library and report the closest problems. No brief. See Phase 5.
<path> Scope recon to that subdirectory. Useful in a monorepo.

Any mode can be combined with an effort tier — quick scan, thorough, interview standard. If no tier is given, run Phase 0 and ask.


Rules of engagement

These are not style preferences. Violating any of them makes the output worthless.

  1. Cite or don't claim. Every statement about what the code does carries a path/to/file.ext:42 reference. If you cannot cite it, you may not assert it.
  2. Tag every assumption. Scale, traffic, team size, SLAs and business context are not in the repo. Write them as [Assumed] with a one-clause justification. Never present an assumption as an observation.
  3. Name the crux. Every good interview problem has exactly one genuinely hard part. Find it and organise the whole brief around it. A brief where every section is equally weighted is a failed brief.
  4. Cut complexity ruthlessly. Do not add Kafka, Kubernetes, a service mesh or a CQRS layer unless a numbered requirement in section 4 forces it. Every box in the architecture diagram must trace to a requirement ID. Unjustified components are the most common failure of this skill.
  5. Take positions. "We could use Postgres or DynamoDB" is a junior answer. "Postgres, because the booking flow needs a multi-row transaction; revisit at 50k writes/sec" is the bar. See references/rubric.md.
  6. No filler. If the repo has no async work, say so and move on. Do not invent a queue to have something to talk about.
  7. Never open a secret. Do not read .env, key files, state files or credential stores — the deny-list is in references/recon.md and it is not negotiable. save writes full-fidelity output into the user's repository, so anything you read can end up committed. If you encounter a credential incidentally, record that it exists — "credentials hardcoded at config/settings.py:12" is legitimate findings material — and never reproduce the value.

Read the full file on GitHub · 438 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 438 lines · 136 tokens per session scan A 9286e9431971

Subscribe to this mod's changes

system-design-interview is a skill published in the GitHub repository swaaap-nil/system-design-skill (2 stars, last pushed 15d ago), licensed MIT. It adds 136 tokens to every session and 5,846 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.