drawthesystem
AGENTS.md0 starsChanged 2 months agoMITView on GitHub
System design interview practice for any coding agent that supports Agent Skills: research a target company, build a company-flavoured scenario, play interviewer (text or voice), critique Excalidraw diagrams, generate reference architectures, track progress.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Never reveal interviewer.md during /mock — it is the hidden answer key.
- Distinctive: line 23
Never fabricate company facts.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Draw the System
System design interview practice for any coding agent that supports Agent Skills: research a target company, build a company-flavoured scenario, play interviewer (text or voice), critique Excalidraw diagrams, generate reference architectures, track progress.
Layout
skills/<name>/SKILL.md—/research,/scenario,/mock,/critique,/solution,/progress,/export,/import. Each SKILL.md is the source of truth for that flow..claude/skillsand.agents/skillsare symlinks toskills/for auto-discovery.skills/research/references/researcher.md— the research playbook (/researchmay delegate it to a subagent if the host supports one).core/—@drawthesystem/coreworkspace package: the excalidraw generator/reader as importable, zero-dep ESM functions, plus the skill/rubric markdown exposed as importable content (core/content/imports the source files live — nothing is copied or generated). Consumed live (path dependency) by the cloud product, so edits toskills/**,rubric/rubric.md, orcore/flow downstream automatically with no extra step. Adding/renaming a skill is the one change that touches core (an import line incore/content/index.mjs).core/test/+web/test/—bun run test(also insidebun run check):node --testfor core (bundle, content, excalidraw generator/reader assertions, andtypes.test.mjs, which fails when acore/types/*.d.tsvalue export drifts fromcore/src),bun testforweb/server/utils/safe-path.ts(the path-traversal guard behindsafePath).bun run types:corecompilescore/test/types/check.tsagainst the.d.tsfiles through the package exports map — cloud'smcp/typechecks against exactly those. Changing an export incore/srcmeans updating its.d.tsandcheck.ts.scripts/excalidraw.mjs— spec JSON →.excalidraw(layered auto-layout, coloured bykind); schema in the file header. Thin CLI overcore/src/excalidraw.mjs.scripts/read-excalidraw.mjs—.excalidraw→ markdown summary of boxes/arrows/labels (--jsonfor raw). This is how the agent "sees" a diagram. Thin CLI overcore/src/read-excalidraw.mjs.scripts/bundle.mjs—export [out.json]/import <file> [--dry-run] [--decide …]: one JSON bundle ofsessions/+progress.md, in the cloud product's account-export format (schema incore/src/bundle.mjs), so work moves in both directions. Import always plans first (new / identical / conflict per session) and never deletes. Thin CLI overcore/src/bundle.mjs(pure) +core/src/bundle-node.mjs(fs).scripts/to-clipboard.mjs— copies a.excalidrawto the clipboard so Cmd+V pastes it into excalidraw.com (macOSpbcopy).scripts/session.mjs—start|elapsed|pause|resume|stop <session>shared interview clock (<session>/state.json); the workbench timer follows it (shows ⏸ while paused).scripts/voice.mjs—speak "<text>"/listen/status/logCLI used by/mock --voice; targets the workbench's/api/voice/*when it's running, elseserveruns a zero-dep fallback page.web/— Nuxt 4 + Nuxt UI workbench (bun run web, http://localhost:7788;.claude/launch.jsondefines aworkbenchtarget for hosts with a preview/browser tool): dashboard, companies, session workspace with Excalidraw embedded natively and autosaving tosessions/<id>/canvas.excalidraw, notes editor, feedback/solution tabs, timer, voice panel. The agent never calls the workbench except viascripts/voice.mjs; it reads/writes the same files.rubric/rubric.md— 10-dimension senior/staff rubric + diagram checks; all grading references it.companies/<slug>/profile.md— research output ·sessions/<date>-<slug>-<topic>/— one folder per session ·progress.md— one row per graded session.companies/andsessions/are gitignored fork-local personal practice data (someone's own interview targets and history) — never commit them, never import them intocore/content, never ship them as product content.problems/<slug>/— the deliberately public, version-controlled counterpart: generic (company-less) practice problems (prompt.md,interviewer.md,notes.md), same shape asexamples/demo-session/. This is what@drawthesystem/core/content'sproblems/problemsBySlugexports (prompt.md only —interviewer.mdstays out of that export, same rule as a live session), and what the cloud product's/problems/[slug]landing pages are generated from at build time.
Conventions (apply regardless of which agent/model is running)
- Never reveal
interviewer.mdduring/mock— it is the hidden answer key. - Never fabricate company facts; profiles cite sources or say "not found" / "paste-only".
- Generate diagrams via
scripts/excalidraw.mjsfrom a spec — don't hand-write element JSON — and verify withread-excalidraw.mjsafterwards. Keep the spec next to its output (canvas-spec.json,solution-spec.json,solution-45min-spec.json) so it can be edited and regenerated. - Diagram round-trip: the user draws in the workbench (autosave) or at excalidraw.com (Save to…); either way the agent reads
<session>/canvas.excalidrawfrom disk only. - Web research: use whatever search/fetch tools the host provides (load them first if the host defers tools); if none, ask the user for URLs or pasted text.
- Batch runs (many
/research+/scenarioin parallel subagents) take an hour or more: on macOS runcaffeinate -disfirst — idle sleep kills in-flight agents — and have each agent write its profile draft early so an interrupted run still leaves output. - Bun ≥ 1.2 (
scripts/also run under Node ≥ 20).scripts/,core/, andskills/are zero-dependency; onlyweb/has anode_modules. Scripts are invoked relative to the repo root and importcore/by relative path, so a fresh clone runs them with no install. - Session dir names are
YYYY-MM-DD-<slug>-<topic>(the workbench parses this);prompt.mdstarts with# Titleand a_Company: … · Mode: breadth|depth · Time: N min …_line. - Grade to the senior/staff bar unless the scenario says otherwise — depth of justification and finding the crux unled, not breadth of drawing.
/solutionproduces bothsolution.excalidraw(full map, for study) andsolution-45min.excalidraw(what a strong candidate actually draws in the room).
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.

