blueprint-figure
Skill này làm gì
Skill này vẽ một hình SVG tĩnh giải thích một cơ chế trong hệ thống. Nó dành cho người viết và giáo viên muốn có sơ đồ gọn gàng, nhất quán phong cách cho bài học và sách hướng dẫn.
Khi nào nên dùng
- ✓Khi một bài học, README hoặc sách hướng dẫn cần hình minh họa cách các phần của hệ thống trao đổi hoặc thay đổi trạng thái.
- ✓Khi bạn có log, đặc tả hoặc mã nguồn với tên thật của các phần cần thể hiện.
- ✓Khi một ý tưởng phù hợp với một chuỗi, một máy trạng thái hoặc một luồng dữ liệu mà sơ đồ có thể thể hiện rõ.
Liên kết skill
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/blueprint-figure/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Vẽ một hình cho bài học này, thể hiện một yêu cầu đi từ client qua cache rồi đến cơ sở dữ liệu.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết một luận điểm rõ ràng cho hình, chọn loại sơ đồ phù hợp và dùng tên thật từ nguồn. Sau đó nó vẽ một SVG trên nền sáng với màu cố định và kiểm tra nhãn có đọc được không.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
- Write the claim first. One sentence, at most 28 words, that the figure proves.
- Pick one kind from the table below. If two kinds fit, draw two figures.
- Collect the real names from the source: parties, fields, methods, codes, sequence numbers.
- Write the hue table for the figure set before you draw (see "Colour").
- Sketch the layout on the 640-unit grid. Keep content between x 20 and x 620.
- Draw the figure with a script. Start from
templates/figure.mjs. Do not edit the SVG by hand. - Run the script. It stops on a label that is too small, too wide, or outside the figure.
- Run the checks in
references/checks.md. Fix every finding. - Render the SVG to PNG and look at it at 100% and at 50% width.
- Write the caption: the bold claim, how to read the figure, then the source.
The nine kinds
| Kind | Use it for |
|---|---|
sequence |
parties on lifelines, time running down, numbered exchanges |
structure |
the anatomy of one record, object, or schema |
flow |
stages that data passes through, with who writes and who reads |
comparison |
two answers to one question, side by side |
timeline |
tracks over a numbered axis such as commit sequence or time |
tree |
ownership, containment, or delegation |
state |
a state machine with its transitions |
decision |
where something fails and what each outcome means |
layers |
a 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:
| Hue | Fixed meaning |
|---|---|
rose |
failure: errors, crashes, aborts, lost work |
grey |
outside the subject: the host, the operator, out of scope |
amber |
lifecycle: tasks, phases, state machines |
teal |
durable 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
| Style | Means |
|---|---|
| solid ink | a call or request |
| dashed ink | a reply |
| solid teal | a durable write |
| dashed amber | a state change |
| solid plum | a model call or compute |
| dashed olive | an effect outside the system |
| dotted indigo | a stream or an event |
| dashed rose | a failure |
- Line width is 1.2. Dashed is
5 4. Dotted is1.5 3.5with 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 se
Câu hỏi thường gặp
Nó vẽ những loại hình nào?
Nó vẽ một trong chín loại hình tĩnh, như chuỗi tuần tự, máy trạng thái và luồng dữ liệu.
Hình có dùng được cả khi in và trên màn hình không?
Có. Nó được thiết kế để đọc rõ ở chiều rộng khoảng 640 đơn vị trên màn hình và khi in.
Nó có vẽ được sơ đồ động không?
Không. Hình động hoặc tương tác do một skill khác xử lý.
Chi tiết
Mô tả gốc của tác giả
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".
Độ phổ biến
- Sao GitHub
- 76k
- Vị trí xếp hạng
- #2611
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
build-project
76kĐóng vai gia sư dự án, hướng dẫn bạn qua từng giai đoạn của một dự án AI thực hành, với gợi ý và bộ chấm, nhưng không đưa đáp án đầy đủ.
check-understanding
76kKiểm tra bạn bằng một bài quiz về một giai đoạn đã hoàn thành của khóa AI Engineering from Scratch, để bạn xem mình đã nắm gì trước khi đi tiếp.
claude-certification
76kĐóng vai gia sư từng bước cho các lộ trình chứng chỉ Claude trong khóa AI Engineering from Scratch, với bài học, bài thực hành và đề thi thử.
course-guide
76kChỉ cho bạn những bài học chính xác trong khóa AI Engineering from Scratch bao quát một chủ đề, lỗi hoặc câu hỏi, cùng bước tiếp theo nên làm.
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.