跳到正文
Skillpedia
图片与图标76k · #2618

isometric-explainer

它能做什么

这项技能构建一个交互式单页面,其中有一台带三维效果的机器,用来解释某个流程。适合希望读者亲眼看到并操控系统运作方式的教育工作者和作者。

适用场景

  • ✓当某个概念是一个包含工位、顺序和故障点的流程时,例如流水线或队列。
  • ✓当你希望读者破坏流程中的某个部分,看看会出现什么故障时。
  • ✓当交互式机器是页面的主要内容时。

技能链接

https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/isometric-explainer/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/isometric-explainer/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请制作一个交互式机器页面,展示一个请求如何经过缓存、队列和重试策略。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体设计一台与流程相匹配的机器,并以三维风格的场景绘制它。一个经过测试的模型驱动运动、数字和文字,使画面与解释始终保持一致。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Isometric Explainer

This skill makes a single-page interactive figure. The figure is a solid isometric machine on a bench. Each station of the machine stands for one step of a process. For example, a request card moves on a carriage, a probe drops, and a press stamps the card. A pure state model decides every move, so the picture, the numbers and the words match. The templates/ folder holds a working starter, and kit/ holds the geometry library it uses.

When to use

  • The concept is a process with stations, order and failure modes: a loop, a pipeline, a cache, a queue, a retry policy.
  • The reader can break one part and see what fails.
  • The figure is the main content of a page.

When not to use

  • A static diagram explains the idea. Make a flat SVG figure instead.
  • The concept has no order or state change. Make a static figure instead.
  • The figure is a small diagram inside a lesson or a README. Use the sibling skill blueprint-figure.
  • You cannot write a deterministic model of the behavior. Do not animate a guess.
  • The job needs more than 150 parts and the user has not approved the size.

Method

  1. Invent the machine. Write one sentence: "X moves through Y, and that motion means Z." If you cannot write it, pick another machine. See references/concept.md.

  2. Count the parts on paper before you draw, and pick a tier.

    Tier Parts Approval
    Figure 40 to 80 not needed
    Hero 80 to 150 not needed
    Larger more than 150 get the user's approval first
  3. Write the state model first. Make model.mjs pure and deterministic, with no DOM and no clock. simulate(config) returns an event list and totals. Test it before any geometry. See references/state-model.md.

  4. Map each concept to a station. Write a table: station, concept word for its label, what it does, what fails without it.

  5. Write the parts list. List each part with its assembly, size in world units, tone and whether it moves. Geometry comes after the list.

  6. Set the camera. Use world units and one isometric camera. Set elevation to 30 degrees. Pick the azimuth so the working faces point at the viewer. Fit the projection over the assembled and the exploded pose.

  7. Build the static geometry once. Each part becomes one SVG group with a depth key. Movers get a data-live hook. See references/geometry.md.

  8. Animate by translation. Move a part by changing its transform only. Rebuild a path only when its shape changes, such as a rod that gets longer.

  9. Paint from back to front. Sort groups by depth key plus the depth of their current offset. Reorder the DOM only when the order changes.

  10. Paint with colour and ink. Each material has three flat tones, the main bodies have a heavy ink silhouette, and each body casts a short, flat, warm grey shadow on the bench. Exactly one accent colour marks the active part and its pill label. See references/colour-and-ink.md.

  11. Add controls that change the model. Run, step, break, repair, reset and the config switches all act on a real simulate run. Write the config to the URL. See references/live.md.

  12. Verify the page in a headless browser. Take screenshots at desktop and phone width in both themes. Add 4x close-ups, a line-end check, a scenario sweep with zero console errors and a contact sheet. See references/verify.md.

Rules

Truth:

  • The state model is the single source of truth. Motion, readouts, trace lines and outcome text all come from its events.
  • simulate with the same config returns the same events. A test proves this for every config combination.
  • Never fake a real model, a real service or real metrics. A scripted part says "fixed script" in the page copy.
  • Every page with simulated timing shows a sentence that starts "This is a simulation." and says that times are fixed costs, not measurements.
  • Use real arithmetic in the model. Tests assert the exact numbers that the page prints.

Geometry:

  • All coordinates are world units. Pixels appear only in the projection.
  • Elevation is 30 degrees. The azimuth is one fixed value for the whole page. The reference page uses 60.
  • Solids use inkSolid from kit/ink.mjs: three flat tones for each material, an ink outline, and a heavier silhouette round each main body.
  • Every line ends on a solid or on another line. A line with a deliberate loose end carries data-free="start", "end" or "".
  • Each station carries a pill label with a leader line to its working part, wi
常见问题

什么时候不应使用它?

如果一张平面图就能说明的静态概念,或者无法精确建模的流程,请不要使用它。

机器可以有多大?

除非你批准更大的规模,否则机器的部件数量限制在约 150 个。

页面包含什么?

包括控件、可视化的机器,以及用于确认其运行正常的检查循环。

详情

作者的原始描述

Builds an interactive isometric machine page. Each station of one invented machine stands for one step of a process. A pure, tested state model drives the motion, the readouts and the copy. The page has controls and a verification loop. Trigger phrases: "isometric explainer", "machine explainer", "explain this as a machine", "interactive isometric figure", "explorable explainer", "show how it works inside".

repo: rohitg00/ai-engineering-from-scratch

热度

GitHub 星标
76k
排名
#2618
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能