/ryugi:artifactsfrom ryugi
Use when seeing decides faster than reading — UI directions or mockups to choose between, a page to tune or click through, a design doc, review, proposal, or architecture walkthrough for them or their team to read — or when they ask for an artifact or artboard by name, or for a link to share one, or when they paste a Ryugi Cloud link (…/a/…) to read. Inside brainstorming or anywhere else
Ships in ryugi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Artifacts are pages your human partner opens in their browser while you work: an artboard of mockups to choose from and comment on, a document to read and comment on, or one HTML page to click and tune. You write files into the project; a local server shows each artifact at its own link and updates it the moment a file changes. They look, then answer in the terminal.
When your human partner pastes a Ryugi Cloud link to read
(https://ryugi.innei.dev/a/<id>, or /a/<id> on another Ryugi Cloud
host), your first step is, with app/ in this skill's directory:
node app/ryugi-artifacts.cjs get --json <link>
The page itself is an app shell with no content, so no page fetch, no
browser and no Artifact tool. get reads it with this machine's cloud
sign-in. A document comes back as content (LiteXML with block ids) and
comments; an artboard or HTML artifact as dir, the folder its files
were downloaded to. Exit code 2 means they need to sign in: tell them its
message.
You have a tool named Artifact (Claude Code on a claude.ai plan):
pick the type below, then read claude-artifacts.md and build it with that
tool. Only verify groups (ryugi:verifying-ui) use this app there.
No Artifact tool: use this app even when your harness offers another
hosted artifact or publishing tool. When they want a link that opens
outside this machine, publish it to Ryugi Cloud (see Share a link).
| What is being decided | Type | Read before writing |
|---|---|---|
| Architecture, engineering design, a review, proposal or flow walkthrough | document | document.md |
| One surface or one dimension — a component, type scale, background, motion | html | html.md, ui.md for components |
| A business space — several screens, dimensions, states or questions at once | artboard | artboard.md; artboard-prototype.md for playable boards or parameters |
| Whether a built change matches what was approved, when they ask you to verify it | artboard, a verify group | artboard.md |
| Nothing to see | text |
A control does not make it an artboard: one surface, however tunable, is
html. The artboard is for several dimensions at once; one group is one
dimension. "HTML" or "page" names the medium, not the type.
The type column is a gate, not a menu: open that doc first, in a command of
its own. Read alongside other files, a harness's output cap can cut it off
midway. html also reads
ui.md — its controls are <ryugi-…>; artboard boards use plain HTML, CSS
and JavaScript, including their own event handlers. Verify against the doc —
ids, ryugi-change, restored state — not just that it renders.
For board-level controls, artboard-prototype.md documents data-ryugi-tweaks: a JSON
declaration creates a Parameters panel beside its board. Use it for a few
intentional levers; the board consumes typed values through CSS and JS.
Load the project's design system (tokens, components, type) before the first frame; if it has none, say which type, scale and palette you are using. Use real copy and data, never lorem ipsum.
For preview icons, read icons.md. When implementing the approved design, map its actions to the app's existing business icons; the preview glyphs are visual references.
html is one surface: both themes when the product has them, and the states
the decision touches; a control tunes one dimension.
artboard is the space of a requirement: one group per question, its
variants differing in that one dimension; everything else stays still.
document is where architecture and engineering decisions are argued, with
diagrams and code — not a gallery of screens.
Each artifact is <project>/.ryugi/artifacts/<type>/<id>/. The id is
lowercase letters, digits and hyphens, named after the topic
(arrow-tuner, header-nav).
Paths below are relative to this skill's directory: resolve app/ to its
absolute path before you run them. Every artifacts command goes through the
launcher app/ryugi-artifacts.cjs with --json; it runs the newest
ryugi-artifacts CLI and prints one JSON line.
node app/ryugi-artifacts.cjs start --json --project-dir /path/to/project --artifact html/arrow-tuner
# {"type":"server-started","url":"http://localhost:27319/","port":27319,
# "root":"/path/to/project/.ryugi/artifacts","link":"http://localhost:27319/html/arrow-tuner",
# "cloudLink":"https://ryugi.innei.dev/a/…"}
cloudLink when it is printed, and only that link. It is the
same live page, on this computer and on any other, published or not.cloudLimit instead of cloudLink: their Ryugi Cloud plan is full. Tell
them its message and give them upgradeUrl, then the local link.cloudLink: give them link exactly as printed. url opens a list
of every artifact.start before you write a new artifact's first file, so the page is
open while you write it.start. It
prints "reused": true while the server is up, and otherwise starts it on
the same port, so open tabs reconnect.--no-open only for
headless or scripted use. Still share the link; remote setups can't
auto-open. Read artboard.md for the streaming write order.node app/ryugi-artifacts.cjs stop --json.
It stops the server for every project; the artifacts stay.Launching by harness. The server must survive across turns.
CODEX_CI and stays in the foreground: give
it its own tool call with a yield of at least 5 seconds (a first run may
install a release). When it starts a new server it does not return, so
anything chained after it with ; or && runs only once the server
stops.comment list --json and check --json through jq ..
Don't pipe start.--foreground and start it with the harness's background-shell mechanism.Remote or containerized setups: if the link is unreachable from their
browser, bind a non-loopback host and name the host they reach it by:
--host 0.0.0.0 --url-host localhost. A server bound that way refuses
requests without its key: its link carries ?key=, so give it to them
complete.
Publish when they want a link that works outside this machine. The server must be running.
node app/ryugi-artifacts.cjs publish --json --project-dir /path/to/project --artifact html/arrow-tuner --public
# {"type":"published","artifact":"html/arrow-tuner","url":"https://ryugi.innei.dev/a/…","visibility":"public"}
--public. Only they will look: --private, which needs their
sign-in.--public or --private. The link keeps
whoever can see it now, which they may have changed on the web page since
your last command. Add a flag only when they ask to change who can see it.{"type":"login-required","url":…}: give them url,
wait until they say they signed in, then run the same command again.--unpublish deletes the cloud copy and the link stops working. --list
and --delete <cloud-id> clean up copies published from other machines.{"type":"plan-limit",…}: their plan is full. Tell them
its message and give them upgradeUrl.reasons: fix those warnings, then publish again.When your human partner is signed in and auto-publish is on, every artifact
changed during your turn is published as a private copy when the turn ends
(Claude Code only; elsewhere, publish when asked). config --json prints
whether it is on.
publish to keep a private copy current; the turn end does it.cloudLink from start. It is live while this computer is on, and shows
the last published copy when it is off. Or ryugi.innei.dev, which lists
every copy once they sign in there.--public, as in Share a link.config --auto-publish on or off with their answer. Their project-only
choice: add --project.<project>/.ryugi/artifacts/
artboard/<id>/ canvas.json + pages/ (you write); comments.json (server only)
document/<id>/ doc.xml + assets/ (you write); comments.json (server only)
html/<id>/ index.html + its files (you write)
.state/ the server writes; never edit
<type>/<id>/warnings.json warnings + pending; `check` prints it
artboard/<id>/layout.json computed geometry
.state/ keeps itself out of git. By default .ryugi/.gitignore keeps
only documents in git; changing that is your human partner's call: leave
.gitignore alone.Write the files with your file-writing tool.
Run check after your last write. It waits until the server has checked
that write, then prints warnings (and pending for an artboard); no
sleep or checkedAt comparison is needed.
node app/ryugi-artifacts.cjs check --json --project-dir /path/to/project --artifact artboard/settings-nav
# {"type":"checked","artifact":"artboard/settings-nav","checkedAt":"…","warnings":[],"pending":[]}
Fix every warning. For html this includes runtime: … lines: errors
the page threw in their browser. They only count once "ran": true
shows the new version has loaded there; until then, an empty list
means "not run yet", not "no errors".
Tell them what changed, give the link, and ask for their answer in the
terminal. For a document, an html page or static boards, send that
message as soon as check is clean; screenshots or browser checks of
your own come after it, reported in the next message. Playable boards
follow artboard.md.
When the conversation moves on, leave the artifact as it is; it's the record of what was explored.
app/codex-comment-watch.cjs (opens in a new tab)app/codex-hooks.json (opens in a new tab)app/comment-subscriptions.cjs (opens in a new tab)app/comment-threads.cjs (opens in a new tab)app/comment-watch.cjs (opens in a new tab)app/ryugi-artifacts.cjs (opens in a new tab)artboard-prototype.md (opens in a new tab)artboard.md (opens in a new tab)claude-artifacts.md (opens in a new tab)document.md (opens in a new tab)examples/today-inbox.html (opens in a new tab)html.md (opens in a new tab)icons.md (opens in a new tab)ui.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub 2233admin/ryugi-legacy --plugin ryugi8 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation)./executing-specsUse when an approved spec or design document is ready to implement and your human partner chose inline execution, or when they point you at a written design and ask you to build it in this session/systematic-debuggingUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes