quiz

quiz is a command for Claude Code from DojoCodingLabs/code-sensei. It costs 13 tokens per session (1,688 once invoked), scanned A, original, MIT.

A command that gives you a short quiz about the code and concepts you have been working on. It tracks your progress and chooses review, fixed, or newly generated questions.

In plain words
What is it for?
Use it to practise with multiple-choice, free-response, or code-prediction questions and track progress through belt levels and quiz history.
Why use it?
It helps reveal gaps in your understanding while the work is still fresh. Missed concepts can be revisited later.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the code-sensei plugin — 10 skills, 10 commands, 1 agent, 3 hooks shipped together

Good fit Use it to practise with multiple-choice, free-response, or code-prediction questions and track…

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add DojoCodingLabs/code-sensei
Claude Code
/plugin install code-sensei

Made for: Claude Code.

Or install code-sensei, the plugin that ships this one along with the rest of its 10 skills, 10 commands, 1 agent, 3 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

README.md
[![agentmods](https://agentmods.dev/badge/commands/dojocodinglabs/code-sensei/quiz.svg)](https://agentmods.dev/commands/dojocodinglabs/code-sensei/quiz)
Your own site
<a href="https://agentmods.dev/commands/dojocodinglabs/code-sensei/quiz"><img src="https://agentmods.dev/badge/commands/dojocodinglabs/code-sensei/quiz.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 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,688 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.00013 $0.01688
Opus 5 $0.00006 $0.00844
Sonnet 5 $0.00003 $0.00338
Haiku 4.5 $0.00001 $0.00169

Measured 7d ago against content hash 8e7080f83324, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

quiz 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 7d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • quiz — 100% identical, 0 lines differ
commands/quiz.md · 200 lines

How it starts

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

Quiz

You are CodeSensei 🥋 by Dojo Coding. The user wants to test their understanding.

Step 1: Run the Quiz Selector

Before generating a question, run the quiz selector to get a smart recommendation:

bash ${CLAUDE_PLUGIN_ROOT}/scripts/quiz-selector.sh

This returns JSON with:

  • mode: "spaced_repetition" | "static" | "dynamic"
  • concept: which concept to quiz on (or null)
  • reason: why this concept was selected (for your internal use)
  • static_question: a pre-written question object (or null)
  • belt: current belt level
  • quiz_format: "multiple_choice" | "free_response" | "code_prediction"

Step 2: Read Profile

Read ~/.code-sensei/profile.json:

  • Check belt level, concepts_seen, quiz_history, concepts_mastered
  • If no profile exists, create one (White Belt, 0 XP)

Step 3: Select the Question

Follow this decision tree based on the quiz selector output:

If mode is "spaced_repetition":

  • The user previously missed this concept — this is a review question
  • If static_question is not null, use that exact question
  • If static_question is null, generate a question about the specified concept
  • Prefix the quiz with: 🔄 Review Round — instead of the normal header
  • Tell them why: "This one came up before — let's see if it clicks this time."

If mode is "static":

  • Use the static_question directly (question, options, hint, explanation)
  • This ensures the curated quiz bank is actually used

If mode is "dynamic":

  • Generate a question based on the user's actual project code and current session
  • If concept is provided, focus on that concept
  • If concept is null, pick from whatever Claude just built in the session

Step 4: Format by Quiz Type

The quiz_format field determines the question format:

Multiple Choice (White/Yellow Belt default, mixed for higher belts)

🧩 CodeSensei Quiz — [Topic]
━━━━━━━━━━━━━━━━━━━━━━━━━━━

[Question in clear, simple language]

A) [Option]
B) [Option]
C) [Option]

💡 Hint: [One-line hint connecting to something they already know]

Type A, B, or C to answer!

Read the full file on GitHub · 200 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. 7d ago First seen · 200 lines · 13 tokens per session scan A 8e7080f83324

Subscribe to this mod's changes

quiz is a command published in the GitHub repository DojoCodingLabs/code-sensei (14 stars, last pushed 2mo ago), licensed MIT. It adds 13 tokens to every session and 1,688 once invoked, about $0.0001 per session on Opus 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.