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.
npx skills add cabbage2000-lab/textbook-writer-skills --skill textbookgit clone --depth 1 https://github.com/cabbage2000-lab/textbook-writer-skillsWrote 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.
[](https://agentmods.dev/skills/cabbage2000-lab/textbook-writer-skills/textbook)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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.json 的 subject_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 节),不打断作者。
启动与重入(每次触发的第一件事)
-
确定教材项目目录:用户指定则用之;未指定则询问一次(默认
./<教材名>/)。 -
找
.progress.json:- 不存在 → 全新项目:确认教材名 → 建目录 → 初始化
.progress.json(schema 见契约文档第 4 节,current_stage=1,gates 全 false,answer_layout="separate",subject_profile待阶段 1 判定后补写)→ 从阶段 1 开始; - 存在 → 按契约文档第 4 节重入规则表定位续点,打印续写行:阶段 4 用
▶ 续写:<教材名>,从第 N 章继续,其余阶段用▶ 续写:<教材名>,从阶段 N 继续;同时读出subject_profile与answer_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 执行修改与再确认循环。
- 不存在 → 全新项目:确认教材名 → 建目录 → 初始化
-
状态纪律:
.progress.json只由本 skill 读写(子 skill 一律不碰);每完成一个阶段、每完成一章立即更新写盘,绝不批量延迟。
阶段 1–3:委托 textbook-outline
打印 ▶ 阶段 1/5:教学定位确认(阶段 2、3 进入时同格式)。
使用 Skill 工具调用 textbook-outline(传入 {教材项目目录, 教材名});若 Skill 工具不可用或未注册,直接读取 ../textbook-outline/SKILL.md 并严格遵循其指令执行。
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.
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.
- 6d ago Changed · +4 lines · +46 tokens per session 76520b4644aa
- 10d ago First seen · 95 lines · 130 tokens per session scan A 6353dd314a0e
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.
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.
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.
skill-creation-walkthrough
Step-by-step guide for creating your own Claude Skills, from deciding whether a skill is the right tool to writing the SKILL.md file, structuring reference material, and making it trigger reliably. Use when you want to package a workflow, framework, or repeated task into a reusable Skill, when an existing skill is not…
elixir-idioms
OTP/BEAM patterns and Elixir idioms — GenServer, Supervisor, Task, Registry, pattern matching, with chains, pipes. Use when designing processes or debugging BEAM issues.
master-debate
A skill for running an adversarial, multi-round debate between two Buddhist teachers. It is designed for questions where the teachers argue from different positions.
master-atisha
A reference-based assistant for Atisha and the Kadam school, an early Tibetan Buddhist tradition. It explains the staged path to awakening and can answer in Atisha’s historical teaching style.