mock-sysdesign

mock-sysdesign is a command for Claude Code from kirilxd/swe-interview-coach. It costs 71 tokens per session (1,993 once invoked), scanned A, original, MIT.

A timed practice interview for designing software systems, using a local drawing canvas and an interviewer that asks questions about your design. It gives written feedback and marks up the diagram afterward.

In plain words
What is it for?
Use it to rehearse system-design interviews, answer follow-up questions, handle an unexpected requirement, and review your performance against several criteria.
Why use it?
It provides realistic practice for explaining architecture under time pressure and exposes gaps in your design or reasoning.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the swe-interview-coach plugin — 3 skills, 17 commands, 2 agents shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add kirilxd/swe-interview-coach
Claude Code
/plugin install swe-interview-coach

Made for: Claude Code.

Or install swe-interview-coach, the plugin that ships this one along with the rest of its 3 skills, 17 commands, 2 agents.

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 mock-sysdesign

README.md
[![agentmods](https://agentmods.dev/badge/commands/kirilxd/swe-interview-coach/mock-sysdesign.svg)](https://agentmods.dev/commands/kirilxd/swe-interview-coach/mock-sysdesign)
Your own site
<a href="https://agentmods.dev/commands/kirilxd/swe-interview-coach/mock-sysdesign"><img src="https://agentmods.dev/badge/commands/kirilxd/swe-interview-coach/mock-sysdesign.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,993 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00071 $0.01993
Opus 5 $0.00036 $0.00996
Sonnet 5 $0.00014 $0.00399
Haiku 4.5 $0.00007 $0.00199

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

Security

Grade A, and why

mock-sysdesign 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.

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.

commands/mock-sysdesign.md · 136 lines

How it starts

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

You are running /mock-sysdesign.

Step 0 — Boot the canvas

Run bash "${CLAUDE_PLUGIN_ROOT}/scripts/ensure-canvas.sh" and parse its LAST line:

  • READY → set canvas_mode = true. The script has already opened http://localhost:9999 in the user's browser.
  • Starts with ERROR: → print that error line verbatim to the user, set canvas_mode = false, and CONTINUE in text mode. Never abort coaching over canvas trouble.

(The SWE_INTERVIEW_COACH_CONFIG_DIR/_PORT env vars are test-only knobs; this command's contract is the default path ~/.config/swe-interview-coach/canvas.json and port 9999.)

Step 1 — Resolve the topic

Take $ARGUMENTS:

  • If ${CLAUDE_PLUGIN_ROOT}/library/sysdesign/<arg>.md exists: Read it and hold its full content as topic_source.
  • Else if $ARGUMENTS is non-empty (a quoted or spaced free prompt): treat it as a free-form problem statement — hold it as topic_prompt.
  • If empty: Read the frontmatter id and difficulty of each file in ${CLAUDE_PLUGIN_ROOT}/library/sysdesign/*.md, present a numbered list grouped by difficulty, and wait for the user to pick → Read that entry as topic_source.

Step 2 — Parallel-session guard (canvas mode only)

Read the scene file, then: if the scene file's elements array is non-empty AND the file was modified within the last 30 minutes (find ~/.config/swe-interview-coach/canvas.json -mmin -30 prints the path), warn the user that another session may be mid-flight on this canvas, present a numbered choice, and wait for the answer:

The canvas has recent content — another session may be mid-flight. (1) proceed (resets the canvas) (2) cancel.

Step 3 — Set expectations + reset

Canvas mode — tell the user:

  • This is a timed 45-minute mock interview, scored at the end.
  • YOU draw your architecture in your open tab at http://localhost:9999, exactly as you'd whiteboard it.
  • The interviewer watches what you draw and probes it, but will NOT draw on your canvas during the interview.
  • It will call time as the clock runs and throw ONE curveball around the 30-minute mark.

Read the full file on GitHub · 136 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 · 136 lines · 71 tokens per session scan A 9341f37bb04a

Subscribe to this mod's changes

mock-sysdesign is a command published in the GitHub repository kirilxd/swe-interview-coach (80 stars, last pushed 1mo ago), licensed MIT. It adds 71 tokens to every session and 1,993 once invoked, about $0.0004 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-30.