Lesson Quiz
Interactive quiz that tests understanding of a specific Claude Code lesson with 8-10 questions, provides per-question feedback, and identifies areas to review.
Prerequisites
This skill requires:
- The tutorial repo checked out, so the lesson directories
01-slash-commands/…10-cli/and eachREADME.mdare readable. references/question-bank.mdpresent in this skill (the source of all questions).
Before starting, confirm the target lesson's README.md exists. If it is missing, do not fabricate questions — warn the user and ask them to check the repository structure (see Error Handling).
Guardrails:
- Never invent questions or answers. Ask only questions drawn from
references/question-bank.mdfor the selected lesson; if the bank lacks entries for a lesson, say so rather than making them up. - Score accurately. Track which shuffled position holds the correct answer for every question and validate each response against it — never guess a score.
- Confirm timing before scoring. The pre/during/after choice changes how results are framed; do not skip it.
Instructions
Step 1: Determine the Lesson
If the user provided a lesson as an argument (e.g., /lesson-quiz hooks or /lesson-quiz 03), map it to the lesson directory:
Lesson mapping:
01,slash-commands,commands→ 01-slash-commands02,memory→ 02-memory03,skills→ 03-skills04,subagents,agents→ 04-subagents05,mcp→ 05-mcp06,hooks→ 06-hooks07,plugins→ 07-plugins08,checkpoints,checkpoint→ 08-checkpoints09,advanced,advanced-features→ 09-advanced-features10,cli→ 10-cli
If no argument was provided, present a selection prompt using AskUserQuestion:
Question 1 (header: "Lesson"): "Which lesson do you want to quiz on?" Options:
- "Slash Commands (01)" — Custom commands, skills, frontmatter, arguments
- "Memory (02)" — CLAUDE.md, memory hierarchy, rules, auto memory
- "Skills (03)" — Progressive disclosure, auto-invocation, SKILL.md
- "Subagents (04)" — Task delegation, agent config, isolation
Question 2 (header: "Lesson"): "Which lesson do you want to quiz on? (continued)" Options:
- "MCP (05)" — External integration, transport, servers, tool search
- "Hooks (06)" — Event automation, PreToolUse, exit codes, JSON I/O
- "Plugins (07)" — Bundled solutions, marketplace, plugin.json
- "More lessons..." — Checkpoints, Advanced Features, CLI
If "More lessons..." is selected, present:
Question 3 (header: "Lesson"): "Select your lesson:" Options:
- "Checkpoints (08)" — Rewind, restore, safe experimentation
- "Advanced Features (09)" — Planning, permissions, print mode, thinking
- "CLI Reference (10)" — Flags, output formats, scripting, piping
Step 2: Read the Lesson Content
Read the lesson README.md file to refresh context: