ai-engineering-from-scratch-zh: Skill for Claude Code

.claude/skills/course-style/SKILL.md

course-style is a skill for Claude Code from fancyboi999/ai-engineering-from-scratch-zh. It costs 101 tokens per session (1,628 once invoked), scanned A, original, MIT.

A style guide for technical learning pages, diagrams, and manuals. It defines colours, fonts, layout, labels, clear wording, accessibility, and reduced-motion behaviour.

In plain words
What is it for?
Use it when creating or reviewing course pages, cards, charts, interactive components, or technical prose.
Why use it?
Technical teaching materials can be difficult to read or inconsistent across pages. This guide gives agents shared rules for presenting explanations clearly and accessibly.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Codex; built for openclaw.

This is fancyboi999/ai-engineering-from-scratch-zh's own configuration. It tells Claude Code how to work on ai-engineering-from-scratch-zh itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-engineering-from-scratch-zh configures →

About the project

ai-engineering-from-scratch-zh is a Chinese-language adaptation of a course that teaches AI engineering by implementing algorithms, tools, and agents from the ground up. It is for learners following a 20-stage path across mathematics, machine learning, agent systems, and production topics, with lessons using Python, TypeScript, Rust, and Julia. The catalogue entries provide agent skills and instructions associated with the course.

fancyboi999/ai-engineering-from-scratch-zh · 1,276 stars · on GitHub · aieng-zh.cn

Reuse

Borrowing it

Nothing to install: this file belongs to fancyboi999/ai-engineering-from-scratch-zh. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fancyboi999/ai-engineering-from-scratch-zh/main/.claude/skills/course-style/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fancyboi999/ai-engineering-from-scratch-zh

Made for: Claude Code.

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 course-style

README.md
[![agentmods](https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/course-style/github.svg)](https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/course-style)
Your own site
<a href="https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/course-style"><img src="https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/course-style/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 course-style

Your own site · 80×15
<a href="https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/course-style"><img src="https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/course-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,628 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.
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.00101 $0.01628
Opus 5.5 $0.00040 $0.00651
Sonnet 5.5 $0.00020 $0.00326
Haiku 4.5 $0.00010 $0.00163

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

Security

Grade A, and why

course-style 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 5d 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.

.claude/skills/course-style/SKILL.md · 109 lines

How it starts

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

课程风格

本技能定义从零开始学 AI 工程的外观与表达。blueprint-figure、motion-figure、isometric-explainer 和 write-manual 从这里读取精确值。支持 Claude、Cursor、Codex、OpenClaw、Hermes,以及所有读取 SKILL.md 的 agent。本技能不定义绘图方法,而是规定颜色、字体、标签、间距、用词与检查方法。

何时使用

  • 编写或审查课程页面、卡片、图表或手册。
  • 查找明暗主题 token。
  • 查找图、子图、交互组件的标签格式。
  • 按清晰的技术写作规则检查正文。
  • 添加动态效果,需要确定时长、缓动和减少动态效果的行为。

交给其他技能的情况

  • 静态 SVG 图:使用 blueprint-figure,它会引用本技能。
  • 动画或滑块图:使用 motion-figure。
  • 等距机器讲解:使用 isometric-explainer。
  • 完整手册的结构与审计:使用 write-manual。
  • 其他产品使用自己的品牌规范。

方法

  1. 设置主题。将 references/tokens.md 的浅色 token 放到 :root,深色 token 放到 [data-theme="dark"]。
  2. 选择 token 集。页面使用站点 token,手册图使用 --m- token。
  3. 用 references/typography.md 中的精确链接加载三种字体,原样使用字体栈。
  4. 按 references/labels-and-layout.md 为每张图设置标签。
  5. 按同一文档的尺寸构建卡片和图框。
  6. 动态效果只使用动态 token,并加入 references/accessibility.md 的减少动态效果代码。
  7. 编写正文,然后逐行按 references/plain-english.md 检查。
  8. 完成下方清单,修复每项失败。

规则

颜色

  • 每页只用一个强调色 --blueprint,浅色 #3553ff、深色 #6b8eff。仅状态 token 与手册图的语义色例外。
  • 所有颜色写成 CSS 变量。十六进制值只能作为 var() 的默认值。
  • 每个 token 都要定义明暗两种值,缺少深色值是缺陷。
  • 正文只用 --ink 或 --ink-soft。
  • 正文不用 --ink-mute 或 --warn,它们在纸张色上的对比度不足 4.5:1。
  • 保留四种固定语义色:玫红表示失败,灰色表示范围外,琥珀表示生命周期,青色表示持久状态。
  • 只有纸张点阵和虚线分隔条可用渐变。卡片和图框使用直角。

字体

  • 标题使用展示字体,字重 400,英文大写,字距 0.02em,颜色 --blueprint。
  • 正文使用衬线字体,18px,行高 1.62。
  • 标签、元信息和代码使用等宽字体。英文标签大写,字距 0.06em 至 0.16em。
  • 图宽 640 单位时,图中文字至少 11 单位。

标签

  • 课程图编号为 FIG_ 加三位数字,例如 FIG_005,编号不得重复。
  • 子图加点和大写字母,例如 FIG_005.A。
  • 用中点分隔,两侧各一个空格,例如 FIG_001 · FORWARD PASS。
  • 手册图使用 Fig. <part>.<n>,例如 Fig. 4.1,ID 为 fig-4-1。

正文

  • 英文每句最多 25 词,指令最多 20 词并用祈使句。中文采用短句原则,不套用英文分词计数。
  • 每段只谈一个主题,最多六句。
  • 不用长短破折号、分号和英文缩写形式。
  • 英文不用 "may",改用 "can" 或说明具体条件。
  • 不使用 references/plain-english.md 中的禁用表达。
  • 行内代码、代码块、引用和引文标记不受上述文字检查限制。

动态效果与无障碍

  • 只使用四种时长:160、180、220、250 ms。
  • 页面显现从偏移 8px、不透明度 0 开始,使用 --ease-out。弹窗从下移 14px、缩放 0.985 开始。
  • 按下按钮时缩放至 0.97。
  • 在 prefers-reduced-motion: reduce 下移除过渡与动画,显示最终状态。
  • 每个可聚焦控件使用 2px 实线 --blueprint 轮廓,偏移 2px。
  • 菜单和图表控件的触摸目标至少高 44px。

完成前检查

  • 所有颜色都是 var(--token),每个 token 都有明暗值。
  • 页面只用一个强调色。
  • 正文没有使用 --ink-mute 或 --warn。
  • 字体从统一 Google Fonts 链接加载,字体栈与 references/typography.md 一致。
  • 每张图都有符合 references/labels-and-layout.md 的标签。
  • 标签不使用破折号分隔。
  • 每个过渡都用动态 token,并包含减少动态效果的代码。
  • 每个控件有可见焦点轮廓。菜单行与图表控件至少高 44px。
  • references/plain-english.md 的文字检查无命中。
  • 切换深色主题,再读一遍页面。

Read the full file on GitHub · 109 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. 5d ago First seen · 109 lines · 101 tokens per session scan A 9f81d85fd365

Subscribe to this mod's changes

course-style is a skill published in the GitHub repository fancyboi999/ai-engineering-from-scratch-zh (1,276 stars, last pushed 4d ago), licensed MIT. It adds 101 tokens to every session and 1,628 once invoked, about $0.0004 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-10-20.