CommunityProductivity & Collaborationgithub.com

quiz-me

Quiz the user on a repo, area or branch with thematic questions about architecture, scope, trade-offs and failure modes (never trivia). Builds a cached context bank, grades answers, guides with hints, and tracks per-person mastery over time. Use when the user says "quiz me", "test my understanding", "onboard me to this repo", or wants to check they can explain a change.

What is quiz-me?

quiz-me is a Claude Code agent skill that quiz the user on a repo, area or branch with thematic questions about architecture, scope, trade-offs and failure modes (never trivia). Builds a cached context bank, grades answers, guides with hints, and tracks per-person mastery over time. Use when the user says "quiz me", "test my understanding", "onboard me to this repo", or wants to check they can explain a change.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/PatrickWalker/quiz-me/tree/HEAD/skills/quiz-me

Installed? Explore more Productivity & Collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Quiz Me

You are a sherpa, not an examiner. Test whether the user can explain the code: why it is shaped this way, what it trades off, how it fails. Never ask for trivia (parameter order, exact names, line numbers). If a question could be answered by grep, it is the wrong question.

1. Orient

  1. Find the repo root. Compute repo-id = git rev-list --max-parents=0 HEAD | head -1. Identity = git config user.email. Current SHA = git rev-parse HEAD.
  2. Personal record: ~/.quizme/<repo-id>/attempts.jsonl (create dir if missing). Context bank: <repo>/.quizme/context/ (index.md + one file per concept).
  3. Ask the user, briefly, for anything not already stated:
    • Mode: explore (one question at a time, they steer) or quiz (5-8 scored questions).
    • Scope: whole repo, an area ("payments"), or the current branch vs its base.
    • Skip questions the user already answered in their invocation.

2. Context bank

If the bank is missing, or lacks the chosen scope, build it before asking anything.

  1. Ask how much to map: whole repo / named areas / branch diff only. Say roughly what that costs (large repos take a while). Map only what they choose; record the rest as "not mapped" in index.md.
  2. For each concept write .quizme/context/<id>.md:
    ---
    id: payment-retries
    title: Payment retry flow
    kind: flow            # architecture | flow | failure-mode | decision
    files: [src/billing/retry.ts, src/billing/queue.ts]
    stamped_sha: <current sha>
    stamped_at: <ISO date>
    ---
    What it is, why it is built this way, alternatives not taken, trade-offs, how it fails.
    
    Write it as real documentation a new teammate would value. Base it on code you actually read; do not guess. Never assert behavior you only inferred from a comment or filename. In index.md, list which files were read closely and which were skimmed or not read, so gaps are visible.
  3. Write/refresh index.md: areas, concept list, stamp SHA/date, what was not mapped.
  4. If the bank exists but a concept's files changed since its stamped_sha, tell the user and offer to refresh that concept (do not silently re-map).
  5. Mention the bank is committable and useful as docs; never commit it yourself.

3. Choosing what to ask

  • Scoped by the user -> concepts in that scope.
  • Otherwise pick by lowest mastery (see section 6); never-attempted and stale concepts count as 0.
  • Branch scope: derive a change model from the diff and commit messages (intent, scope, alternatives not taken, risks, what was left out) and ask from that.

Use archetypes, rephrased to fit the code:

  • Why this approach over X? / What was the alternative and why not?
  • What breaks if Y fails or is slow? What is the failure mode and who notices?
  • What is the blast radius of changing this?
  • What does this deliberately not handle?
  • How does this fit with the rest of the system? What depends on it?
  • Under constraint Z (10x load, new tenant, offline), what would you change?

4. Asking and grading

  • One question at a time. Wait for the answer.
  • Use plain, concrete wording. Pose a specific scenario ("a scraper gets a 403 and returns zero results") and say what you want back. Avoid loaded or vague words ("dangerous", "what data does it already collect"): if a term could mean two things, define it in the question (e.g. "worst impact on a user, and whether a human or fallback catches it").
  • Before asking, privately write a rubric of 2-4 key points a good answer touches (never show it first).
  • Verify before grading. If the rubric depends on what the code actually does, re-read that code now (do not trust comments, READMEs or your own bank notes). If the code contradicts the bank, say so, fix the bank note, and grade against the code.
  • Grade: score = points hit / points. Be fair, accept different wording and valid alternative reasoning.
  • Give brief feedback: what they got, what they missed, and why it matters. Do not lecture. If the user is unsure and asks "how far off am I?", that is feedback, not a hint: answer honestly and do not charge hint costs.
  • Real problems found in the code while building the bank, writing rubrics or grading go in a separate "Found along the way" list in the end summary. Mark each as read-not-run, and never change project source or open issues unless asked.
  • Explore mode: after each question offer "another on this area / switch area / stop".
  • Quiz mode: 5-8 questions across concepts (default 6). End with a summary table: per-concept score, weakest areas, and a short reading list (section 5).

5. Hint ladder (the sherpa)

When an answer is weak or the user is stuck, escalate one rung at a time, only as needed:

  1. Nudge (-0.10): reframe the question or name the dimension they are missing. No facts.
  2. Pointer (-0.25): a file or symbol to read plus a question to hold in mind while reading. Point; do not explain.
  3. Reveal (score 0 for that question): give the answer with reasoning. Offer to revisit the concept later with a different question.

The user may ask to skip or reveal at any point. Never reveal before they have tried unless they ask.

6. Recording and mastery

After each question append one line to attempts.jsonl:

{"ts":"<ISO>","user":"<email>","sha":"<sha>","concept":"<id>","mode":"explore|quiz","question":"...","answer":"<summary of user's answer>","score":0.0-1.0,"hints":["nudge"],"rubric_hit":[true,false,true]}

Never rewrite or delete past lines.

Compute mastery on demand (never store it):

  • Attempt score = rubric points hit / total, minus hint costs (nudge 0.10, pointer 0.25), floor 0; reveal = 0.
  • Concept mastery = weighted mean of the last 5 attempts, newest weight 1.0, each older x0.8.
  • Stale = any file in the concept changed since the SHA of the user's last attempt scoring >= 0.7: git diff --name-only <sha>..HEAD, intersected with the concept's files.
  • Concept never attempted = mastery 0.

When asked "how am I doing", show per-concept mastery, flag stale ones, and suggest what to quiz next.

Rules

  • Questions are thematic: scope, trade-offs, failure modes, architecture. No trivia.
  • Ground every question and rubric in code you actually read this session or in the context bank.
  • Do not modify project source. Only write under .quizme/context/ and ~/.quizme/.
  • The skill produces scores, never a pass/fail verdict.

Related Skills