textbook-exercises

textbook-exercises is a skill for Claude Code from cabbage2000-lab/textbook-writer-skills. It costs 149 tokens per session (2,123 once invoked), scanned A, original, MIT.

A tool for creating verified science, technology, engineering, and mathematics exercises with Bloom-level labels. It produces worked examples, guided practice with hints, and independent problems with answers.

In plain words
What is it for?
Generate and verify exercises for a textbook chapter or a standalone STEM topic, matched to a learner level and requested difficulty.
Why use it?
It reduces calculation errors by checking each computational answer before the exercises are delivered.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the textbook-writer plugin — 5 skills shipped together

Good fit Generate and verify exercises for a textbook chapter or a standalone STEM topic, matched to a learner level and requested difficulty.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cabbage2000-lab/textbook-writer-skills/textbook-exercises
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 cabbage2000-lab/textbook-writer-skills --skill textbook-exercises
Clone the repo
git clone --depth 1 https://github.com/cabbage2000-lab/textbook-writer-skills

Made for: Claude Code.

Or install textbook-writer, the plugin that ships this one along with the rest of its 5 skills.

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 textbook-exercises

README.md
[![agentmods](https://agentmods.dev/badge/skills/cabbage2000-lab/textbook-writer-skills/textbook-exercises/github.svg)](https://agentmods.dev/skills/cabbage2000-lab/textbook-writer-skills/textbook-exercises)
Your own site
<a href="https://agentmods.dev/skills/cabbage2000-lab/textbook-writer-skills/textbook-exercises"><img src="https://agentmods.dev/badge/skills/cabbage2000-lab/textbook-writer-skills/textbook-exercises/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 textbook-exercises

Your own site · 80×15
<a href="https://agentmods.dev/skills/cabbage2000-lab/textbook-writer-skills/textbook-exercises"><img src="https://agentmods.dev/badge/skills/cabbage2000-lab/textbook-writer-skills/textbook-exercises.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 149 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,123 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00149 $0.02123
Opus 5.5 $0.00060 $0.00849
Sonnet 5.5 $0.00030 $0.00425
Haiku 4.5 $0.00015 $0.00212

Measured 8d ago against content hash 66ab0ec07075, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

textbook-exercises scanned grade A with 0 findings 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 8d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/textbook-exercises/SKILL.md · 55 lines

How it starts

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

textbook-exercises

生成三类题(示范例题/引导练习/独立习题),每道题带 Bloom 层级标注,每道题的答案都经过验证才输出。学科无关的设计与验证纪律见 references/exercise-design.md;本次出题的题型集与每型的验证手段取自输入契约 学科档案 指定的档案第 2 节(规格与索引见 ../textbook/references/subject-profile-spec.md)。

作者提供现有材料时,按 ../textbook/references/source-material-workflow.md 第 3 节从指定片段出题;材料中的现成答案只作为待核对象,不能代替本 skill 的验证。

何时不触发

  • 题型在所用档案第 2 节里没有对应验证手段的(如 stem 档案下的文科论述题、案例分析题)——按 exercise-design.md 第 7 节反模式 5 处理:改出档案内最接近的题型(stem 档案下改概念辨析题)并在输出中说明替换
  • 组卷/试卷排版(本 skill 只产题目内容)
  • 与教材无关的一般性问答

两种调用模式

  • 被 textbook-chapter 调用(常规):输入 = 契约 {章上下文, 题目计划, 术语表, 学科档案, 素材片段[]}(字段定义见 ../textbook/references/handoff-contract.md 第 2 节)。按题目计划逐条生成,不多不少;无素材时传空数组。

  • 独立触发:一轮问清 {主题, 读者水平, 三类题各要几道, 期望 Bloom 层级分布}(用户已说明的不重复问);按主题自行判定学科档案(索引见 subject-profile-spec.md 第 5 节,找不到匹配项按该文档第 7 节处理:说明将按最接近的档案处理并指出差异),并在输出开头说明用了哪份档案;术语自拟并保持内部一致;编号中的章号默认取 1,用户指定章号则从之。

    独立素材出题时直接读取用户已给的可访问材料,只追问缺失的素材位置或确实影响出题的条件。先给每份材料编来源 ID,再按来源段落提取 素材片段[];输出题目时沿用同一 ID 和原文位置。无法访问原文时不装作已读。可指定“仅基于素材”,此时题面内容不得超出材料覆盖范围,覆盖不足就说明可出的题量或层级限制。

生成流程(每道题走完 1–4 才算完成一道)

  1. 设计题面:题型从档案第 2 节的题型集里选(表外的题型不出,见"何时不触发"),支撑纪律按 references/exercise-design.md 第 4 节,具体教学动作按档案第 4 节;对照题目计划的主题与 Bloom 层级,层级判定标准查 ../textbook-outline/references/bloom-levels.md 第 4 节(同题多问取最高层,歧义就低不就高;六层对照标尺在档案第 3 节)。 素材模式下,涉及特定引文、案例或统计数值的题干附素材 ID 与原文位置,题目能回指到实际读过的片段;素材不足时不虚构细节。

  2. 同步写完整解答:示范例题 = 逐步推导每步一行理由;引导练习 = 提示阶梯(提示 1 方向 → 提示 2 关键步骤)+ 完整解答;独立习题 = 参考答案或含关键中间结果的解题路径。禁止先攒题后补答案。

  3. 验证(红线,不可省略):到档案第 2 节查该题型的「验证手段」列,照它执行;执行不了时照同一行的「无法验证时的降级」列处理,不自行发明第三种做法。两条与学科无关的硬纪律:

    • 验证必须走与解答不同的路径——沿同一条路径重走一遍,重复的是同一个错误,等于没验证;
    • 档案里每型的「验证手段」列都非空,即没有任何题型可以跳过验证(spec 第 2 节)。
  4. 处理验证结果:核对一致 → 标 ✅ 已验证(<方式>);不一致 → 修题或修解答后重新验证;连续 2 次验证失败 → 弃题换题。手段与降级路径都走不通(如开放性探究题)→ 标 ⚠️ 需作者确认(<原因>),绝不假装已验证。

Read the full file on GitHub · 55 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago Changed · +6 lines · -2 tokens per session 66ab0ec07075
  2. 1mo ago Changed · +4 lines · +30 tokens per session dfb57f4464a4
  3. 1mo ago First seen · 45 lines · 121 tokens per session scan A 98c053124391

Subscribe to this mod's changes

textbook-exercises is a skill published in the GitHub repository cabbage2000-lab/textbook-writer-skills (39 stars, last pushed 9d ago), licensed MIT. It adds 149 tokens to every session and 2,123 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

understand-explain

Use when you need a deep-dive explanation of a specific file, function, or module in the codebase.

Egonex-AI/Understand-Anything · 27 tokens

founder-coach

Personal leadership development for founders and first-time CEOs. Covers founder archetype identification, delegation frameworks, energy management, CEO calendar audits, leadership style evolution, blind spot identification, imposter syndrome, founder mental health, and succession planning. Use when a founder feels…

alirezarezvani/claude-skills · 101 tokens

baoyu-comic

A tool for creating original educational comics that explain knowledge or ideas through multiple illustrated panels. It supports different art styles and tones and can create several comics in one batch.

JimLiu/baoyu-skills · 61 tokens

eli5

WHAT: Explains a codebase, a folder, a feature, a command or a pull request to someone who knows nothing about it, as a PR Lens canvas whose walkthrough builds the picture one part at a time. WHEN: /eli5 , or asked to explain code simply, for a beginner, a new hire, a non-engineer, or 'like I'm five'. KEYWORDS: eli5…

coldteadotai/pr-lens · 105 tokens

model-prompt-pack

Use when asked to write prompts for image-to-3D or text-to-3D tools, generate 3D models of a topic's parts, plan the assets for a 3D explorer, or build a labelled parts list with sources. Produces prompts for image-to-3D tools, one per object, plus a parts list for labelling in which every label names a trusted…

mohitagw15856/pm-claude-skills · 104 tokens

explorer-pipeline

Use when asked to make an interactive 3D explorer of a topic from start to finish, go from a topic to a clickable 3D learning page, or run the whole 3D explorer process. Produces a staged run of explorer-interface-brief, model-prompt-pack and explorer-viewer-builder in order for one topic, with the hand-offs between…

mohitagw15856/pm-claude-skills · 97 tokens