agentleFS
scottyrogesscottyroges/visual-skills/skills/quiz/SKILL.md

quiz

Skill8 starsChanged 4 months agoMITView on GitHub

Use when the user asks to be quizzed on — or to verify their understanding of — a PR, commit, branch, diff, spec, plan, or a generated visual-skills doc. Generates a comprehension-check HTML quiz grounded in the real source, and optionally grades free-text answers live in the terminal.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use progress, learn and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • theaichimeraSkill

    progress

    Track evolving understanding of a topic through a sequence of documents

    Also in 3 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 4 projects that use this

  • nicodianskSkill

    brainstorm

    Use when starting creative work - creating features, building components, adding functionality, or modifying behavior. Explores requirements through Socratic dialogue before any implementation.

    Also in 3 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 8

    Distinctive

    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
  1. Very specific:

    Required language guide: Before writing user-facing text, read $VISUAL_SKILLS_DIR/skills/shared/plain-language.md.

    line 16
  2. Distinctive:

    Every question belongs to exactly one family:

    line 29
  3. Distinctive:

    Every question carries a model answer (bold takeaway + bullets) and ≥1 citation grounding it in the source.

    line 50
  4. Distinctive:

    Spec / plan markdown: read the file, then the code it references.

    line 73
  5. Very specific:

    Generated visual-skills doc: read its JSON sidecar — the narrative the user actually read — plus the underlying code:

    line 74
  6. Distinctive:

    If no sidecar exists, quiz from the HTML itself plus the repo.

    line 84
  7. Very specific:

    When the user wants to be graded (they say so, or accept the offer), use the authored quiz.json — same questions, same model answers:

    line 129
  8. Distinctive:

    Ask one question at a time.

    line 132
  9. Distinctive:

    After the last question, give a per-question verdict — got it / partial / missed — and for each partial/miss, point back to the exact …

    line 139
  10. Distinctive:

    Do not lecture between questions.

    line 141
  11. Distinctive:

    No scoring persistence or gamification.

    line 146

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Quiz

Turn a change, spec, or generated doc into an on-demand comprehension check — a self-contained HTML quiz page — and optionally grade the user's answers live. The other skills in this family present understanding; this one verifies it.

Tool location (resolved through the installer's ~/.claude/visual-skills symlink — re-run npm run skills:install if the repo moves):

VISUAL_SKILLS_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}/visual-skills"

Required language guide. Before writing user-facing text, read $VISUAL_SKILLS_DIR/skills/shared/plain-language.md. Apply it to every authored field and live reply.

The standard — what makes a question good

The dividing line is recall-without-understanding, not depth. Banned: anything answerable by ctrl-F or re-reading one line ("which file…", "how many…", "did we test…"). Wanted: questions that require a mental model. The test:

If the reader could answer it correctly while still being unable to explain the change to a colleague, the question is bad.

Every question belongs to exactly one family:

  1. system-fit — where this sits in the architecture, what it touches, what depends on it.
  2. rationale — why this approach over the alternative; what tradeoff was accepted.
  3. mechanism — how the important code actually works: the algorithm, the ordering, the invariants. "Walk through what happens when X arrives", "why must A run before B", "what breaks if these two steps swap". Attach the real snippet via code so the question renders beside the code it interrogates.

Count scales with the material — the floor is fixed, the ceiling moves:

MaterialQuestionsMix
One-file fix2–3mechanism + rationale (skip system-fit if trivial)
Medium PR / short spec4–6all three families
Large spec / multi-domain change8–12, in quiz-group themesall three families

Proportionality is YOUR job, not the linter's — the renderer can't see the source. If the source has many sections/diffs/domains and you wrote a handful of questions, the quiz under-covers the material: go back and add questions.

Every question carries a model answer (bold takeaway + bullets) and ≥1 citation grounding it in the source.

Red flags — you stopped too early

  • A question a reader could answer by searching the diff text. Delete or deepen it.
  • A model answer that restates the question instead of explaining the why/how.
  • A citation-free answer, or one grounded in "the PR" instead of a file:lines or doc section.
  • 3 questions for a 20-file change. Proportionality is the standard.
  • The tool printed warnings — fix quiz.json and re-render until the output is clean.

Workflow

  1. Identify the source and the output folder (--out is a directory, absolute path: <target-repo>/.visual/quizzes/<short-label>).
  2. Ground yourself in the source (this step is most of the work):
    • Git target (PR / commit / branch / working tree): gather raw material with cd "$VISUAL_SKILLS_DIR" && npx tsx bin/recap.ts --repo <ABS_REPO> <target flag> --emit-blocks <ABS_OUT>/raw-blocks.json, then read the changed code. For --commit and --branch, the working tree is NOT the target snapshot — read files with git show <headRef>:<path>, never from the working directory. For --pr, the gather runs gh pr checkout, which switches the user's checkout to the PR branch — tell the user this happened.
    • Spec / plan markdown: read the file, then the code it references.
    • Generated visual-skills doc: read its JSON sidecar — the narrative the user actually read — plus the underlying code:

      DocSidecarShape
      recap.html / doc outputblocks.jsonbare Block[] array
      spec.htmlspec.json{ blocks: [...] } envelope
      atlas.htmlatlas.jsonenvelope
      domain-<slug>.htmldomain-<slug>.jsonenvelope

      If no sidecar exists, quiz from the HTML itself plus the repo.

  3. Author quiz.json — a QuizDoc: { "kind": "quiz", "title": "Quiz — <label>", "source": "<what was quizzed>", "intro": "<one-paragraph markdown>", "blocks": [...] }. Order questions broad → specific. Group into quiz-group themes when there are 7+.
  4. Render and open:

    npx tsx bin/quiz.ts --blocks <ABS_OUT>/quiz.json --out <ABS_OUT>
    open <ABS_OUT>/quiz.html
  5. Close the warnings. The renderer lints the blocks (question floor, missing answers/citations, trivia patterns, single-family medium quizzes, dangling fragments). Edit quiz.json and re-render until clean.
  6. Offer live mode: "Want me to quiz you live instead of (or after) the page?"

Block catalog

quiz-question — the core block:

{ "type": "quiz-question", "id": "q-order", "family": "mechanism",
  "title": "Migration ordering",
  "question": "Why must the schema migration land **before** the router change deploys?",
  "code": { "type": "annotated-code", "id": "q-order-code", "title": "capture()", "lang": "ts",
    "code": "const row = await db.order.update(...)", "annotations": [{ "line": 1, "note": "reads the new column" }] },
  "answer": { "takeaway": "**The router selects the new column** — reversed order 500s on every capture.",
    "points": ["`capture` selects `paidAt`, added by the migration", "deploy order: migration → app"] },
  "citations": [{ "label": "src/router.ts:12-30", "file": "src/router.ts", "lines": "12-30" }] }
  • family: "system-fit" | "rationale" | "mechanism" — exactly one.
  • title: optional short sidebar label (defaults to "Question N").
  • code / diagram: optional attached annotated-code / diagram primitives.
  • citations: text, not links — label is required; file+lines for code, or a doc section name. fragment may name another block id in THIS quiz doc (the only linkable form).

quiz-group — a theme wrapper for large quizzes:

{ "type": "quiz-group", "id": "theme-capture", "title": "The capture path",
  "description": "The core mechanism.", "blocks": [ …quiz-question/prose blocks… ] }

prose — freeform markdown (context, instructions), same as the other skills.

Live mode — grading free-text answers

When the user wants to be graded (they say so, or accept the offer), use the authored quiz.json — same questions, same model answers:

  • Ask one question at a time; the user answers free-text in the terminal.
  • Judge each answer against the model answer. Push back on shallow or wrong answers with one follow-up probe before scoring — never accept vibes:
    • A restatement of the question is not an answer.
    • Require the why for rationale questions, the actual sequence/invariant for mechanism questions — "it handles the ordering" is a miss; "the migration must land first because the router selects the new column" is a hit.
  • After the last question, give a per-question verdict — got it / partial / missed — and for each partial/miss, point back to the exact source (file:lines or doc section) to reread.
  • Do not lecture between questions; grade at the end.

Scope

  • On-demand only — never auto-generate a quiz as part of another skill's run.
  • No scoring persistence or gamification.
  • Sources: code changes, specs/plans, and this repo's generated docs — not general documents.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.