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.00159 | $0.04716 |
| Opus 5.5 | $0.00064 | $0.01886 |
| Sonnet 5.5 | $0.00032 | $0.00943 |
| Haiku 4.5 | $0.00016 | $0.00472 |
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 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.
How it starts
The opening of the file, as written. The whole thing — 107 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。
作者提供现有素材或要求修订项目内已完成章时,按 references/source-material-workflow.md 登记、切片和回写;无素材项目不增加材料提问或文件。素材仅为内容依据,不改变双 gate、答案验证和状态单一写者纪律。
何时不触发
- 单篇教程/图文教程(用 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 一律不碰);每完成一个阶段、每完成一章立即更新写盘,绝不批量延迟。
What ships with it
7 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.
- 8d ago Changed · +8 lines · -17 tokens per session 06f0e478a2b9
- 1mo ago Changed · +4 lines · +46 tokens per session 76520b4644aa
- 1mo 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 (39 stars, last pushed 9d ago), licensed MIT. It adds 159 tokens to every session and 4,716 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.
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.
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…
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.
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…
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…
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…