跳到正文
cccskills
免费在 GitHub 公开中文介绍

blueprint-figure

为教材、README和手册制作静态SVG图,以日志、规范或代码中的实际系统名称为依据,从九种图形中选择,并用统一的颜色和箭头解释运行机制。

原文查看原文说明

Draws static SVG figures for lessons, READMEs and manuals in the AI Engineering from Scratch look: paper panel, blueprint accent, nine figure kinds, fixed hue meanings, eight arrow styles, and checks for legibility and markup. Trigger phrases: "draw a figure", "blueprint figure", "sequence figure", "state machine figure", "figure for this lesson", "add a diagram to the manual".

AI 评分90分/ 100查看安装方法

适用场景

  • 为README添加系统通信图
  • 在手册中解释状态转换
  • 根据日志或规范绘制数据流
  • 统一教材图形的颜色和箭头

中文介绍

功能

blueprint-figure 为教材、README和手册制作解释系统机制的静态SVG图。可从通信时序、数据流、状态转换、层级结构等九种类型中选择,使用日志、规范或代码中的实际名称绘图。每张图表达一个主张,颜色和八种箭头样式具有统一含义。

适用场景

适合将仅靠文字难以理解的流程或结构,变成读者可以逐步查看的图,也可用于统一多份教材的图形表达。会检查字号、文字重叠和说明文字,并准备注明来源、解释阅读顺序的图注。

使用示例

  • “请根据这些通信日志,制作放入README的时序图。”
  • “请使用规范中的状态名称绘制状态转换图。”
  • “请用SVG解释这份教材的数据处理流程。”

注意事项

需要能确认实际名称的资料。图形基于附带的 Node 脚本生成,SVG与生成脚本一同保存。还会转换为PNG,检查原宽度及一半宽度下的可读性。不适用于动画、交互图或包含大量数值的图表。无需相关技能 course-style 也能单独使用。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

客观评估

AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。

指令清晰度能否看出何时使用、做什么
A良好明确说明教材和README中静态SVG图的用途及不适用范围。
步骤具体性步骤、输入输出和示例是否具体
A良好规定十步制作流程、九种图形、尺寸、箭头样式和检查方法。
安全性发送数据、删除文件、执行命令等是否有说明
A良好明确说明运行并保存生成脚本,同时禁止SVG内嵌脚本和链接。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足使用 figure.mjs 并转换PNG,但未说明运行环境和转换工具的安装方法。

总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月23日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(5)

  • SKILL.md9.9 KB
  • references/checks.md4.8 KB
  • references/grammar.md7.1 KB
  • references/kinds.md5.0 KB
  • templates/figure.mjs8.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Blueprint Figure

This skill draws one static SVG figure that explains one mechanism of a real system. The figure uses the real names from the system: ids, field names, method names, status codes and sequence numbers. It sits on a light paper panel and uses a small set of hues with fixed meanings. It stays readable at 640 units wide on screen and in print. Claude, Cursor, Codex, OpenClaw, Hermes, or any agent that reads SKILL.md can use it. The sibling skill course-style holds the full course tokens. This skill copies the tokens it needs, so it works alone.

When to use

  • A lesson, README or manual needs a picture of how parts of a system talk, store data, or change state.
  • You have a capture, a log, a spec or source code that gives the real names.
  • The claim fits one of the nine kinds below.

When not to use

  • The figure must move or respond to a slider. Use the sibling skill motion-figure.
  • The subject is a physical machine explainer with depth and controls. Use the sibling skill isometric-explainer.
  • The data is a chart of numbers over many points. Use a chart tool.
  • You do not have real names for the parts. Get a capture or a source first.

Method

  1. Write the claim first. One sentence, at most 28 words, that the figure proves.
  2. Pick one kind from the table below. If two kinds fit, draw two figures.
  3. Collect the real names from the source: parties, fields, methods, codes, sequence numbers.
  4. Write the hue table for the figure set before you draw (see "Colour").
  5. Sketch the layout on the 640-unit grid. Keep content between x 20 and x 620.
  6. Draw the figure with a script. Start from templates/figure.mjs. Do not edit the SVG by hand.
  7. Run the script. It stops on a label that is too small, too wide, or outside the figure.
  8. Run the checks in references/checks.md. Fix every finding.
  9. Render the SVG to PNG and look at it at 100% and at 50% width.
  10. Write the caption: the bold claim, how to read the figure, then the source.

The nine kinds

KindUse it for
sequenceparties on lifelines, time running down, numbered exchanges
structurethe anatomy of one record, object, or schema
flowstages that data passes through, with who writes and who reads
comparisontwo answers to one question, side by side
timelinetracks over a numbered axis such as commit sequence or time
treeownership, containment, or delegation
statea state machine with its transitions
decisionwhere something fails and what each outcome means
layersa stack of layers with the parts each one owns

Layout numbers for each kind are in references/kinds.md.

What a figure shows

  • Show the real system with real names. Never draw generic boxes such as "Component A".
  • Never draw stat cards, progress bars, or decorative icons.
  • Make one claim per figure.
  • Compare two behaviours of the subject. Never compare with an earlier build of your own project.
  • Number the exchanges in a sequence in the order they happen in the capture.

Colour

Ten hues: grey, blue, teal, violet, green, amber, plum, olive, indigo, rose. Each hue has an ink and a fill token. A hue means the same thing in every figure of one set.

Four meanings are fixed:

HueFixed meaning
rosefailure: errors, crashes, aborts, lost work
greyoutside the subject: the host, the operator, out of scope
amberlifecycle: tasks, phases, state machines
tealdurable state: storage and committed records

Assign the other six hues once per set and write the table in the page or the manual front matter.

Write every colour as var(--m-<token>, <light hex>), for example var(--m-rose-ink, #b0344d). The host page supplies dark values. A README shows the light hex. All light and dark values are in references/grammar.md.

Arrows

StyleMeans
solid inka call or request
dashed inka reply
solid teala durable write
dashed ambera state change
solid pluma model call or compute
dashed olivean effect outside the system
dotted indigoa stream or an event
dashed rosea failure
  • Line width is 1.2. Dashed is 5 4. Dotted is 1.5 3.5 with round caps.
  • Use one arrowhead marker per hue, with the id <figure-id>-head-<hue>.
  • End each arrow 1 unit before the target border.
  • Figure 0.1, the first figure of a set, shows each arrow style that the set uses.

Borders

  • Solid border in the hue ink: a normal part or state.
  • Dashed border: interrupted, optional, or not present.
  • Double border (a second rect inset 3 units): a terminal state.
  • Hatched fill: waiting time on a timeline bar. Never put text on it.

Legibility rules

  • Text is at least 11 units at the 640-unit width. That is 11 pixels on screen and about 8 points in print.
  • Box titles are 12.5 bold mono. Sub lines are 11 serif. Arrow labels are 11.5. Notes are 11 serif.
  • Every serif line carries its own font: class="m-serif" and font-family="Source Serif 4, Georgia, serif". Then the figure looks the same inline on any page, in a README image, and in a manual.
  • Kickers are 11, upper case, letter spacing 1.2, in ink-mute.
  • No ellipsis in labels. No text over text. No text on a hatched fill. No line through text.
  • A label that does not fit goes outside with a leader line or into a numbered key. Never reduce the font size.
  • Put each arrow label on a knock patch in the panel colour, with class="m-knock".
  • Draw the knock patch after the line and before the label.
  • A knock patch hides a line. It never counts as the box that a label must fit inside.
  • Measure text before you place it: mono width is characters × size × 0.6, serif width is characters × size × 0.54.

Technical rules

  • Root: viewBox="0 0 640 H" with H at most 760, role="img", aria-labelledby="<id>-title <id>-desc".
  • Root font and ink: font-family="JetBrains Mono, ui-monospace, monospace" and fill="var(--m-ink, #1a1a1a)". Serif lines set their own font-family as above.
  • A <title> and a <desc> of at least 40 characters, as direct children of the root.
  • The desc names every part and every exchange in reading order.
  • Every id starts with the figure id, such as fig-4-1-head-amber.
  • Figure ids are lowercase words and digits joined by hyphens, such as fig-4-1.
  • Use only the elements and attributes listed in references/checks.md.
  • No style, no scripts, no event handlers, no links, no images.
  • transform only as translate() on <g>.
  • One <text> element per line of text.
  • The file is at most 40 KB and has at most 450 drawn elements.

The caption

Put the caption in the page around the SVG. Do not put it inside the SVG.

  1. Start with the claim in bold: one sentence, at most 28 words, ending with a period.
  2. Say how to read the figure, such as "Read top to bottom."
  3. Name the source, such as the capture file.

In a manual, declare the figure in a fenced block:

```figure
id: fig-4-1
kind: state
title: the task lifecycle
claim: A task ends in one of four terminal states and never leaves one.
caption: Read left to right. Dashed borders are interrupted states. From capture/out/task-states.txt.
```

In a lesson or README, put the SVG in an image tag or inline, then the caption as a paragraph under it.

Keep source and output together

  • Save the figure script beside the SVG, such as figures/src/fig-4-1.js and figures/fig-4-1.svg.
  • Build the SVG from the script every time. Never edit the SVG by hand after a build.
  • Before you commit, build again and confirm that the committed SVG equals the script output.

Check before you finish

  • The claim is one sentence of at most 28 words.
  • Every label is a real name from the source. No "Component A".
  • The figure uses one of the nine kinds.
  • Rose means failure, grey means outside, amber means lifecycle, teal means durable state.
  • Every arrow uses one of the eight styles and means what the table says.
  • viewBox width is 640 and height is at most 760.
  • role="img", aria-labelledby, <title> and a <desc> of 40 or more characters are present.
  • Every id starts with the figure id.
  • Every colour is var(--m-<token>, <light hex>) with the correct hex.
  • No text is below 11 units, outside the viewBox, over other text, or crossed by a line.
  • No ellipsis in any label.
  • Every serif line has a font-family attribute and the root has the ink fill, so the figure needs no host stylesheet.
  • No style, script, link, image, or transform other than translate() on <g>.
  • The file is at most 40 KB.
  • The PNG render is readable at 50% width.
  • The caption has the bold claim, the reading order, and the source.
  • The committed SVG equals the script output.

Files

  • references/kinds.md: layout numbers for each of the nine kinds, and figure 0.1.
  • references/grammar.md: light and dark tokens, hue meanings, arrow strokes, markers, text sizes and metrics, shapes, optional beats.
  • references/checks.md: every check with its test, the allowed elements and attributes, and the caption rules.
  • templates/figure.mjs: a self-contained Node script with a small figure kit and one sequence figure. Run node templates/figure.mjs out.svg to write the SVG, or omit the path to print it.

Inside the AI Engineering from Scratch repo, also see manuals/_shared/figkit.js (the full kit), manuals/_shared/templates/ (one script per kind), and scripts/audit_manuals.js (the figure lint).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

build-project

免费有简介AI 评分 100分

按阶段完成 AI 开发实践项目,通过预测、自己编写代码、自动评分和回顾来学习,遇到问题时获得提示,并记录进度以便下次继续。

  • 通过实践项目学习人工智能开发
  • 继续尚未完成的项目
  • 借助提示解决实现错误
rohitg00/ai-engineering-from-scratch7.3万2026年10月22日 更新

check-tests

免费有简介AI 评分 60分

检查本地测试的相关证据,并在结果中保留来源文件路径,使结论与依据保持关联。缺少必要证据时,立即停止当前检查。

  • 检查本地测试的证据
  • 在检查结果中保留来源路径
  • 缺少必要证据时停止检查
rohitg00/ai-engineering-from-scratch7.3万2026年10月22日 更新

check-understanding

免费有简介AI 评分 100分

通过八道四选一题目检查你对 AI Engineering from Scratch 某一阶段的理解,并提供得分、错题解析及需要复习的课程。

  • 完成一个阶段后检查理解程度
  • 确认是否准备好进入下一阶段
  • 根据错题查找需要复习的课程
rohitg00/ai-engineering-from-scratch7.3万2026年10月22日 更新

claude-certification

免费有简介AI 评分 90分

帮助选择Claude认证的四条学习路线,通过互动课程、实操、小测和模拟考试检查理解与成果,记录进度并继续学习,再根据测评结果复习薄弱领域。

  • 按目标选择认证学习路线
  • 从保存的进度继续学习
  • 不编写代码也能完成实操
rohitg00/ai-engineering-from-scratch7.3万2026年10月22日 更新

course-guide

免费有简介AI 评分 100分

在AI Engineering from Scratch中查找适合学习主题或所遇问题的教材,推荐相关课程并说明下一步使用的命令,帮助确定从哪里读起或接着学什么。

  • 查找想学主题的课程材料
  • 学习故障背后的概念
  • 根据进度选择下一步学习内容
rohitg00/ai-engineering-from-scratch7.3万2026年10月22日 更新

course-style

免费有简介AI 评分 100分

按统一规则调整教材页面、图示和手册的视觉样式与英文表达,核对配色、字体、图号及卡片布局,同时检查深色模式、操作便利性和减少动态效果的设置。

  • 统一教材页面的配色与字体
  • 检查深色模式配色与可读性
  • 统一图号和卡片布局
rohitg00/ai-engineering-from-scratch7.3万2026年10月22日 更新

查看 rohitg00 的全部技能

报告此技能的问题