Agent skill

Claude Code Lesson Quiz

by lhfer in lhfer/claude-howto-zh-cn

Runs a ten-question interactive quiz on one lesson of a Claude Code tutorial, scores it, and points out the weak spots with a review of missed questions.

MITAuto-check passedEducation

SKILL.md written in Chinese; this summary is our English description.

Install Claude Code Lesson Quiz

skills CLI
$ npx skills add lhfer/claude-howto-zh-cn --skill lesson-quiz -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lhfer/claude-howto-zh-cn lesson-quiz --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lhfer/claude-howto-zh-cn.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/lesson-quiz .claude/skills/lesson-quiz && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lesson-quiz
GitHub stars
2.3k
Token cost
~781 tokens
SKILL.md length
269 words
Files
4 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Runs a ten-question interactive quiz on one lesson of a Claude Code tutorial, scores it, and points out the weak spots with a review of missed questions.

  • Works in 7 steps: 确认 lesson → 读取 lesson 与题库 → 询问测验时机 → …
  • Testing your understanding of one Claude Code tutorial lesson
  • SKILL.md covers 前置条件与护栏, 使用说明, 验收标准 and 边界情况, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

The SKILL.md is in Chinese and covers a quiz for a single lesson from a ten-lesson Claude Code tutorial: slash commands, memory, skills, subagents, MCP, hooks, plugins, checkpoints, advanced features and the CLI. It is not for assessing the whole tutorial, which another skill handles, or for just explaining a topic. Guardrails say to confirm the lesson README exists, to use only the preset questions in references/question-bank.md and never invent new ones, to ask whether the quiz is before, during or after study, and to shuffle options while tracking where the correct answer lands.

The quiz runs five rounds of two questions, each with three or four options and immediate feedback, then scores one point per correct answer out of ten. Levels run from Mastered at 9 to 10 down to Not yet at 0 to 2. Results follow a template with a question table, review of wrong answers and timing-based advice, and the skill then offers a retake, another lesson, an explanation of missed topics or an end.

When your agent uses it

  • Testing your understanding of one Claude Code tutorial lesson
  • Taking a pre-test before studying a lesson, or a mastery check after
  • Getting a scored result with the weak topics listed
  • Practicing a topic such as MCP, hooks or skills with preset questions

Example prompts

  • “Quiz me on the hooks lesson.”
  • “Run the lesson quiz for lesson 05 as a pre-test before I start studying MCP.”
  • “I finished the subagents lesson; give me the mastery check and explain what I missed.”
  • “Test me on slash commands, then offer me another lesson.”

Requirements

  • The tutorial repository with its lesson folders from 01-slash-commands to 10-cli

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. 确认 lesson
  2. 读取 lesson 与题库
  3. 询问测验时机
  4. 出题
  5. 评分与结果输出
  6. 根据 timing 解释结果
  7. 提供后续动作

What it can do on your machine

Read from SKILL.md and the folder at commit f0da0c6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Claude Code Lesson Quiz loads about 781 tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 37 tokens; SKILL.md has 269 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~781
With references · SKILL.md plus every file in references/, read only if the agent opens them
~12k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lhfer/claude-howto-zh-cn at commit f0da0c6, republished under its MIT licence (© lhfer). 269 words, ~781 tokens.

Download SKILL.mdSave it as .claude/skills/lesson-quiz/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
lesson-quiz
description
针对单个 Claude Code tutorial lesson(01-10)进行 10 题互动测验,评分并标出薄弱点。用于用户明确要求单课测验、lesson quiz 或 MCP / hooks / skills 等主题练习;不用于整套教程评估,也不用于只解释某个主题。
effort
high
metadata.version
1.1.0
metadata.author
Luong NGUYEN

课程测验(Lesson Quiz)

这是一个针对单个 Claude Code lesson 的完整互动测验 skill,用于检查用户对某一课的理解程度。它只测一个 lesson,不用于整套教程的水平评估;整套评估请使用 self-assessment。

前置条件与护栏

本 skill 需要能读取教程仓库中的 01-slash-commands/ 到 10-cli/ 目录,以及本 skill 自带的 references/question-bank.md。

  • 先确认目标 lesson 的 README.md 存在;如果不存在,停止并提醒用户检查仓库结构。
  • 不要临时编题。 只使用 references/question-bank.md 中该 lesson 的预置题;如果题库缺失,直接说明并停止。
  • 准确计分。 每题选项会随机打乱,必须记录正确选项在打乱后的新位置,再据此判分。
  • 先确认测验时机。 Before / During / After 会影响结果解释,不能跳过。

使用说明

Step 1: 确认 lesson

如果用户提供了参数,就映射到 lesson 目录:

  • 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

如果用户没提供参数,使用 AskUserQuestion 分 2-3 轮让用户选择 lesson。


Step 2: 读取 lesson 与题库

先读取:

  • <lesson-directory>/README.md
  • references/question-bank.md

只读取当前选中 lesson 的 README.md,不要为了测一个 lesson 一次性加载全部 10 个 lesson。题库中每个 lesson 应有 10 道预置题;如果该 lesson 题目不足,停止并报告题库需要维护,不要根据 README 临时补题。


Step 3: 询问测验时机

用 AskUserQuestion 询问用户当前是在:

  1. 学前(pre-test)
  2. 学习中(progress check)
  3. 学后(mastery check)

不同 timing 会影响结果解读。


Step 4: 出题
  • 每次固定 10 题
  • 每轮 2 题,共 5 轮
  • 混合概念题和实践题
  • 每题使用 AskUserQuestion,提供 3-4 个选项
  • 每轮用户答完后,立即给出本轮逐题反馈:是否答对;如果答错,给出正确答案和简短解释
  • 每题展示前必须随机打乱选项顺序,不要照搬题库里的 A/B/C/D 顺序,也不要固定把正确答案放在第一项
  • 打乱后要记录正确答案对应的新位置,最终评分按打乱后的真实答案判定

每题必须包含这些信息:

  • category
  • question
  • options
  • correct
  • explanation
  • review

记录用户答案;每轮反馈不替代最终结果,所有 5 轮结束后仍要统一评分。


Step 5: 评分与结果输出

每题答对记 1 分,总分 10 分。

等级:

  • 9-10:Mastered
  • 7-8:Proficient
  • 5-6:Developing
  • 3-4:Beginning
  • 0-2:Not yet

输出格式使用 references/results-template.md。填充模板里的占位符,保留分数行、单题结果表、错题复盘、按时机给出的反馈和推荐下一步。


Step 6: 根据 timing 解释结果
如果是学前测验
  • 把成绩解释为“学习前基线”
  • 强调用户接下来应重点关注哪些主题
如果是学习中检查
  • 把成绩解释为“阶段性进度检查”
  • 明确哪些点已经掌握、哪些点要补
如果是学后测验
  • 把成绩解释为“lesson mastery check(课程掌握度检查)”
  • 如果分数高,建议进入下一课
  • 如果分数一般,列出明确回看点

Step 7: 提供后续动作

最后再用 AskUserQuestion 让用户选择:

  1. 重新测本课
  2. 测另一课
  3. 解释我没掌握的主题
  4. 结束

如果选第三项,先问错题编号,再读取该 lesson README 的相关部分,用中文解释并给例子。

验收标准

一次完整测验必须满足:

  • 已解析且只解析了一个 lesson(01-10)
  • 已通过 AskUserQuestion 获取 Before / During / After 测验时机
  • 已从 references/question-bank.md 取出该 lesson 的 10 道题
  • 已按 5 轮、每轮 2 题展示,并对每题选项随机打乱
  • 已按打乱后的真实正确位置计分,最终分数为 0-10 的整数
  • 最终报告包含 Score: N/10、10 行单题结果、每道错题的正确答案与复习建议
  • 已提供“重新测本课 / 测另一课 / 解释我没掌握的主题 / 结束”后续选择

边界情况

  • 无效 lesson 参数:展示可用 lesson 列表并让用户重新选择。
  • 用户中途退出:给出已答题目的部分结果,分母用已答题数,不要写成 10 分满分。
  • 目标 README.md 不存在:停止并提示检查仓库结构。
  • 题库缺失:停止并说明缺少该 lesson 的题目,不要编造题目。

输出要求

  • 中文表达清晰
  • 保留关键英文术语
  • 错题解释必须具体
  • 复习建议要明确到 lesson 或章节
  • 不要把测验做成泛泛聊天

© lhfer, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in .claude/skills/lesson-quiz of lhfer/claude-howto-zh-cn.

  • SKILL.md
  • README.md
  • references/question-bank.md
  • references/results-template.md

Open the folder on GitHubat commit f0da0c6

Compare with similar skills

Claude Code Lesson Quiz next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Claude Code Lesson Quiz compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Claude Code Lesson Quiz this skilllhfer/claude-howto-zh-cn2.3k—~781Automated safety check: PassMIT
DeepTutor CLIHKUDS/DeepTutor41k—~2.8kAutomated safety check: PassApache-2.0
AI Engineering Placement Quizrohitg00/ai-engineering-from-scratch66k—~2kAutomated safety check: PassMIT
Codebase to Coursezarazhangrui/codebase-to-course5.7k—~4.4kAutomated safety check: PassNone
AI Engineering Phase Quizrohitg00/ai-engineering-from-scratch66k—~2.1kAutomated safety check: PassMIT
Scholar EvaluationK-Dense-AI/claude-scientific-writer2.4k2 repos~2.9kAutomated safety check: NotesMIT

Similar skills

  • DeepTutor CLI

    HKUDS/DeepTutor

    Teaches the agent to set up and run DeepTutor from the command line: chat and capabilities, knowledge bases, partners, memory, sessions, notebooks and the server or Web app.

    41k GitHub stars~2.8k tokensUpdated 2 days ago
    EducationAuto-check passed
  • AI Engineering Placement Quiz

    rohitg00/ai-engineering-from-scratch

    Runs a 10-question quiz across five areas to place a learner in the AI Engineering from Scratch curriculum, so they skip what they already know.

    66k GitHub stars~2k tokensUpdated today
    EducationAuto-check passed
  • Codebase to Course

    zarazhangrui/codebase-to-course

    Turns a codebase into an interactive single-page HTML course for non-technical learners, with scroll modules, animated diagrams, quizzes and plain-English code translations.

    5.7k GitHub stars~4.4k tokensUpdated 6 mo ago
    EducationAuto-check passed
  • AI Engineering Phase Quiz

    rohitg00/ai-engineering-from-scratch

    Quizzes you on a completed phase of the AI Engineering from Scratch course, taking a phase number or name and mapping it to that phase's directory.

    66k GitHub stars~2.1k tokensUpdated today
    EducationAuto-check passed
  • Scholar Evaluation

    K-Dense-AI/claude-scientific-writer

    Provide qualitative-first, evidence-traceable developmental review of scholarly works and audit low-stakes research-assessment rubrics with optional local quality controls.

    2.4k GitHub starsUsed in 2 repos~2.9k tokens
    EducationAuto-check: notes
  • Evaluation

    guanyang/open-agent-hub

    This skill should be used when building agent evaluation systems: deterministic checks, regression suites, multi-dimensional rubrics, quality gates, production monitoring, baseline comparison, and…

    977 GitHub starsUsed in 2 repos~4.2k tokens
    EducationAuto-check passed

More from lhfer/claude-howto-zh-cn

  • Claude Code Self-Assessment Advisor

    lhfer/claude-howto-zh-cn

    Quizzes you on Claude Code in a quick or deep mode, scores your level across 10 topics and recommends what to learn next, in Chinese.

    2.3k GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Blog Post Drafting Workflow

    lhfer/claude-howto-zh-cn

    Turns a topic and reference materials into a versioned blog draft through a fixed outline-first pipeline with per-source summaries.

    2.3k GitHub stars~218 tokensUpdated 2 mo ago
    Auto-check passed
  • CLAUDE.md Writer and Auditor

    lhfer/claude-howto-zh-cn

    Creates, updates or audits a project's CLAUDE.md by analyzing the codebase, drafting for review and flagging anti-patterns, aiming for under 200 lines.

    2.3k GitHub stars~254 tokensUpdated 2 mo ago
    Auto-check passed
  • Code Review Specialist

    lhfer/claude-howto-zh-cn

    Structured code review across security, performance, code quality and maintainability, with a checklist, a finding template and two Python scripts for complexity metrics.

    2.3k GitHub stars~267 tokensUpdated 2 mo ago
    Auto-check passed
  • Fowler-Style Refactoring

    lhfer/claude-howto-zh-cn

    基于 Martin Fowler 方法论做系统化重构。Use when users ask to refactor code, improve structure, reduce technical debt, clean up legacy code, or improve maintainability.

    2.3k GitHub stars~156 tokensUpdated 2 mo ago
    Auto-check passed
  • Brand Voice Guide

    lhfer/claude-howto-zh-cn

    Keeps marketing copy and customer messages in one consistent brand voice, using a defined mission, tone, writing rules and lists of preferred and avoided terms.

    2.3k GitHub stars~178 tokensUpdated 2 mo ago
    Auto-check passed

Categories

Questions about Claude Code Lesson Quiz

What does Claude Code Lesson Quiz do?

Runs a ten-question interactive quiz on one lesson of a Claude Code tutorial, scores it, and points out the weak spots with a review of missed questions. md is in Chinese and covers a quiz for a single lesson from a ten-lesson Claude Code tutorial: slash commands, memory, skills, subagents, MCP, hooks, plugins, checkpoints, advanced features and the CLI. It is not for assessing the whole tutorial, which another skill handles, or for just explaining a topic.

When should I use Claude Code Lesson Quiz?

Claude Code Lesson Quiz fits situations like: testing your understanding of one Claude Code tutorial lesson; taking a pre-test before studying a lesson, or a mastery check after; getting a scored result with the weak topics listed; practicing a topic such as MCP, hooks or skills with preset questions.

How do I install Claude Code Lesson Quiz in Claude Code?

Run `npx skills add lhfer/claude-howto-zh-cn --skill lesson-quiz -a claude-code`. Or copy the skill folder (.claude/skills/lesson-quiz in lhfer/claude-howto-zh-cn) into .claude/skills/lesson-quiz in your project. Claude Code loads it when a task matches its description.

How do I install Claude Code Lesson Quiz in Codex?

Run `npx skills add lhfer/claude-howto-zh-cn --skill lesson-quiz -a codex`. Or copy the skill folder (.claude/skills/lesson-quiz in lhfer/claude-howto-zh-cn) into .agents/skills/lesson-quiz in your project. Codex loads it when a task matches its description.

Can I use Claude Code Lesson Quiz in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lhfer/claude-howto-zh-cn --skill lesson-quiz -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lesson-quiz, .gemini/skills/lesson-quiz, .github/skills/lesson-quiz and .opencode/skills/lesson-quiz in your project.

What does Claude Code Lesson Quiz need to run?

SKILL.md names no scripts, command-line tools or credentials: Claude Code Lesson Quiz is instructions for the agent only. Our summary lists: The tutorial repository with its lesson folders from 01-slash-commands to 10-cli.

Does Claude Code Lesson Quiz access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Claude Code Lesson Quiz safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Claude Code Lesson Quiz use?

Claude Code Lesson Quiz is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Claude Code Lesson Quiz use?

About 781 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Claude Code Lesson Quiz?

Skills that share tags, products or a category with Claude Code Lesson Quiz: DeepTutor CLI (HKUDS/DeepTutor, 41k stars), AI Engineering Placement Quiz (rohitg00/ai-engineering-from-scratch, 66k stars), Codebase to Course (zarazhangrui/codebase-to-course, 5.7k stars) and AI Engineering Phase Quiz (rohitg00/ai-engineering-from-scratch, 66k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Claude Code Lesson Quiz?

lhfer (a GitHub user) maintains it in lhfer/claude-howto-zh-cn, which has 2,307 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on August 6, 2026.

Source: lhfer/claude-howto-zh-cn on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.