quiz-mastery

quiz-mastery is a skill for Claude Code, Codex from ssmurfgg04-gif/context-m. It costs 236 tokens per session (2,794 once invoked), scanned A, original, Apache-2.0.

A learning skill for turning study materials into quizzes and tracking how well the learner remembers the material over time.

In plain words
What is it for?
Use it to create quizzes from documents, practise imported question sets, submit answers for grading, and schedule review of learned topics.
Why use it?
It replaces passive rereading with practice questions, scoring, and review based on previous progress.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create quizzes from documents, practise imported question sets, submit answers for grading, and schedule review of learned topics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ssmurfgg04-gif/context-m/quiz-mastery
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ssmurfgg04-gif/context-m --skill quiz-mastery
Clone the repo
git clone --depth 1 https://github.com/ssmurfgg04-gif/context-m

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quiz-mastery

README.md
[![agentmods](https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/quiz-mastery/github.svg)](https://agentmods.dev/skills/ssmurfgg04-gif/context-m/quiz-mastery)
Your own site
<a href="https://agentmods.dev/skills/ssmurfgg04-gif/context-m/quiz-mastery"><img src="https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/quiz-mastery/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for quiz-mastery

Your own site · 80×15
<a href="https://agentmods.dev/skills/ssmurfgg04-gif/context-m/quiz-mastery"><img src="https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/quiz-mastery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 236 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,794 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00236 $0.02794
Opus 5 $0.00118 $0.01397
Sonnet 5 $0.00047 $0.00559
Haiku 4.5 $0.00024 $0.00279

Measured 9d ago against content hash 364345f7d14d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

quiz-mastery scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 15 executable files (scripts/generate_from_material.py, scripts/import_quiz.py, scripts/run_quiz.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run([
skills/quiz-mastery/SKILL.md · 213 lines

How it starts

The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.

测验大师 (Quiz Mastery)

两大核心能力

能力一:从学习资料出题

  1. 用户提供学习资料(.md / .txt / .docx / .pdf / .ppt / .pptx)
  2. 调用 generate_from_material.py 获取知识点提取 prompt
  3. 将 prompt 发给 LLM,得到知识点 JSON
  4. 调用 service.save_knowledge_points() 保存知识点
  5. 调用 run_quiz.py 生成出题 prompt
  6. 将 prompt 发给 LLM,得到题目 JSON
  7. ⭐ 询问用户是否生成网页练习页(见下方"网页练习联动"章节)
    • 用户说要 → 调用 quiz-html skill 生成 HTML 并打开
    • 用户说不用 → 走原流程
  8. 逐题展示给用户,收集答案
  9. 调用 submit_answers.py 提交评分

能力二:从题目文件练习

  1. 用户提供题目文件(.md / .txt / .docx / .pdf / .ppt / .pptx)
  2. 调用 import_quiz.py 获取题目解析 prompt
  3. 将 prompt 发给 LLM,得到标准化题目 JSON
  4. 调用 service.import_questions() 导入题目并创建 session
  5. ⭐ 询问用户是否生成网页练习页(见下方"网页练习联动"章节)
    • 用户说要 → 调用 quiz-html skill 生成 HTML 并打开
    • 用户说不用 → 走原流程
  6. 逐题展示给用户,收集答案
  7. 调用 submit_answers.py 提交评分

何时使用(触发条件)

  1. 用户主动要求:"出几道题"、"测试一下"、"来个小测"、"练习题"、"考考我"
  2. 用户说"复习"、"巩固"、"回顾":直接触发
  3. 基于已有题目文件练习:用户上传题目文件后触发

⚠️ 不处理 study-buddy 的"即时练习"——那条链路由 study-buddy 走外部 exam_take,不调本 skill。

没历史数据时的兜底

当用户说"复习"但 data/user_progress/ 是空的(新用户/没答过题):

  • 不要硬启动复习流程——没数据可复习
  • 主动告诉用户:"还没有可复习的历史数据,要不要先用一份学习资料出题练一下?"
  • 引导用户走"能力一:从学习资料出题"

难度系统

级别 含义 说明
L1 识记 基础记忆和理解,考察概念辨认和基本事实
L2 理解 深层理解,考察概念区分、原理解释和简单应用
L3 应用 综合运用,考察实际场景应用、分析和问题解决
  • 首次出题:强制从 L1 开始
  • 答对当前难度:升一级(最高 L3)
  • 答错当前难度:降一级(最低 L1)

题型分配规则

级别 选择题 判断题 填空题 简答题
L1 70% 30% - -
L2 50% 20% 30% -
L3 40% 20% 20% 20%

出题数量

  • 默认每次出 3 道题(一次对话展示 3 题,用户一次性回答后统一评分)
  • 每轮最多 15 题(用户可要求调整数量)
  • 简答题尽量少出,不自动评分(标记为 needs_review,由外部 LLM/人工评判)

薄弱知识点追踪

  • 标记为薄弱:累计错误次数 ≥ 3
  • 不解除:薄弱知识点只增不减,作为历史档案保留
  • 内部数据保存在 data/user_progress/(错误次数、艾宾浩斯阶段等)
  • 同步到 USER.md 第 3 节"薄弱知识点"(由本 skill 直接写入,来源=quiz-mastery): | 知识点 | 错误次数 | 来源 | 备注 |
    • 已有该知识点 → 更新错误次数
    • 未在表中 → 新增一行

遗忘曲线复习机制

基于艾宾浩斯遗忘曲线,按 1天 → 2天 → 4天 → 7天 → 15天 间隔安排复习:

  • 答对:review_stage +1(推进到下一个间隔)
  • 答错:review_stage 重置为 0(从头开始)
  • 复习推荐包含:即将遗忘的知识点 + 最近 3 天薄弱知识点

Read the full file on GitHub · 213 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 213 lines · 236 tokens per session scan A 364345f7d14d

Subscribe to this mod's changes

quiz-mastery is a skill published in the GitHub repository ssmurfgg04-gif/context-m (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 236 tokens to every session and 2,794 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.