solution
Skill0 starsChanged 2 months agoMITView on GitHub
Generate a reference architecture for a session as a real .excalidraw diagram plus a written walkthrough and a diff against your attempt. Usage — /solution [session-dir]
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Read prompt.md, interviewer.md, feedback.md, rubric/rubric.md, and the company profile.
- Very specific: line 15
Write <session>/solution-spec.json in the spec format documented at the top of scripts/excalidraw.mjs:
- Very specific: line 21
Run bun scripts/excalidraw.mjs <session>/solution-spec.json <session>/solution.excalidraw, then bun scripts/read-excalidraw.mjs …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
/solution [session-dir]
Produce the "model answer" after the user has attempted the scenario. Refuse (politely) if there is no feedback.md yet — seeing the answer first defeats the practice; offer /mock or /critique instead. Override with --force.
Steps
- Read
prompt.md,interviewer.md,feedback.md,rubric/rubric.md, and the company profile. - Design the reference architecture yourself: complete, justified, labelled, with numbers — 12–20 nodes. This is the full map for study, not what anyone draws in 45 minutes.
Then also produce
<session>/solution-45min-spec.json→solution-45min.excalidraw: what a strong staff candidate actually draws in the room — 10–12 boxes, the crux decisions, and anotesblock with the 4–5 numbers they'd say out loud. - Write
<session>/solution-spec.jsonin the spec format documented at the top ofscripts/excalidraw.mjs:layer= column left→right (clients → edge → services → storage/queues → async consumers → analytics). Pinrowto build clean bands (e.g. row 0 control plane, row 1 real-time flow, row 2 its stores, row 3 customer/query). Keep most edges between adjacent columns; for the few long or backward ones setvia: "top"|"bottom"so they take a lane around the diagram. Don't draw every "writes to DB" arrow — annotate the store's label instead and keep the diagram about flow.kindper node so colours carry meaning; usenoteon storage nodes for partition key / replication / TTL.- Edge labels: verb + protocol or payload;
style: "dashed"for async. groupsfor service boundaries or regions when they clarify.notesblock: key numbers, consistency choices, and the crux in one line each (≤ 6 bullets).
- Run
bun scripts/excalidraw.mjs <session>/solution-spec.json <session>/solution.excalidraw, thenbun scripts/read-excalidraw.mjs <session>/solution.excalidrawand confirm the summary matches your intent (no dangling arrows, every node labelled, groups contain only their members). Fix the spec and regenerate if not — the workbench Solution view refreshes on its own. - Write
<session>/solution.md:
# Reference solution — <title>
## What a strong 45-minute answer actually looks like — point at solution-45min.excalidraw; the ~60 s of spoken numbers; the crux in one sentence each; which one deep dive; the trade-offs named when asked. State plainly that the full map below is for study, not the bar for the room: Staff vs Senior is justification depth and finding the crux unled, not coverage.
## Requirements as I'd state them (functional / non-functional / out of scope)
## Estimates (3–6 lines, show the arithmetic)
## API & data model (endpoints/events; entities with keys and why)
## Architecture walkthrough — read path, write path, async path; each component's job in one line
## Deep dive: <the crux component> — algorithm/protocol/data structure level
## Deep dive: <second most likely probe>
## Trade-offs table — decision | chosen | alternative | why here
## Failure modes & mitigations (5–8)
## Scaling to 10× — what changes first
## Diff vs. your attempt — 3–6 bullets from feedback.md: what you had, what's different, why it matters
## Talk track — 60-second summary you could say out loud- Print: how to view it — workbench
http://localhost:7788/sessions/<dir>→ Solution toggle (read-only, side by side with their canvas via the toggle), orbun scripts/to-clipboard.mjs <session>/solution.excalidraw→ Cmd+V on excalidraw.com — and the Diff vs. your attempt section. Suggest they redraw from memory tomorrow and/critiqueagain.
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.

