lesson-quiz
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLesson 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.
交互式测验,通过8-10道题目测试用户对特定Claude Code课程的理解程度,提供每道题的反馈,并指出需要复习的领域。
Instructions
操作说明
Step 1: Determine the Lesson
步骤1:确定课程
If the user provided a lesson as an argument (e.g., or ), map it to the lesson directory:
/lesson-quiz hooks/lesson-quiz 03Lesson mapping:
- ,
01,slash-commands→ 01-slash-commandscommands - ,
02→ 02-memorymemory - ,
03→ 03-skillsskills - ,
04,subagents→ 04-subagentsagents - ,
05→ 05-mcpmcp - ,
06→ 06-hookshooks - ,
07→ 07-pluginsplugins - ,
08,checkpoints→ 08-checkpointscheckpoint - ,
09,advanced→ 09-advanced-featuresadvanced-features - ,
10→ 10-clicli
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
如果用户提供了课程作为参数(例如或),将其映射到课程目录:
/lesson-quiz hooks/lesson-quiz 03课程映射:
- ,
01,slash-commands→ 01-slash-commandscommands - ,
02→ 02-memorymemory - ,
03→ 03-skillsskills - ,
04,subagents→ 04-subagentsagents - ,
05→ 05-mcpmcp - ,
06→ 06-hookshooks - ,
07→ 07-pluginsplugins - ,
08,checkpoints→ 08-checkpointscheckpoint - ,
09,advanced→ 09-advanced-featuresadvanced-features - ,
10→ 10-clicli
如果未提供参数,使用AskUserQuestion呈现选择提示:
问题1(标题:"课程"):
"你想针对哪门课程进行测验?"
选项:
- "Slash Commands (01)" — 自定义命令、技能、前置元数据、参数
- "Memory (02)" — CLAUDE.md、内存层级、规则、自动内存
- "Skills (03)" — 渐进式披露、自动调用、SKILL.md
- "Subagents (04)" — 任务委派、Agent配置、隔离
问题2(标题:"课程"):
"你想针对哪门课程进行测验?(续)"
选项:
- "MCP (05)" — 外部集成、传输、服务器、工具搜索
- "Hooks (06)" — 事件自动化、PreToolUse、退出码、JSON I/O
- "Plugins (07)" — 捆绑解决方案、市场、plugin.json
- "更多课程..." — 检查点、高级功能、CLI
如果选择“更多课程...”,则呈现:
问题3(标题:"课程"):
"选择你的课程:"
选项:
- "Checkpoints (08)" — 回退、恢复、安全实验
- "Advanced Features (09)" — 规划、权限、打印模式、思考
- "CLI Reference (10)" — 标志、输出格式、脚本、管道
Step 2: Read the Lesson Content
步骤2:读取课程内容
Read the lesson README.md file to refresh context:
- Read file:
<lesson-directory>/README.md
Then use the question bank from for that lesson. The question bank provides 10 pre-written questions per lesson with correct answers and explanations.
references/question-bank.md读取课程的README.md文件以刷新上下文:
- 读取文件:
<lesson-directory>/README.md
然后使用中对应课程的题库。题库为每门课程提供10道预先编写的题目,包含正确答案和解释。
references/question-bank.mdStep 3: Present the Quiz
步骤3:呈现测验
Ask the user about quiz timing context:
Use AskUserQuestion (header: "Timing"):
"When are you taking this quiz relative to the lesson?"
Options:
- "Before (pre-test)" — I haven't read the lesson yet, testing my prior knowledge
- "During (progress check)" — I'm partway through the lesson
- "After (mastery check)" — I've completed the lesson and want to verify understanding
This context affects how the results are framed (see Step 5).
询问用户测验时机的上下文:
使用AskUserQuestion(标题:"测验时机"):
"你是在课程的哪个阶段进行这次测验?"
选项:
- "课前(预测试)" — 我还没阅读课程内容,测试我的现有知识
- "课中(进度检查)" — 我正在学习课程的中途
- "课后(掌握验证)" — 我已完成课程,想验证是否理解
此上下文会影响结果的呈现方式(见步骤5)。
Step 4: Present Questions in Rounds
步骤4:分轮次呈现题目
Present 10 questions from the question bank in rounds of 2 questions each (5 rounds total). Each question uses AskUserQuestion with the question text and 3-4 answer options.
IMPORTANT: Use AskUserQuestion with max 4 options per question, 2 questions per round.
For each round, present 2 questions. After all 5 rounds, proceed to scoring.
Question format per round:
Each question from the question bank has:
- : The question text
question - : 3-4 answer choices (one correct, labeled in the bank)
options - : The correct answer label
correct - : Why the answer is correct
explanation - : "conceptual" or "practical"
category
Present each question using AskUserQuestion. Record the user's answer for each.
将题库中的10道题目分成每轮2道题的形式呈现(共5轮)。每道题使用AskUserQuestion,包含题目文本和3-4个选项。
重要提示:使用AskUserQuestion时,每道题最多4个选项,每轮2道题。
每轮呈现2道题。完成5轮后,进入评分阶段。
每轮题目格式:
题库中的每道题包含:
- :题目文本
question - :3-4个选项(一个正确选项,在题库中标记)
options - :正确选项的标记
correct - :答案正确的原因
explanation - :"conceptual"(概念类)或"practical"(实践类)
category
使用AskUserQuestion呈现每道题,并记录用户的答案。
Step 5: Score and Present Results
步骤5:评分并呈现结果
After all rounds, calculate the score and present results.
Scoring:
- Each correct answer = 1 point
- Total possible = 10 points
Grade scale:
- 9-10: Mastered — Excellent understanding
- 7-8: Proficient — Good grasp, minor gaps
- 5-6: Developing — Fundamentals understood, needs review
- 3-4: Beginning — Significant gaps, review recommended
- 0-2: Not yet — Start from the beginning of this lesson
Output format:
markdown
undefined完成所有轮次后,计算分数并呈现结果。
评分规则:
- 每道正确答案得1分
- 总分10分
评分等级:
- 9-10分:精通 — 理解程度极佳
- 7-8分:熟练 — 掌握良好,存在小部分知识缺口
- 5-6分:进阶中 — 理解基础知识,需要复习
- 3-4分:入门阶段 — 存在较大知识缺口,建议复习
- 0-2分:尚未掌握 — 从课程开头重新学习
输出格式:
markdown
undefinedLesson Quiz Results: [Lesson Name]
课程测验结果:[课程名称]
Score: N/10 — [Grade label]
Quiz timing: [Before / During / After] the lesson
Question breakdown: N conceptual correct, N practical correct
分数:N/10 — [等级标签]
测验时机:课程[课前/课中/课后]
题目分类得分:概念类正确N道,实践类正确N道
Per-Question Results
每题结果
| # | Category | Question (short) | Your Answer | Result |
|---|---|---|---|---|
| 1 | Conceptual | [abbreviated question] | [their answer] | [Correct / Incorrect] |
| 2 | Practical | ... | ... | ... |
| ... | ... | ... | ... | ... |
| # | 分类 | 题目(简写) | 你的答案 | 结果 |
|---|---|---|---|---|
| 1 | 概念类 | [简化题目] | [你的答案] | [正确/错误] |
| 2 | 实践类 | ... | ... | ... |
| ... | ... | ... | ... | ... |
Incorrect Answers — Review These
错误答案 — 需复习这些内容
[For each incorrect answer, show:]
Q[N]: [Full question text]
- Your answer: [what they chose]
- Correct answer: [correct option]
- Explanation: [why it's correct]
- Review: [specific section of the lesson README to re-read]
[针对每个错误答案,显示:]
第N题:[完整题目文本]
- 你的答案:[你选择的选项]
- 正确答案:[正确选项]
- 解释:[正确原因]
- 复习建议:[课程README中需重读的特定章节]
[Timing-specific message]
[时机专属提示信息]
[If pre-test]:
Pre-test score: N/10. This gives you a baseline! Focus your study on the topics you missed. After completing the lesson, retake the quiz to measure your improvement.
[If during]:
Progress check: N/10. [If 7+: Great progress — keep going! If 4-6: Review the incorrect topics before continuing. If <4: Consider re-reading from the beginning.]
[If after]:
Mastery check: N/10. [If 9-10: You've mastered this lesson! Move on to the next. If 7-8: Almost there — review the missed topics and retake. If <7: Spend more time with the lesson, especially the sections marked above.]
[如果是预测试:]
预测试分数:N/10。这为你提供了一个基准!重点学习你答错的主题。完成课程后,重新参加测验以衡量你的进步。
[如果是课中:]
进度检查分数:N/10。[如果7分以上:进度很好,继续加油!如果4-6分:在继续学习前复习答错的主题。如果低于4分:考虑重新阅读课程开头内容。]
[如果是课后:]
掌握验证分数:N/10。[如果9-10分:你已精通这门课程!继续学习下一门。如果7-8分:几乎掌握了,复习答错的主题后重新测验。如果低于7分:花更多时间学习课程,尤其是上面标记的章节。]
Recommended Next Steps
推荐下一步
[Based on score and timing:]
- [If mastered]: Proceed to the next lesson in the roadmap: [next lesson link]
- [If proficient]: Review these specific sections, then retake: [list sections]
- [If developing or below]: Re-read the full lesson: [lesson link]. Focus on: [list weak categories]
- [Offer]: "Would you like to retake this quiz, try a different lesson, or get help with a specific topic?"
undefined[基于分数和时机:]
undefinedStep 6: Offer Follow-up
步骤6:提供后续选项
After presenting results, use AskUserQuestion:
"What would you like to do next?"
Options:
- "Retake this quiz" — Try the same lesson quiz again
- "Quiz another lesson" — Switch to a different lesson
- "Explain a topic I missed" — Get a detailed explanation of an incorrect answer
- "Done" — End the quiz session
If Retake: Go back to Step 4 (skip timing question, use same timing).
If Quiz another lesson: Go back to Step 1.
If Explain a topic: Ask which question number, then read the relevant section from the lesson README.md and explain it with examples.
呈现结果后,使用AskUserQuestion:
"你接下来想做什么?"
选项:
- "重新参加这门测验" — 再次尝试同一课程的测验
- "测验其他课程" — 切换到另一门课程
- "解释我答错的主题" — 获取某个错误答案的详细解释
- "结束" — 结束测验会话
如果选择重新参加:回到步骤4(跳过测验时机问题,使用之前的时机)。
如果选择测验其他课程:回到步骤1。
如果选择解释主题:询问题目编号,然后从课程README.md中读取相关章节并结合示例进行解释。
Error Handling
错误处理
Invalid lesson argument
无效课程参数
If the argument doesn't match any lesson, show the valid lesson list and ask the user to pick one.
如果参数不匹配任何课程,显示有效课程列表并请用户选择一个。
User wants to quit mid-quiz
用户想中途退出测验
If the user indicates they want to stop during any round, present partial results for questions answered so far.
如果用户在任何轮次中表示想停止,呈现已完成题目的部分结果。
Lesson README not found
未找到课程README
If the README.md file doesn't exist at the expected path, inform the user and suggest checking the repository structure.
如果预期路径下不存在README.md文件,告知用户并建议检查仓库结构。
Validation
验证
Triggering test suite
触发测试用例
Should trigger:
- "quiz me on hooks"
- "lesson quiz"
- "test my knowledge of lesson 3"
- "practice quiz for MCP"
- "do I understand skills"
- "quiz me on slash commands"
- "lesson-quiz 06"
- "test me on checkpoints"
- "how well do I know the CLI"
- "quiz me before I start the memory lesson"
Should NOT trigger:
- "assess my overall level" (use /self-assessment)
- "explain hooks to me"
- "create a hook"
- "what is MCP"
- "review my code"
应触发:
- "quiz me on hooks"
- "lesson quiz"
- "test my knowledge of lesson 3"
- "practice quiz for MCP"
- "do I understand skills"
- "quiz me on slash commands"
- "lesson-quiz 06"
- "test me on checkpoints"
- "how well do I know the CLI"
- "quiz me before I start the memory lesson"
不应触发:
- "assess my overall level"(使用/self-assessment)
- "explain hooks to me"
- "create a hook"
- "what is MCP"
- "review my code"