textbook

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

A workflow for writing a complete, multi-chapter textbook or structured course material. It plans the learning goals and chapter sequence, writes chapters with exercises, tracks progress, and performs a final review.

In plain words
What is it for?
Use it to create a full textbook or course, including its design, outline, chapters, exercises, terminology, review materials, and final performance task.
Why use it?
It keeps a large educational project organised and resumable, so interrupted work can continue from its saved progress. It also connects chapters to assessments and learning outcomes.

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 Use it to create a full textbook or course, including its design, outline, chapters, exercises, terminology, review materials, and final performance task.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cabbage2000-lab/textbook-writer-skills/textbook
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
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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cabbage2000-lab/textbook-writer-skills/textbook"><img src="https://agentmods.dev/badge/skills/cabbage2000-lab/textbook-writer-skills/textbook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 176 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,271 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.00176 $0.04271
Opus 5 $0.00088 $0.02135
Sonnet 5 $0.00035 $0.00854
Haiku 4.5 $0.00018 $0.00427

Measured 6d ago against content hash 76520b4644aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

textbook 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 6d 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/SKILL.md · 99 lines

How it starts

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

textbook

写教材的主 skill(orchestrator):驱动五阶段流程,管理 .progress.json 状态实现中断可续,在阶段间传递交接契约,最终交付一本有主线、有梯度、可评估的多章节 Markdown 教材。契约、落盘布局、状态机的权威定义见 references/handoff-contract.md(下称"契约文档")。

学科差异(题型集、验证手段、认知动词、章内段义)不在本 skill 里分支,收拢在学科档案中:阶段 1 判定一次,落盘为 .progress.jsonsubject_profile,逐章原样透传。规格与索引见 references/subject-profile-spec.md

何时不触发

  • 单篇教程/图文教程(用 tutorial-writer)
  • 只写一章或一篇深度文章(用 textbook-chapter)
  • 只要例题/习题(用 textbook-exercises)
  • 只做大纲不写正文(直接用 textbook-outline)

工作流总览

阶段 名称 执行者 产出 Gate?
1 教学定位确认 textbook-outline 学科/读者起点/深度/篇幅 → 00-教材设计.md 否(一轮提问)
2 UbD 预期结果设计 textbook-outline UbD 五件套 是(核心 gate)
3 评估与章节设计 textbook-outline 章节树+例题计划+梯度报告+表现性任务 是(次要 gate)
4 章节正文编写 textbook-chapter(逐章) NN-章.md × N + 术语表增量
5 审核定稿 本 skill 自检报告 + 00-前言.md + 99-表现性任务.md + 交付摘要

gate 之外的阶段只打印一行进度(格式见契约文档第 5 节),不打断作者。

启动与重入(每次触发的第一件事)

  1. 确定教材项目目录:用户指定则用之;未指定则询问一次(默认 ./<教材名>/)。

  2. .progress.json

    • 不存在 → 全新项目:确认教材名 → 建目录 → 初始化 .progress.json(schema 见契约文档第 4 节,current_stage=1,gates 全 false,answer_layout="separate"subject_profile 待阶段 1 判定后补写)→ 从阶段 1 开始;
    • 存在 → 按契约文档第 4 节重入规则表定位续点,打印续写行:阶段 4 用 ▶ 续写:<教材名>,从第 N 章继续,其余阶段用 ▶ 续写:<教材名>,从阶段 N 继续;同时读出 subject_profileanswer_layout 供后续透传,字段缺失时按存量语义兜底并在续写行后各补一句说明,不阻塞:subject_profile 缺失(v0.3.x 及更早)按 stem 处理、补「按 stem 学科档案续写」;answer_layout 缺失(v0.4.x 及更早)按 inline 处理、补「按内嵌答案排版续写」——已写的章不迁移答案,一本书两种排版比统一用旧排版更糟。特别地:current_stage=2/3 且对应 gate 未确认时,从 00-教材设计.md 读出已有产出(阶段 2 为五件套、阶段 3 为章节树/例题习题计划/梯度报告/表现性任务四项)重新呈现并等确认,不推倒重做;作者提出修改时委托 textbook-outline 执行修改与再确认循环。
  3. 状态纪律.progress.json 只由本 skill 读写(子 skill 一律不碰);每完成一个阶段、每完成一章立即更新写盘,绝不批量延迟。

阶段 1–3:委托 textbook-outline

打印 ▶ 阶段 1/5:教学定位确认(阶段 2、3 进入时同格式)。

使用 Skill 工具调用 textbook-outline(传入 {教材项目目录, 教材名});若 Skill 工具不可用或未注册,直接读取 ../textbook-outline/SKILL.md 并严格遵循其指令执行。

Read the full file on GitHub · 99 lines

Files

What ships with it

5 files 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. 6d ago Changed · +4 lines · +46 tokens per session 76520b4644aa
  2. 10d ago First seen · 95 lines · 130 tokens per session scan A 6353dd314a0e

Subscribe to this mod's changes

textbook is a skill published in the GitHub repository cabbage2000-lab/textbook-writer-skills (27 stars, last pushed 7d ago), licensed MIT. It adds 176 tokens to every session and 4,271 once invoked, about $0.0009 per session on Opus 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