lesson-quiz
它能做什么
这份测验让你的智能体针对 Claude Code 教程中某一节课的内容,测试你的学习效果。适合希望在课前、课中或课后检查自己理解程度的学习者。
适用场景
- ✓当你学完一节 Claude Code 课程,想检查自己记住了多少的时候。
- ✓当你想在开始某节课之前测试自己的时候。
- ✓当你想知道某节课中哪些部分仍需复习的时候。
技能链接
https://github.com/luongnv89/claude-howto/blob/main/.claude/skills/lesson-quiz/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请就斜杠命令这一课对我进行测验,并告诉我应该复习哪些主题。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会从所选课程的固定题库中挑选问题,逐题提问,并为每个答案评分。然后它会列出薄弱环节。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Lesson Quiz
Interactive quiz that tests understanding of a specific Claude Code lesson with 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:
- Read file:
<lesson-directory>/README.md
Then use the question bank from references/question-bank.md for that lesson (10 pre-written questions with answers and explanations). To stay within the context budget, read only the one selected lesson's README — not all ten.
Step 3: Present the Quiz
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).
Step 4: Present Questions in Rounds
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 the user answers each round, immediately show per-question feedback: whether each answer was correct or incorrect, and if incorrect, show the correct answer and a brief explanation. Then proceed to the next round. After all 5 rounds, proceed to final scoring.
Question format per round:
Each question from the question bank has:
question: The question textoptions: 3-4 answer choices (one correct, labeled in the bank)correct: The correct answer labelexplanation: Why the answer is c
常见问题
它会自己编造问题吗?
不会。该技能说明,只使用其题库中针对所选课程的问题。
它涵盖哪些课程?
它涵盖教程的第 01 至第 10 课,并且教程文件必须可以在本地获取。
它能对整个教程进行测验吗?
不能。该技能针对单节课,而不用于整个教程的评估。
详情
作者的原始描述
Test a learner on a single Claude Code tutorial lesson (01-10) with 10 questions, scoring answers and flagging weak spots. Use before, during, or after a lesson. Don't use for whole-tutorial assessment or explaining a topic instead of testing it.
repo: luongnv89/claude-howto
热度
- GitHub 星标
- 46k
- 排名
- #6318
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …