Skip to content

An agent skill for creating detailed, interactive isometric illustrations of real-world machines and complex systems. Generates polished SVGs with optional WebGL shaders and 3D effects.

Add OpenCode support

chuma-beep22e5473a8140
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 88472bd..27c9b49 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -12,7 +12,7 @@ body:
attributes:
label: Where is the problem?
options:
- - A figure Claude made with the skill
+ - A figure an agent made with the skill
- One of the examples
- The kit (kit/)
- A check script (scripts/)
@@ -20,6 +20,16 @@ body:
- Installing the skill
validations:
required: true
+ - type: dropdown
+ id: agent
+ attributes:
+ label: Which agent?
+ options:
+ - Claude Code
+ - OpenCode
+ - Other
+ validations:
+ required: true
- type: dropdown
id: kind
attributes:
@@ -64,7 +74,7 @@ body:
id: steps
attributes:
label: How to reproduce
- description: The prompt you gave Claude, or the exact command you ran.
+ description: The prompt you gave the agent, or the exact command you ran.
placeholder: |
/anatomy explain how a token bucket rate limiter works, interactive
node examples/raptor-engine/build.mjs --audit
@@ -80,8 +90,8 @@ body:
id: environment
attributes:
label: Environment
- description: Node.js version, operating system, Chrome version, Claude Code version.
- placeholder: output of `node --version` and `claude --version`, your OS, your Chrome version
+ description: Node.js version, operating system, Chrome version, agent version.
+ placeholder: output of `node --version` and `claude --version` or `opencode --version`, your OS, your Chrome version
validations:
required: true
- type: textarea
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8152ae2..1c4d5d8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ All notable changes to Anatomy are recorded here. The format follows [Keep a Cha
### Added
+- OpenCode support: `SKILL.md` exposes `/anatomy` to OpenCode, and the README and CONTRIBUTING show OpenCode install paths.
- `examples/arcade-cabinet/`, an upright arcade cabinet with its side panel off. A quarter rolls down the coin chute past the coin-switch wire into the cash box, the switch's pulse runs along its cable to the board, and the CRT warms up, self-tests and runs an attract mode drawn in the plane of the tilted monitor; the stick closes a microswitch under the panel. It draws in the light and dark themes and passes `--audit`.
- `examples/spot-plate/`, a second React figure from the same site as `test-rig`: six pairs of glass drops that run together into one piece of glass as a fan of feeler blades sets `merge`. It draws in the light and dark themes.
- A first workflow step, **Size it before you start**: every request is sized as a Figure (about 30–90 minutes), a Hero (2–4 hours) or an Epic (6 hours or more), and the estimate is told to the user first. An Epic is not started until the user chooses it over a proposed Hero version. Every size has a working page within the first hour, and Claude reports when a step runs past twice its share of the estimate.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9f5dc61..7585cbb 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -10,7 +10,7 @@ You need:
- **Node.js 20.10 or later.** Nothing to install: the kit, the build scripts and the checks use only Node's built-in modules.
- **Google Chrome or Chromium** for the browser checks. The scripts find it in the usual places; otherwise set `CHROME_PATH` to the binary.
-- **Claude Code**, to try the skill itself.
+- **Claude Code or OpenCode**, to try the skill itself.
```sh
git clone https://github.com/wheresryan22/anatomy.git
@@ -23,6 +23,12 @@ To use your working copy as the skill while you change it, link it into your per
ln -s "$PWD" ~/.claude/skills/anatomy
```
+For OpenCode:
+
+```sh
+ln -s "$PWD" ~/.config/opencode/skills/anatomy
+```
+
## Building the examples
Each framework-free example is one script that writes standalone pages next to itself. The built pages are committed.
diff --git a/README.md b/README.md
index 9cd8d68..a042f3e 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
<h1 align="center">Anatomy</h1>
-<p align="center"><b>A Claude skill that explains an idea by building it as a real, working object.</b><br>Crafted, interactive isometric figures with many small precise parts, in SVG, WebGL and 3D.</p>
+<p align="center"><b>An Agent skill that explains an idea by building it as a real, working object.</b><br>Crafted, interactive isometric figures with many small precise parts, in SVG, WebGL and 3D.</p>
<p align="center">
<a href="https://code.claude.com/docs/en/skills"><img src="https://img.shields.io/badge/Claude_Code-skill-1b1b19?style=flat-square&logo=claude&logoColor=white" alt="Claude Code skill"></a>
@@ -48,7 +48,13 @@ Then Claude builds that thing out of dozens of small, solid, shaded parts, puts
npx skills add wheresryan22/anatomy -g -a claude-code
```
-Then, in Claude Code:
+For OpenCode:
+
+```sh
+npx skills add wheresryan22/anatomy -g -a opencode
+```
+
+Then, in Claude Code or OpenCode:
```text
/anatomy explain how a token bucket rate limiter works, interactive
@@ -93,22 +99,24 @@ Each figure is light or dark. Light is the theme the skill designs for first, sh
## Install
-Anatomy is a standard [Agent Skill](https://code.claude.com/docs/en/skills): a folder with a `SKILL.md` at its root. This repository is that folder. Pick one way in:
+Anatomy is a standard [Agent Skill](https://agentskills.io): a folder with a `SKILL.md` at its root. This repository is that folder. Pick one way in:
| | Command | Installs to |
|---|---|---|
-| **skills CLI**, for you | `npx skills add wheresryan22/anatomy -g -a claude-code` | `~/.claude/skills/anatomy` |
-| **skills CLI**, for one project | `npx skills add wheresryan22/anatomy` | `.claude/skills/anatomy` |
-| **git**, for you | `git clone https://github.com/wheresryan22/anatomy.git ~/.claude/skills/anatomy` | `~/.claude/skills/anatomy` |
+| **skills CLI**, for you (Claude Code) | `npx skills add wheresryan22/anatomy -g -a claude-code` | `~/.claude/skills/anatomy` |
+| **skills CLI**, for you (OpenCode) | `npx skills add wheresryan22/anatomy -g -a opencode` | `~/.config/opencode/skills/anatomy` |
+| **skills CLI**, for one project | `npx skills add wheresryan22/anatomy` | `.claude/skills/anatomy` or `.opencode/skills/anatomy` |
+| **git**, for you (Claude Code) | `git clone https://github.com/wheresryan22/anatomy.git ~/.claude/skills/anatomy` | `~/.claude/skills/anatomy` |
+| **git**, for you (OpenCode) | `git clone https://github.com/wheresryan22/anatomy.git ~/.config/opencode/skills/anatomy` | `~/.config/opencode/skills/anatomy` |
| **git**, for one project | `git clone https://github.com/wheresryan22/anatomy.git .claude/skills/anatomy` | `.claude/skills/anatomy` |
-| **Download**, no git | see below | `~/.claude/skills/anatomy` |
+| **Download**, no git | see below | `~/.claude/skills/anatomy` or `~/.config/opencode/skills/anatomy` |
<details>
<summary><b>With the skills CLI</b></summary>
<br>
-The [`skills`](https://github.com/vercel-labs/skills) CLI finds the `SKILL.md` at the root of this repository and installs it as `anatomy`. By default it installs into the current project and asks which agents to set up. `-g` installs it for your user, and `-a claude-code` sets up Claude Code only.
+The [`skills`](https://github.com/vercel-labs/skills) CLI finds the `SKILL.md` at the root of this repository and installs it as `anatomy`. By default it installs into the current project and asks which agents to set up. `-g` installs it for your user, and `-a claude-code` sets up Claude Code only. Use `-a opencode` to set up OpenCode only.
The CLI copies the whole repository, examples included (about 10 MB). It needs a recent Node.js: version 1.7.1 of the CLI asks for 22.20 or later.
@@ -119,7 +127,7 @@ The CLI copies the whole repository, examples included (about 10 MB). It needs a
<br>
-Clone the repository into one of Claude Code's skill folders, so that `SKILL.md` ends up at `<skills folder>/anatomy/SKILL.md`. For a project install, commit `.claude/skills/anatomy` so your team gets it too. To update later, `git pull` inside that folder.
+Clone the repository into one of the skill folders, so that `SKILL.md` ends up at `<skills folder>/anatomy/SKILL.md`. For Claude Code use `~/.claude/skills/anatomy` or `.claude/skills/anatomy`. For OpenCode use `~/.config/opencode/skills/anatomy` or `.opencode/skills/anatomy`. OpenCode also reads `.claude/skills/anatomy` and `.agents/skills/anatomy`. For a project install, commit the folder so your team gets it too. To update later, `git pull` inside that folder.
</details>
@@ -128,7 +136,7 @@ Clone the repository into one of Claude Code's skill folders, so that `SKILL.md`
<br>
-[Download the ZIP](https://github.com/wheresryan22/anatomy/archive/refs/heads/main.zip), unpack it, rename the folder from `anatomy-main` to `anatomy`, and move it into `~/.claude/skills/`.
+[Download the ZIP](https://github.com/wheresryan22/anatomy/archive/refs/heads/main.zip), unpack it, rename the folder from `anatomy-main` to `anatomy`, and move it into `~/.claude/skills/` or `~/.config/opencode/skills/`.
Or in one line on macOS or Linux:
@@ -136,9 +144,15 @@ Or in one line on macOS or Linux:
mkdir -p ~/.claude/skills/anatomy && curl -L https://github.com/wheresryan22/anatomy/archive/refs/heads/main.tar.gz | tar -xz --strip-components=1 -C ~/.claude/skills/anatomy
```
+For OpenCode:
+
+```sh
+mkdir -p ~/.config/opencode/skills/anatomy && curl -L https://github.com/wheresryan22/anatomy/archive/refs/heads/main.tar.gz | tar -xz --strip-components=1 -C ~/.config/opencode/skills/anatomy
+```
+
</details>
-Claude Code picks up new skills in a running session. If the `skills` folder itself did not exist when the session started, run `/reload-skills`.
+Claude Code picks up new skills in a running session. If the `skills` folder itself did not exist when the session started, run `/reload-skills`. OpenCode loads the skill through its `skill` tool. The skill exposes `/anatomy` in the OpenCode TUI. Restart OpenCode after install if the skill does not show.
## Usage
@@ -148,7 +162,7 @@ Type `/anatomy` and say what the figure should explain:
/anatomy explain how a token bucket rate limiter works, interactive
```
-You don't have to name the skill. Claude also loads it when you ask for an isometric illustration, an explanatory figure for docs, a blog post or a landing page, or an interactive explainer.
+You do not have to name the skill. The agent also loads it for an isometric illustration. It also loads it for an explanatory figure, a blog post, a landing page, or an interactive explainer.
<details>
<summary><b>More prompts</b>, from the skill's <a href="evals/evals.json">evals</a></summary>
@@ -248,7 +262,7 @@ anatomy/
| | Needed for | Notes |
|---|---|---|
-| **[Claude Code](https://code.claude.com/docs/en/overview)** | everything | The skill is written for it. |
+| **[Claude Code](https://code.claude.com/docs/en/overview) or [OpenCode](https://opencode.ai/docs/skills/)** | everything | The skill is written for Claude Code and OpenCode. |
| **Node.js 20.10+** | builds, kit, checks | Built-in modules only: nothing to `npm install`. The examples were rebuilt byte for byte on Node 20.19 and 22.11. On Node 20 the browser scripts restart themselves with `--experimental-websocket`. |
| **Chrome or Chromium** | the checks | `capture.mjs`, `drive.mjs`, `lines.mjs` and `turn-check.mjs` look in the usual places on macOS, Linux and Windows and in Playwright's cache. Set `CHROME_PATH` for any other binary. They run it headless with WebGL on. |
| **React 18+** | React output only | `kit/react/`, `examples/test-rig/` and `examples/spot-plate/`. |
diff --git a/SKILL.md b/SKILL.md
index 237ed4b..8a60044 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -1,6 +1,10 @@
---
name: anatomy
description: Build crafted, highly detailed, interactive isometric SVG figures that explain a technical idea as a real physical object (a test rig, a dial gauge, a cabinet of drawers, a plotter, a lock), with many small precise solid parts, four-tone shading, correct painter's order, a framed card with title, hint and live readout, and calm eased motion. Use this whenever someone wants an isometric illustration, an explanatory diagram or figure for docs, a blog post, a landing page or an article, a "Linear-style" or "premium" technical drawing, an interactive explainer, or an SVG that shows how a system, algorithm or component works, even if they never say "isometric". Works framework-free (TypeScript/JS that writes SVG and HTML) and in React/Next.js, and can add realistic WebGL shaders (fire, exhaust, water, caustics, lamp light) that live inside the drawing in the same isometric perspective.
+license: MIT
+compatibility: claude-code, opencode
+metadata:
+ opencode/slash: "true"
---
# Anatomy