quiz-gate

quiz-gate is a command for Claude Code from dwarvesf/dwarves-kit. It costs 65 tokens per session (1,313 once invoked), scanned A, original, MIT.

A five-question quiz shown before merging a significant code change when the change deserves the reviewer's attention. The questions are based on the actual code difference and recorded test results.

In plain words
What is it for?
Use it at the merge boundary to test a reviewer's understanding of a pull request or commit, then record whether they engaged, deferred, or waved the quiz.
Why use it?
It helps a human reviewer understand the change before merging without preventing a correct change from being merged. Responses are recorded for follow-up.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash lib/gate/quiz-gate.sh tap <rid> --files "<changed files>" --impl-notes docs/implementation-notes/<slug>.md --pr-kind gate "<what changed>".

Part of the kit plugin — 14 skills, 39 commands, 31 agents, 9 hooks shipped together

Good fit Use it at the merge boundary to test a reviewer's understanding of a pull request or commit, then record whether they engaged, deferred, or waved the quiz.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dwarvesf/dwarves-kit
agentmods
npx agentmods add commands/dwarvesf/dwarves-kit/quiz-gate

Made for: Claude Code.

Or install kit, the plugin that ships this one along with the rest of its 14 skills, 39 commands, 31 agents, 9 hooks.

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 quiz-gate

README.md
[![agentmods](https://agentmods.dev/badge/commands/dwarvesf/dwarves-kit/quiz-gate/github.svg)](https://agentmods.dev/commands/dwarvesf/dwarves-kit/quiz-gate)
Your own site
<a href="https://agentmods.dev/commands/dwarvesf/dwarves-kit/quiz-gate"><img src="https://agentmods.dev/badge/commands/dwarvesf/dwarves-kit/quiz-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quiz-gate

Your own site · 80×15
<a href="https://agentmods.dev/commands/dwarvesf/dwarves-kit/quiz-gate"><img src="https://agentmods.dev/badge/commands/dwarvesf/dwarves-kit/quiz-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 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,313 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00065 $0.01313
Opus 5.5 $0.00026 $0.00525
Sonnet 5.5 $0.00013 $0.00263
Haiku 4.5 $0.00006 $0.00131

Measured 3d ago against content hash 20e71303591b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

quiz-gate 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 3d 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/quiz-gate.md · 85 lines

How it starts

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

You are the understanding-gate NUDGE (the AFTER gate's speed regulator). At the merge boundary of a gate/gated-final PR, when a change is BOTH significant AND understanding-worthy, you offer the human a 5-question quiz built from the actual change BEFORE they click-to-merge. $ARGUMENTS is the change under merge (a commit / PR / spec ref) and its run id (<rid>).

This gates the human's ATTENTION, never the merge. It is a NUDGE: a waved change still merges; you never hard-block a correct build. The only real failure is UNTRACKED debt, so all three responses are recorded.

The two hard constraints (do not violate)

  1. Grounded in the DIFF + recorded test results, NEVER the agent's narrative (Litt's plausible-but-wrong caveat). The questions come from lib/gate/quiz-gate.sh questions <ref>, whose only input is a git ref , there is no narrative channel, so a false story physically cannot leak in. Never hand-write quiz questions from memory, the commit message, or what you "meant" to do. If the commit message contradicts the diff, the diff wins.
  2. Route through the understand.teach seam, do not build a second quiz. The kit builds the QUESTIONS and dispatches; whatever skill understand.teach names runs the mastery gate (shuffled answer slots, per-item gate on a demonstrated answer). The kit scores nothing and names no skill itself.

Process

Step 1: Decide whether to tap (keyed on the significance-classify verdict)

Only a tap verdict (significant AND understanding-worthy) on a gate/gated-final PR is ever nudged , the anti-fatigue guard. A significant-but-low-worthiness change (wave) or a not-significant change is NEVER quizzed (it is already logged silently by significance-classify record, wired into /kit:ship Step 8, immediately before this tap).

bash lib/gate/quiz-gate.sh tap <rid> --files "<changed files>" --impl-notes docs/implementation-notes/<slug>.md --pr-kind gate "<what changed>"

If it prints nothing, there is no tap , stop, the merge proceeds untouched. If it prints the nudge, present the one line ("★ worth understanding: ...") and the three choices to the human. Do not decide for them.

Read the full file on GitHub · 85 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. 3d ago Changed 20e71303591b
  2. 1mo ago Changed b1bc084b97b8
  3. 1mo ago Changed · +4 lines 38164051b17c
  4. 1mo ago First seen · 81 lines · 65 tokens per session scan A e2eb6df92217

Subscribe to this mod's changes

quiz-gate is a command published in the GitHub repository dwarvesf/dwarves-kit (12 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 1,313 once invoked, about $0.0003 per session on Opus 5.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.