跳到正文
Skillpedia
图片与图标260k · #451

anatomy

它能做什么

它构建看起来像小型机械仪器的图示,其中各个部件会移动,以展示一个想法如何运作。它适合希望给出难忘视觉解释的教师、作者和演讲者。

适用场景

  • ✓你想用一种像实体机器的视觉来解释某个概念的时候。
  • ✓你希望有一个交互式图示,其中的数字与移动的部件保持一致的时候。
  • ✓你需要一个可以分享的独立 HTML 页面或 SVG 图示的时候。

技能链接

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/creative/anatomy/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请制作一个交互式的机械风格图示,解释压力表是如何工作的。”

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

工作原理

智能体根据一个模型构建 SVG 图示,使每个部件随其所显示的数字一起移动。它可以输出独立的 HTML 页面、单独的 SVG 文件或 React 组件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Anatomy

This skill builds figures that work like a small instrument on a bench: a heavy base on feet, rails with tick rulers, a carriage on bushings, knurled knobs, coil springs, a dial gauge whose needle moves, and screws drawn as tiny dots. The reader understands the idea because they recognise the machine. Every number the figure shows comes from the same model that moves its parts.

Output is a standalone HTML page (SVG plus optional WebGL layers), a lone .svg, or React/Next.js components. The kit uses only Node built-ins, so there is nothing to npm install.

Running it in Hermes

Skill directory. Hermes expands ${HERMES_SKILL_DIR} to this skill's installed directory. Shell variables don't carry over between terminal calls, so repeat the assignment in every call that uses it:

SKILL_DIR="${HERMES_SKILL_DIR}"

Never build inside the skill directory. Every build.mjs writes its HTML next to itself, and the examples import ../../kit/ and ../../scripts/. Lay out a workspace with the same shape: the user's project if they have one, otherwise a folder they name.

SKILL_DIR="${HERMES_SKILL_DIR}"
WORK="$HOME/figures/pin-lock"
mkdir -p "$WORK/figures"
cp -r "$SKILL_DIR/kit" "$SKILL_DIR/scripts" "$WORK/"
cp -r "$SKILL_DIR/examples/dial-indicator" "$WORK/figures/"
cd "$WORK/figures/dial-indicator" && node build.mjs && node build.mjs --light

Start a new figure by copying the closest example into $WORK/figures/<name>/ and renaming it. Leaving the installed skill untouched keeps hermes skills update from flagging it as locally modified.

The examples ship as source only. Upstream's built pages are 9 MB of generated HTML. Build an example (as above) to open or capture it, since it takes a few seconds.

Looking at your work. The upstream workflow says "read every PNG". In Hermes that means vision_analyze on each capture, and the 4× close-ups use its region crop on a high-DPR capture or a --zoom capture. Ask specific questions ("does the pipe at the flange end on the flange face?"), not "does this look good".

Browser. The capture, drive, line-end and 3D checks start a headless Chrome over a loopback DevTools port. They use CHROME_PATH if set, then a Playwright headless shell if one is installed (chromium_headless_shell-* in the Playwright cache, e.g. from npx playwright install chromium), then a system Chrome or Chromium. Prefer the headless shell: it renders the WebGL layers through SwiftShader and makes no outbound connections. A full desktop Chrome opens background connections to Google services even with a throwaway profile, and it fails to start ("Socket path too long", then "Chrome did not start") when TMPDIR is a long path, as Hermes' per-profile scratch dir can be. If you must use one, set TMPDIR to a short directory for that command. Building a figure needs no browser at all.

Long runs. node build.mjs --audit takes about two minutes on a dense Hero, and a full 3D orbit audit takes 15 to 20 minutes for 30 parts. Run those with terminal(background=true, notify=true) and keep working on something else.

Asking about scope. The workflow's sizing step decides whether to build or ask. For an Epic, put the estimate and the Hero alternative to the user with clarify, and wait for their choice.

Delivering. Hand over the absolute path of the built HTML (both themes) plus the PNG captures you verified. On a messaging platform, attach the desktop and phone PNGs, since a chat can't run the page.

The examples

Open the closest one before you start. Each framework-free example builds with node build.mjs in its directory; add --light for the light theme.

  • examples/dial-indicator/ is the smallest: a dial gauge on a stand, about 300 lines in all.
  • examples/desk-computer/ is framework-free SVG: a desk computer with a keyboard you can type on. The typed line appears on a CRT screen drawn in the plane of the case front, and the picture collapses to a line and a dot when you switch it off. It has about 85 solids and 850 paths.
  • examples/arcade-cabinet/ is an upright arcade cabinet with its side panel off, a Hero of about 240 solids and 15 cables. A quarter flies into the slot, rolls down the coin chute at the speed a rolling disc reaches on a 30° slope, trips the coin-switch wire and drops into the cash box. The switch's pulse runs chunk by chunk along its cable to the board, and the CRT warms up, self-tests and runs an attr
常见问题

它需要安装软件包吗?

不需要。技能说明该工具包只使用 Node 内置模块,因此无需通过 npm 安装任何东西。

图示应当生成在哪里?

生成在你自己的项目或你指定的文件夹中,而不是技能文件夹里。

我也能得到浅色版本吗?

可以。示例构建支持 light 标志,可生成浅色主题的图示。

详情

作者的原始描述

Explain an idea as an interactive isometric machine figure.

repo: NousResearch/hermes-agent

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能