University Coursebook logo

University Coursebook

Organization
walkinglabs
university-coursebook

生成超过 40 页的系统讲解课本(LaTeX/PDF),面向高中基础读者,完整展开前置知识、核心机制、手算、实操与附录四件套。适用于从零系统学习 AI4S、具身智能、计算化学等主题;约 20 页的快速阅读需求使用 university-textbook。包含难点类比、引用核实与中文 LaTeX 排版规范。

Overview

Publisherwalkinglabs
Repositoryuniversity-skill
Skill nameuniversity-coursebook
Stars
42
Forks
5
Bundled files
4
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by walkinglabs on GitHub. Read the source before you install it.

Installation

Install the University Coursebook AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/walkinglabs/university-skill/tree/main/skills/university-coursebook
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/walkinglabs/university-skill.git /tmp/university-skill
mkdir -p .claude/skills
cp -r /tmp/university-skill/skills/university-coursebook .claude/skills/university-coursebook
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable University Coursebook in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads University Coursebook on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so University Coursebook is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

University Coursebook · 超过 40 页系统讲解

默认交付超过 40 页(>40)的系统课本,充分解释前置知识与机制,配套完整案例、练习和附录。实际页数以编译 PDF 为准,不用留白或重复内容凑页;用户指定篇幅时以其要求为准。

面向从零入门的长篇课程:类比只给难点,正文保持克制的大学讲义语气,并以可编译 PDF 完成交付。

这个技能解决什么问题

写硬核技术长文时最容易犯的三个错:

  1. 默认读者有背景知识——上来就是「注意力机制」「$\mathrm{SE}(3)$ 等变」「扩散模型」,高中生(以及跨领域的聪明人)在第 3 页就丢了;
  2. 一篇文章塞进一个巨型 .tex——写到第 800 行时上下文爆掉、结构失控、改一处要通读全文;
  3. 编译踩坑重复踩——equation 里换行、\texttt 长 DOI 溢出、伪代码包错环境……每一篇都要重新debug一遍。

本技能把已在 4 篇文章上验证过的工作流、教学规范、编译硬约束固化下来,让新文章直接进入「写内容」而不是「调格式」。


一、交付标准(硬指标)

维度标准
篇幅超过 40 页(>40)(A4,通常 42--50 页,按主题深度继续展开;以编译后的 PDF 实测页数为准)
读者假设只读到高中,不假设任何领域背景
拼装主文件 + parts/ 分卷目录 + \input
编译tectonic 一次通过,零致命错误,显著 Overfull(≥10pt)清零
类比密度全文 15--25 个「生活类比」盒,只覆盖难点概念,且允许多个难点讲完后集中打包在一个盒里(一个盒可含 2--4 个场景)
附录必须含四件套:阶梯数学 / 名词速查表 / 自测题与答案 / DOI 文献清单(若主题涉及论文)

二、工作流(分卷流水线)

① 定角度  →  ② 建任务清单  →  ③ 建 parts 目录  →  ④ 逐 part 写
        →  ⑤ 主文件 \input 拼装  →  ⑥ tectonic 编译 + 自修复  →  ⑦ 交付

① 定角度:先问,再写

主题往往是宽泛的(「AI4S」「世界模型」「具身智能 VLA」)。写错方向 = 十几页白费,所以动笔前用 AskUserQuestion 锁一个角度,给 3--4 个选项,把推荐项放第一个并标注「(推荐)」。

推荐顺序的原则:优先选与已有文章互补、且数学/故事性最浓的那条线。

②③ 建任务与目录

bash
mkdir -p <文章目录>/<主题>_parts

用 TaskCreate 建 2--3 个任务:撰写长文 / 编译自修复 / (可选)验证手算数字。

④ 逐 part 写(本技能的核心节奏)

每个 part 一个 Write 调用,250--320 行。不要试图一次写完 2000 行。

推荐分卷(6 个 part):

文件内容目标行数
p1_basics第 0 章开场 + 最底层的 2--3 个先修概念~250
p2_<核心对象>主题主角是什么、它要解决什么问题~290
p3_<方法/工具>工具箱与方法学~230
p4_mechanism机制细节,逐层拆解~290
p5_handson手算 + 可运行代码~220
p6_frontier全景对比、避坑、附录四件套~320

⑤ 主文件拼装

主文件只放 preamble + 目录 + 一串 \input,不放正文(见 assets/latex-template.tex)。

⑥ 编译与自修复

bash
cd <文章目录> && tectonic -X compile <主文件>.tex --outdir . > /tmp/x.log 2>&1; echo "EXIT=$?"
grep -E "Missing \\\$|Undefined control|! LaTeX|! Package|Giving up|unrecoverable|Runaway" /tmp/x.log
grep "Overfull" /tmp/x.log | grep -vE "\([0-9]\.[0-9]+pt|\([0-9]pt\)"   # 筛出 ≥10pt 的显著溢出

页数码:PDF 用压缩对象流,grep 不到,需解压统计:

python
import re, zlib
data = open("<主文件>.pdf", "rb").read()
c = 0
for m in re.finditer(rb'stream\r?\n(.*?)\r?\nendstream', data, re.S):
    try: dec = zlib.decompress(m.group(1))
    except: continue
    if b'/Type' in dec and b'Page' in dec:
        c += len(re.findall(rb'/Type\s*/Page\b(?!s)', dec))
print("pages:", c)

三、教学规范(这是「高中生能读懂」的关键)

1. 类比只覆盖难点,且可集中打包出现(2026-08-29 修订)

原则 A:类比是稀缺资源,只给真正难的概念。 读者读到高中水平,很多概念本身不构成理解障碍(如「自由度 = 能独立变化的个数」「坐标系 = 描述位置的方法」),这类概念用一两句朴素的话定义即可,不要给类比盒。类比盒只留给那些「不类比就很难抓住直觉」的难点,例如:维度灾难/自由度爆炸、欠驱动与腱驱动、误差累积、动作分块、扩散去噪、马尔可夫性、稀疏奖励、折扣因子、探索 vs 利用、PPO 小步更新、域随机化、摩擦锥、卡尔曼滤波、接触不连续。检验标准:这个概念,一个高中生第一次见会不会懵?不会懵就不配拥有类比盒。

原则 B:多个难点讲完后,集中打包类比一次。 类比盒不要一个难点跟一个(否则全文被橙色盒子打断,节奏差)。正确节奏是:连续讲完 2--4 个难点后,用一个 tipbox(内部用编号或分段)一次性给出这几个难点的生活类比。例如讲完模仿学习的三个方法(行为克隆/动作分块/扩散)后,用一个「模仿学习三连」盒:复读机游戏(误差累积)、背课文整段背(动作分块)、雪花照片倒放(扩散去噪)。读者能在一次阅读里横向对比三个概念,效果优于三个分散的盒子。同一个盒子里多个场景要明确标注「场景一/场景二/场景三」或分段,防止混淆。

原则 C:tipbox 标题必须是平静的内容短语或意象,禁止元描述(2026-08-29 修订)。 标题写「复读机、背课文与雪花照片」「端稳杯子,闭眼摸鼻」「指尖顶住桌面的瞬间」这类有画面感的名词短语,像讲义里的小标题。禁止写「生活类比 · X」「集中类比 · X(N 个难点一次打包)」这种暴露写作策略的元描述——「打包」「类比」是作者的动作,不是内容,读者一眼就看出是 AI 写作习惯。同理,正文里禁止「我们会把类比集中打包」「一个加餐小节」这类自我说明。

已验证好用的类比库(可直接复用或照此风格新造):

抽象概念类比
原子/化学键乐高积木与连接点
能量最低原理球滚下坡 / 站着比坐着累
活化能翻山 vs 走隧道
形状决定功能钥匙与锁
构象搜索爆炸试遍所有组合要多久(宇宙年龄的 $10^{18}$ 倍)
同源建模抄作业(没相似题型就崩)
共进化信号双人舞(一人举手另一人必转身)
三角不等式三根木棒能不能围成三角形
等变性看地图(转地图,距离不变、坐标跟着转)
梯度下降蒙眼下山
注意力 Q/K/V火车站接人(心里标准 / 每人举牌 / 携带内容)
扩散模型把照片变成雪花,再学会倒放
反向折叠按图施工;从头设计 = 自己当设计师
自洽性检验建筑图纸丢进计算机做结构仿真
QM/MM 分区修手表:放大镜看机芯,手握表壳
连接原子给切断的水管套堵头
三种嵌入房间里有没有插座/磁铁在影响你
泛函之争两台校准不同的秤,称两袋重量接近的米
两态反应性 TSR两条高度相近的山道,中间有小径互通,还能换道
量子隧穿翻山 vs 直接从山体里穿过去
自由基钟旁边放个已知速度的追赶者,反推运动员用时
选择性来源手够不够得着,比线细不细更关键
质子传递(Grotthuss)传桶救火
解偶联配合失误导致漏水漏电

2. 由简到繁,逐个击破

  • 正文只用初中到高中的数学(勾股定理、二次方程、指数);
  • 所有群论、流形、变分推断、ELBO 等硬核内容一律收进附录「阶梯 2」,并在正文明确标注「第一次读可以跳过」;
  • 每篇(part)末尾必须有 \begin{stepbox}{本篇小结(你已会什么)},用 bullet 列出本篇交付的能力,并以「下一篇我们要……」勾住读者。

3. 第 0 章必须给「全书地图」

用编号列表逐篇说明「这一篇解决什么、读完你能干什么」,让读者在开始前就知道路线。

4. 语气:Stanford 讲义风(2026-08-29 修订)

整体语气要像 Stanford CS 课程的 lecture notes(CS229 / CS231n / CS224n 的讲义):平静、克制、专业。判断标准:把任意一段读给一个聪明的高中生,他应该觉得「这是一本正经教科书在教我」,而不是「一个 AI 在给我讲课」。

禁止清单(AI 腔 / 元叙述 / 口语化):

  • 写作策略自我说明——「我们会把类比集中打包」「三个难点一次打包」「一个加餐小节」「不铺张浪费」「接下来我们看看」「值得一提的是」等谈论「作者自己怎么写」的句子,一律删或改写成内容本身;
  • 「生活类比 ·」「集中类比 ·」等标签前缀(原则 C);
  • 口语化感叹与套话——「很好记」「你可能好奇」「没错」「就是这么简单」;
  • 冗余连接词——「需要注意的是」可删则删;
  • 破折号滥用——连续多个「——」排比,改为陈述句。

允许:交叉引用(「第 X 章会展开」)、optional 标注(「第一次读可以跳过」)、平静过渡句(「先看一个例子」「用五步讲清楚」)。标题一律用内容短语或意象(原则 C)。

5. 手算章节的数字必须真算过

凡声称「手算」的章节,先用 Python 把数字算一遍再写进文章,禁止凭感觉写数字。已验证的数字(如 $k=1400\ \mathrm{s^{-1}} \Rightarrow \Delta G^{\ddagger}\approx13.2$ kcal/mol)才写进正文。


四、附录四件套(缺一不可)

  1. 附录 A · 阶梯 0→1→2:阶梯 0 三句话直觉 / 阶梯 1 手算闭环 / 阶梯 2 严格数学表述(含群与等变性定义、流形扩散、过渡态理论与隧穿校正等)。
  2. 附录 B · 名词速查表:p{3.0cm}p{8.6cm} 两列表,25--35 条,每条一句话解释。
  3. 附录 C · 自测题与答案:8--10 题,配完整参考答案。
  4. 附录 D · 已核实 DOI 文献清单:按主题分 2--5 张表(见下节纪律)。

五、DOI / 引用纪律(学术硬伤防线)

用户明确要求附 DOI 时,绝不能凭记忆写 DOI——编错就是学术硬伤。

  1. 动笔前用 WebSearch 逐条核实关键文献的 DOI;
  2. 从搜索结果里顺手采集同主题的其它已验证 DOI(综述的参考文献列表是金矿);
  3. 在文章开头用 tipbox 声明:「本文引用的全部文献 DOI 均已逐条联网核实(核实日期:YYYY-MM-DD),汇总于附录 D。凡本文未给出 DOI 的条目,均为尚未核实,请读者自行查证后再引用。」
  4. 排版必须用可断行、可点击的写法(见下节编译约束)。

六、编译硬约束(4 篇文章累积的血泪清单)

以下每一条都曾真实导致编译失败或排版溢出。写代码时直接遵守,不要等报错。

致命级(导致 XeTeX 崩溃、PDF 不产出)

#坑正确做法
1数学符号裸用在正文(如 向量场\approx常数)必须包在 $...$ 内
2文件名/代码标识符的下划线写在正文(如 vla_flow_matching)\texttt{vla\_flow\_matching};长词再加 \- 断点
3伪代码命令包进 tcolorbox必须 \begin{algorithm} + \begin{algorithmic}[1],盒子只能放算法外面
4algpseudocode 用全大写 algorithmic 风格用混合大小写:\Require \Ensure \State \Repeat \Until \For \EndFor
5用 \TO该包未定义,写 \For{$i=0$ \textbf{to} $N-1$}
6附录用 \section*{附录…}用 \appendix,其后 \section 自动变 A/B/C
17正文用反引号包裹代码标识符(如 `no_slip`)反引号在正文只是引号字符,含 _ 时报 Missing $;一律写 \texttt{no\_slip}(下划线必须转义)

溢出级(不致命但文字冲出页面)

#坑正确做法
7多行算式写进 equationequation 不支持换行;改用 align + \nonumber(曾溢出 94pt)
8超长 \texttt{...} 无法断行用 \- 插断点;长 DOI/URL 直接用 \href{https://doi.org/<DOI>}{\nolinkurl{<DOI>}}
9窄 p{} 列放长 DOIDOI 列给到 ≥5.9cm;\texttt 换 \nolinkurl 后可从 27 处 Overfull 降到 6 处且全 <10pt
10表格总宽超版心三列预算:0.8 + 7.9 + 5.9 = 14.6cm(版心 16cm),列宽含 \tabcolsep 要留余量
18超过一页容量的长 tabular 跨页(如 40 行名词表)跨页产生 Overfull \vbox(实测 19.5pt);按主题拆成 2 个表,每个 ≤25 行

TikZ 级

#坑正确做法
11并排子图用 xshift + 外层 scale两者复合会算错位置导致图形重叠;改为同一坐标系叠加显示
12\foreach 配 gray!55!white / above left=4pt偶发 TikZ 解析失败;改用显式 \draw 序列 + gray!50 / above left
13方框外单独定位标题文字标题与正文写在同一个 node 的 {} 内,配 text width 防出界
14节点坐标超出 ±5(x)/ ±3(y)配合 scale=0.9 控制,先估算总宽再落笔
19极坐标参数里用 \def 宏(如 +(\ttone:0.9)、arc (0:\ttone:0.9))偶发 Undefined control sequence(\ttone 在极坐标里无法展开);坐标/角度直接写数值或用 {...} 包裹

内容级

#坑正确做法
15中文写入出现乱码(如「要知??药物」)交付前 grep -n "��" 扫一遍
16声称代码「可直接跑通」但本机没装依赖本机无 torch/numpy;要么写成纯标准库可实跑,要么明确标注「参考实现,需 pip install torch」——不要谎称已验证

七、代码章节原则

  • 优先写纯标准库 Python(math 即可),这样能在本机真的跑一遍验证输出,文章中就可以诚实地说「已实跑验证」;
  • 若必须用 PyTorch,标注「参考实现(需 pip install torch),未实跑」,并逐行讲解代码在干什么(讲思路,不讲语法);
  • 代码后必须有逐行讲解和预期输出说明。

八、交付前自检清单

  • 编译后的 PDF 实测超过 40 页?(用户另有篇幅要求时遵从用户要求)
  • EXIT=0,无 Undefined control / Missing $ / Giving up?
  • 显著 Overfull(≥10pt)已清零?
  • 无中文乱码(grep "��")?
  • 类比盒 15--25 个?只覆盖难点、可集中打包(一个盒 2--4 个难点)?每篇末尾都有小结?
  • 简单概念(自由度、坐标系、力矩等直观概念)没有滥用类比盒?
  • 附录四件套齐全?
  • DOI 全部核实过,且用了 \nolinkurl 可断行写法?
  • 手算数字用 Python 验证过?
  • 代码要么能跑(纯标准库)、要么已标注未跑?

九、结构基准

以下条目仅用于对齐结构和篇幅,不依赖作者机器上的外部目录:

文章页数特点
AI4S 蛋白质结构设计课本476 part,附录含名词表与自测题;完整 PDF 见仓库 assets/samples/pdfs/
cyp450_qmmm_masterclass.tex426 part + cyp450_parts/,24 条已核实 DOI,纯标准库可跑代码
ai4s_protein_design_masterclass.tex14单文件版(旧风格),可作反面参照
../university-textbook/—配套技能:偏 LaTeX/顶会伪代码规范;本技能偏「科普化长文 + 分卷拼装」

目录约定

generated_content/
├── <主题>_masterclass.tex          # 主文件(仅 preamble + \tableofcontents + \input 列表)
├── <主题>_parts/                   # 分卷目录
│   ├── p1_basics.tex
│   ├── p2_xxx.tex
│   └── ...
└── <主题>_masterclass.pdf          # tectonic 产物

十、验收指标的两个陷阱(2026-08-29 第 8 篇实测,务必照做)

陷阱一:数字密度会被 TikZ 坐标与代码块撑高

直接用「正文字符里的数字占比」当脱水指标会被严重误导:TikZ 图里满是 (-3.4, 1.1)、minimum width=2.6cm 这类坐标与尺寸,图越多,密度看起来越高。实测同一篇文章:含 TikZ 时密度 7.00%,剥掉 tikzpicture 后只剩 3.69%。

正确测法(验收一律用这个):剥离 tipbox/stepbox/exbox/thinkbox + lstlisting + tikzpicture + tabular 之后,再统计剩余「纯叙事文字」的字数与数字占比。

文章含图代码密度纯叙事密度(正确指标)
蛋白质篇(好评基准)3.67%3.15%
DNA v1(回退)4.35%2.86%
DNA v24.21%1.77%
DNA v37.00%3.69%

基准线:纯叙事密度 3–4%(低于 2% 叙事太空,高于 5% 在堆数字)。 手算/代码章允许单独飙到 10%+,那是章节目使然,不计入整体。

陷阱二:「厚实感」的真实来源是纯叙事字数,不是总页数

配图会挤占散文篇幅。实测蛋白质篇纯叙事 38355 字 / 5 幅图;DNA v3 纯叙事 23515 字 / 11 幅图, 页数却相近(47 vs 48)。读者主观感受到的「厚实」,来自纯叙事字数。

基准线:纯叙事 ≥30000 字(目标 35000+)。 图多导致纯叙事不足时,正确做法是加叙事段落(史料故事、流程故事、案例走查),而不是删图—— 图多从来不是问题,「有图没话」才是。

附:代码验证又抓到一个 bug(重申必须真跑)

sum(p * log2(p/0.25) for p in probs if p > 0) 在 probs 是 dict 时会报 TypeError: '>' not supported between 'str' and 'int'——迭代 dict 得到的是键不是值,必须写 probs.values()。 声称能跑的代码,必须真的跑一遍再写进文章。

本系列各篇的量化成绩(用于对齐基准线,不是模仿对象)

篇目页数图表类比(数字/盒)小结(数字/盒)纯叙事字数纯叙事密度
蛋白质(好评基准)475246 (3.3)9 (7.8)383553.15%
GRN Neural ODE423—————
CYP450 QM/MM423—————
理财入门48112————
托钵僧(人文)44——————
DNA v1(回退)4211237 (5.2)5 (41.6)302912.86%
DNA v2395661 (1.6)6 (0.5)317861.77%
DNA v34811573 (0.9)15 (2.0)235153.69%

只能当量化基准线,绝不能当模仿对象——只对齐数字,内容一律自己新造。

配套资源

这些文件都属于本技能,安装时必须与 SKILL.md 一起保留。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the University Coursebook AI skill do?

生成超过 40 页的系统讲解课本(LaTeX/PDF),面向高中基础读者,完整展开前置知识、核心机制、手算、实操与附录四件套。适用于从零系统学习 AI4S、具身智能、计算化学等主题;约 20 页的快速阅读需求使用 university-textbook。包含难点类比、引用核实与中文 LaTeX 排版规范。

Why use University Coursebook on TypingMind?

Because you install it once and use it with any model. University Coursebook is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install University Coursebook in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/walkinglabs/university-skill/tree/main/skills/university-coursebook. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use University Coursebook?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with University Coursebook?

As many as you like. As long as a model supports skills, you can use University Coursebook with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the University Coursebook AI skill free?

It is published on GitHub by walkinglabs. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇