课堂测验
- 作者仓库星标 34,890
- 作者仓库 claude-howto
- 领域
- 文档
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 92 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @luongnv89 · v1.0.0 · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
如果用户提供课程作为参数(例如,`/lesson-quiz hooks`或`/lesson-quiz 03`),请将其映射到课程目录: 课程映射:`01`、`slash-commands`、`commands` → 01-slash-commands `02`、`memory` → 02-记忆`03`、`skills` → 03-技能
阅读课程 README.md 文件以刷新上下文: 阅读文件:`<lesson-directory>/README.md` 然后使用`references/question-bank.md` 中的题库来完成该课程。题库每课提供 10 个预先写好的问题,并附有正确答案和解释。
向用户询问测验时间背景:使用 AskUserQuestion(标题:“时间”):“您何时进行与课程相关的测验?”选项:“之前(预测试)”——我还没有读完课程,测试我的先验知识
提出题库中的 10 个问题,每轮 2 个问题(总共 5 轮)。每个问题都使用 AskUserQuestion 以及问题文本和 3-4 个答案选项。重要提示:使用 AskUserQuestion,每个问题最多 4 个选项,每轮 2 个问题。每轮提出 2 个问题。用户每轮回答后,立即显示每个问题的反馈:每个答案是否正确或不正确,如果不正确,则显示正确答案和简短解释。然后进行下一轮。 5轮全部结束后,进行最终计分。
所有回合结束后,计算得分并展示结果。评分: 每个正确答案 = 1 分 总分 = 10 分 评分标准:
呈现结果后,使用 AskUserQuestion:“接下来您想做什么?”选项:“重新参加此测验” - 再次尝试同一课程测验 “测验另一节课” - 切换到不同的课程
# 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.
## 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-commands
- `02`, `memory` → 02-memory
- `03`, `skills` → 03-skills
- `04`, `subagents`, `agents` → 04-subagents
- `05`, `mcp` → 05-mcp
- `06`, `hooks` → 06-hooks
- `07`, `plugins` → 07-plugins
- `08`, `checkpoints`, `checkpoint` → 08-checkpoints
- `09`, `advanced`, `advanced-features` → 09-advanced-features
- `10`, `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:
1. "Slash Commands (01)" — Custom commands, skills, frontmatter, arguments
2. "Memory (02)" — CLAUDE.md, memory hierarchy, rules, auto memory
3. "Skills (03)" — Progressive disclosure, auto-invocation, SKILL.md
4. "Subagents (04)" — Task delegation, agent config, isolation
**Question 2** (header: "Lesson"):
"Which lesson do you want to quiz on? (continued)"
Options:
1. "MCP (05)" — External integration, transport, servers, tool search
2. "Hooks (06)" — Event automation, PreToolUse, exit codes, JSON I/O
3. "Plugins (07)" — Bundled solutions, marketplace, plugin.json
4. "More lessons..." — Checkpoints, Advanced Features, CLI
If "More lessons..." is selected, present:
**Question 3** (header: "Lesson"):
"Select your lesson:"
Options:
1. "Checkpoints (08)" — Rewind, restore, safe experimentation
2. "Advanced Features (09)" — Planning, permissions, print mode, thinking
3. "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. The question bank provides 10 pre-written questions per lesson with correct answers and explanations.
### 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:
1. "Before (pre-test)" — I haven't read the lesson yet, testing my prior knowledge
2. "During (progress check)" — I'm partway through the lesson
3. "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 text
- `options`: 3-4 answer choices (one correct, labeled in the bank)
- `correct`: The correct answer label
- `explanation`: Why the answer is correct
- `category`: "conceptual" or "practical"
**CRITICAL — Shuffle answer options**: For each question, you MUST randomize the order of the answer options before presenting them via AskUserQuestion. Do NOT present them in the order they appear in the question bank (A, B, C, D), and do NOT place the correct answer first. Use a different random permutation for each question. Track which shuffled position contains the correct answer so you can score accurately.
Example: If the question bank lists options A (correct), B, C, D — you might present them as: C, A, D, B. The correct answer is now in position 2.
Present each question using AskUserQuestion. Record the user's answer for each.
### Step 5: Score and Present Results
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
## Lesson Quiz Results: [Lesson Name]
**Score: N/10** — [Grade label]
**Quiz timing**: [Before / During / After] the lesson
**Question breakdown**: N conceptual correct, N practical correct
### Per-Question Results
| # | Category | Question (short) | Your Answer | Result |
|---|----------|-----------------|-------------|--------|
| 1 | Conceptual | [abbreviated question] | [their answer] | [Correct / Incorrect] |
| 2 | Practical | ... | ... | ... |
| ... | ... | ... | ... | ... |
### 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]
### [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.]
### 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?"
```
### Step 6: Offer Follow-up
After presenting results, use AskUserQuestion:
"What would you like to do next?"
Options:
1. "Retake this quiz" — Try the same lesson quiz again
2. "Quiz another lesson" — Switch to a different lesson
3. "Explain a topic I missed" — Get a detailed explanation of an incorrect answer
4. "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.
## 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
If the README.md file doesn't exist at the expected path, inform the user and suggest checking the repository structure.
## 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"
按说明文件中的顺序排列。
第 1 步:确定课程
第二步:阅读课程内容
第 3 步:提出测验
第四步:轮流提出问题
第 5 步:评分并展示结果
文件/命令 -> /lesson-quiz hooks · /lesson-quiz 03 · slash-commands · commands · memory · skills · subagents · mcp
内容校验值 -> 3da0bc7a1664
当前原文的自动摘译,尚未人工审校。
第 1 步:确定课程
如果用户提供课程作为参数(例如,
/lesson-quiz hooks或/lesson-quiz 03),请将其映射到课程目录: 课程映射:01、slash-commands、commands→ 01-slash-commands02、memory→ 02-内存03,skills→ 03-技能