course-style
它能做什么
这项技能是 AI Engineering from Scratch 课程的样式参考。适合希望新的页面、图示和手册与课程风格保持一致的作者和设计师。
适用场景
- ✓当你为课程编写或审查页面、卡片或图示时。
- ✓当你需要浅色或深色模式的精确颜色值时。
- ✓当你需要对照简明技术英语规则检查文字时。
技能链接
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/course-style/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请让这个新的课程页面与课程风格保持一致,使用正确的颜色,以及图示的标签格式。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能提供浅色和深色主题的颜色变量、字体栈、标签格式和布局规则。它还提供一组简明的英文写作规则,以及减少动画等无障碍默认设置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Course style
This skill is the reference layer for the AI Engineering from Scratch look and voice. Other craft skills point here for exact values: blueprint-figure, motion-figure, isometric-explainer, and write-manual. Use it with Claude, Cursor, Codex, OpenClaw, Hermes, or any agent that reads SKILL.md. It holds no drawing method of its own. It tells you which colour, font, label, spacing, and word to use, and how to check each one.
When to use
- You write or review a page, a card, a figure, or a manual for the course.
- You need a token value for light or dark mode.
- You need the label format for a figure, a sub-figure, or a widget.
- You need to check prose against the plain technical English rules.
- You add motion and need the timing, the easing, and the reduced motion behaviour.
When not to use
- You draw a static SVG figure. Use blueprint-figure, which cites this skill.
- You build an animated or slider figure. Use motion-figure.
- You build an isometric machine explainer. Use isometric-explainer.
- You write a full manual. Use write-manual for the structure and the audit.
- The page belongs to a different product with its own brand.
Method
- Set the theme. Put the light tokens on
:rootand the dark tokens on[data-theme="dark"]. Copy them fromreferences/tokens.md. - Pick the token set. Pages use the site tokens. Manual figures use the
--m-tokens. - Load the three fonts with the exact link in
references/typography.md. Use the stacks as given. - Give each figure a label in the format from
references/labels-and-layout.md. - Build cards and figure frames with the measurements in
references/labels-and-layout.md. - Add motion only with the motion tokens. Add the reduced motion block from
references/accessibility.md. - Write the prose. Then check every line against
references/plain-english.md. - Run the checklist below. Fix each failure before you finish.
Rules
Colour
- Use one accent per page:
--blueprint(#3553fflight,#6b8effdark). Status tokens and manual figure hues are the only other colours. - Write every colour as a CSS variable. A hex value is allowed only as the default inside
var(). - Define every token in both themes. A token without a dark value is a defect.
- Put body text in
--inkor--ink-softonly. - Do not use
--ink-muteor--warnfor body text. Their contrast on the paper is below 4.5:1. - Keep the four fixed figure hues: rose for failure, grey for outside, amber for lifecycle, teal for durable state.
- Use no gradients except the paper dot grid and the dashed rule. Use no rounded corners on cards or frames.
Type
- Headings use the display font, weight 400, uppercase, letter spacing 0.02em, colour
--blueprint. - Body text uses the serif at 18px with line height 1.62.
- Labels, meta lines, and code use the mono font, uppercase for labels, letter spacing 0.06em to 0.16em.
- Figure text is at least 11 units at a 640-unit width.
Labels
- A course figure number is
FIG_plus three digits, such asFIG_005. Numbers are never reused. - A sub-figure adds a dot and a capital letter:
FIG_005.A. - Separate label parts with a middle dot and one space on each side:
FIG_001 · FORWARD PASS. - A manual figure is
Fig. <part>.<n>, such asFig. 4.1. Its id isfig-4-1.
Prose
- Sentences have at most 25 words. Instructions have at most 20 words and use the imperative.
- A paragraph has one topic and at most six sentences.
- Use no em dashes, no en dashes, no semicolons, and no contractions.
- Never write "may". Write "can", or state the condition.
- Use none of the banned words in
references/plain-english.md. - Code spans, fenced code, quotes, and citations are exempt.
Motion and access
- Use only the four durations: 160, 180, 220, and 250 ms.
- Page reveals start 8px away at opacity 0 and use
--ease-out. Modals start 14px lower at scale 0.985. - Pressed buttons scale to 0.97.
- Under
prefers-reduced-motion: reduce, remove transitions and animations and show the final state. - Every focusable control shows a 2px solid
--blueprintoutline at a 2px offset. - Touch targets in menus and figure controls are at least 44px tall.
Check before you finish
- Every colour is a
var(--token), and each token has a light and a dark value. - The page uses one accent colour.
- No body text uses
--ink-muteor--warn. - Fonts load from the one Google Fonts link, and the stacks match `referenc
常见问题
它涵盖深色模式吗?
涵盖。它为浅色和深色主题分别提供变量值。
它包含写作规则吗?
包含。它包含课程文字的简明技术英语规则。
它会自己绘制图示吗?
不会。绘制由其他技能负责,它们会使用这些样式规则。
详情
作者的原始描述
The shared visual and writing reference for AI Engineering from Scratch pages, figures, and manuals. Use it for light and dark colour tokens, font stacks, FIG_ label formats, and card layout. Use it for the plain technical English rules and the accessibility and reduced motion defaults. Trigger phrases: "course style", "blueprint palette", "course tokens", "FIG label", "plain technical English", "check my prose", "course fonts", "dark mode tokens"
热度
- GitHub 星标
- 76k
- 排名
- #2616
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
blueprint-figure
76k帮你的智能体为课程、README 和手册绘制清晰的静态 SVG 图示,展示系统中真实部件之间的连接关系。
build-project
76k充当项目导师,每次带你完成一个实践 AI 项目阶段,提供提示和评分,但不给出完整答案。
check-understanding
76k对 AI Engineering from Scratch 课程中已完成的阶段进行小测验,让你在进入下一阶段前检查自己学到了什么。
claude-certification
76k在 AI Engineering from Scratch 课程的 Claude 认证路线中充当分步导师,提供课程、实验和练习考试。