Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add open-octo/octo-agent --skill artifact-designgit clone --depth 1 https://github.com/open-octo/octo-agentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/open-octo/octo-agent/artifact-design)<a href="https://agentmods.dev/skills/open-octo/octo-agent/artifact-design"><img src="https://agentmods.dev/badge/skills/open-octo/octo-agent/artifact-design/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/open-octo/octo-agent/artifact-design"><img src="https://agentmods.dev/badge/skills/open-octo/octo-agent/artifact-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00195 | $0.02799 |
| Opus 5 | $0.00097 | $0.01399 |
| Sonnet 5 | $0.00039 | $0.00560 |
| Haiku 4.5 | $0.00019 | $0.00280 |
Grade A, and why
artifact-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Artifact design
An artifact is any .html/.htm/.md/.markdown/.png/.jpg/.jpeg/.gif/.svg/.webp
file the agent produces. Writing one through write_file/edit_file surfaces it
automatically in the web UI's Artifacts panel; a file built some other way (a
script, a build step, a download) needs one show_artifact call with its
absolute path. This skill is about what to put inside the HTML — read it
before writing the first line.
If the page contains any chart, graph, plot, heatmap, sparkline, or stat
tile, read references/charts.md before writing the chart — chart-type
selection, the color system (with a validated default palette in
references/palette.md), legend/axis/tooltip conventions, and chart
legibility at the panel's docked width.
How the panel actually works — design within these constraints
- The page runs on its own origin — a real one, not the app's. HTML
renders from
http://<token>.artifacts.localhost:<port>/inside a frame, so everything a normal web page can do locally works:localStorageand IndexedDB persist,<a download>saves a file,requestFullscreen()and pointer lock work, WebGL and Web Audio work. Its network is fenced by a Content-Security-Policy: the page may load from and talk to its own origin and the allowlisted CDN hosts below, and nothing else — nofetchto other APIs, no images or media from other hosts, no reaching octo's/api. Data the page needs must be in the page or in a file beside it; do not write code that calls external services or octo's API from inside the page. - Files beside the page load by relative path.
<script src="./app.js">,<link href="./style.css">,<img src="./chart.png">,loader.load('./model.glb'), fonts, audio and video in the same directory (or a subdirectory) are served with the page. Only page-asset types are: images,.css/.js/.mjs/.json/.wasm/.csv/.txt/.xml,.glb/.gltf/.bin/.obj/.mtl/.hdr,.woff/.woff2/.ttf/.otf,.mp3/.wav/.ogg/.mp4/.webm. A second.htmlis not — one entry page per artifact. A single file is still the simplest artifact; split into sibling files when the page has a real script or a binary asset (a model, a font, a recording) that would be absurd to inline. - External references are allowlist-gated, and the allowlist is enforced.
A
<script src=…>/<link rel="stylesheet" href=…>pointing at another host may only use these CDN hosts; anything else is stripped before rendering, under a banner saying how many were removed:cdnjs.cloudflare.com,cdn.jsdelivr.net,unpkg.com,fonts.googleapis.com,fonts.gstatic.com, and the mainland-China mirrorscdn.bootcdn.net,cdn.staticfile.org,cdn.staticfile.net,registry.npmmirror.com. Pin exact versions; if the user is in mainland China, prefer the CN mirrors. Reach for a CDN only when the page needs a real library (React, ECharts, Chart.js, three.js, …) — a page that depends on one shows nothing when that host is unreachable. Relative references are not external and are never stripped. - The default viewport is narrow. The panel is a 420px-wide docked
sidebar by default; the user can maximize it to
min(900px, 75vw), but don't design for that as the common case. Build the layout to read cleanly at ~380–420px first, then let it use extra space gracefully above that — not the other way around. This is the opposite of most artifact platforms, where the canvas starts wide. Multi-column layouts, wide tables, and side-by-side diagram lanes need an explicit@media (max-width: 720px)(or tighter) fallback to a single column, or they'll clip or force horizontal scroll in the default view. - Theme support is one-directional. Only
@media (prefers-color-scheme: dark)is a live signal in octo today — the panel does not push its own light/dark toggle state into the iframe (unlike some other artifact hosts). Still write:root[data-theme="dark"]/:root[data-theme="light"]overrides alongside the media query — they're free, harmless if unused, and correct if that wiring ever lands — but don't rely on them being live; the media query is what actually renders today for most users. - Update in place, not by versioning. Re-running
write_file/edit_fileagainst the same absolute path updates that same panel entry rather than creating a new one. If you're iterating on a diagram, keep writing the same file. - No title/gallery metadata to set. The panel derives the display name
from the file's basename and its type label from the extension — there is
no favicon or description field to populate. A
<title>tag is harmless but cosmetically inert here. - Markdown gets code-block styling for free (the panel inlines a
highlight.js theme for
.mdpreviews) — don't hand-roll code-fence CSS in a Markdown artifact; that's only a concern for HTML artifacts.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago Changed · +18 lines · +13 tokens per session cd15c8455e66
- 8d ago Changed · +6 lines · +7 tokens per session 91ec82d5d913
- 12d ago First seen · 149 lines · 175 tokens per session scan A 9c3347dbe871
artifact-design is a skill published in the GitHub repository open-octo/octo-agent (99 stars, last pushed today), licensed MIT. It adds 195 tokens to every session and 2,799 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
mermaid-diagram
Use when the user asks for a flowchart, architecture diagram, sequence diagram, ER diagram, state machine, gantt chart, or any visual that fits Mermaid syntax. Hope Agent's chat renders Mermaid blocks natively, so the diagram appears inline.
claude-design
Design one-off HTML artifacts (landing, deck, prototype).
sketch
Throwaway HTML mockups: 2-3 design variants to compare.
design-md
Author/validate/export Google's DESIGN.md token spec files.
baoyu-infographic
A generator for infographics, which are visual summaries that organize information with text, shapes, and relationships. It combines one of 21 information layouts with one of 21 visual styles and supports custom sizes and languages.
architecture-diagram
Dark-themed SVG architecture/cloud/infra diagrams as HTML.