Skip to content
Back to skills

Arakun Artifacts

ASecurity

Create, change and export artifacts in Arakun - one self-contained HTML page per artifact in the project's artifacts/ folder, shown live in the Artifacts tab - including scenes, animated isometric illustrations in Arakun's line-iso style drawn in real 3D with the artifact kit. Use without being asked whenever an answer is clearer as a picture or a page than as text - any illustration, diagram, chart, dashboard, comparison, report or slide deck - and when the user asks for an artifact, a page ...

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
developmentjavascriptgojavanodeawsapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add ArakunHQ/arakun --skill arakun-artifacts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Arakun Artifacts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Arakun Artifacts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arakunhq-arakun-artifacts/badge)](https://www.skillsdirectory.com/skills/arakunhq-arakun-artifacts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: arakun-artifacts
description: Create, change and export artifacts in Arakun - one self-contained HTML page per artifact in the project's artifacts/ folder, shown live in the Artifacts tab - including scenes, animated isometric illustrations in Arakun's line-iso style drawn in real 3D with the artifact kit. Use without being asked whenever an answer is clearer as a picture or a page than as text - any illustration, diagram, chart, dashboard, comparison, report or slide deck - and when the user asks for an artifact, a page to look at or share (an interactive explainer, a small tool, a prototype, a report), an isometric illustration, an animated product diagram, a hero or feature illustration "like illos", or to fix or polish a page in artifacts/*.html.
---

# Artifacts in Arakun

An artifact is one HTML page in the project's `artifacts/` folder:
`artifacts/<name>.html`. The Artifacts tab (rail → Artifacts) lists the
folder's pages and reloads one the moment it or a file beside it is saved.
The same file, exported, opens in any browser with nothing beside it. Write
it for that: a page that runs on its own.

## When to make one

Make an artifact without being asked whenever a picture, a page or a small
tool explains better than prose. In a chat, every illustration, diagram,
chart, dashboard, comparison, report, slide deck and interactive explainer is
an artifact, not a drawing in the reply: the row of the file you wrote has an
**Open artifact** button, and the person can turn it, step through it, keep
it, export it and share it by link. Pick a short file name that says what it
is, and say in one sentence what it shows. A plain answer stays text. Only a
session that may not write files (plan or read-only mode) draws in the reply
instead, with a `mermaid` or `chart` fenced block.

New artifact and Change in the tab start a session whose first prompt names
the one file to write. Write exactly that file and keep its name: the tab
selects it as soon as it appears. A prompt that says the page is a copy of
one that ships with Arakun means the file already holds it; edit it in place.

`arakun artifact example hello` prints a complete plain page that ships with
Arakun; `example orrery`, `billing`, `cpu`, `ec2` and `raccoon` print scenes
drawn with the kit, `example pipeline` and `example architecture` diagrams, and
`example dashboard`, `example report` and `example deck` a dashboard, a document
and slides. Copy their structure.

## The kit

A page may load Arakun's kit, and only this one script, from an absolute
path:

```html
<script src="/_kit/kit.js"></script>
<script type="module">
const { scene, slab, cylinder } = arakun;
scene({ seconds: 4 }, ({ t, tau }) => [
  slab([0, 0, 0], [120, 80, 8], 10),
  cylinder([60, 40, 8], 14, 20 + 10 * t).accent(),
]);
</script>
```

The kit gives the page Arakun's looks (CSS variables `--ink`, `--ground`,
`--accent`, `--mute` and the Geist fonts; the reader picks one from the Look
menu, or makes their own), `arakun.diagram` (below), and
`arakun.scene`: an animated
scene in real 3D that the reader can turn, in the line-iso style or lit, with
its own play, timeline, Guide steps and export controls. Use a scene when the
user asks for an illustration, an isometric drawing or something to look at
from all sides. Write the page's own script as `<script type="module">`: in a
classic script `const { top } = arakun` is a syntax error, because
`window.top` exists.

### Diagrams

Use `arakun.diagram` when the user asks for a flowchart, a pipeline, an
architecture or service map, a state machine or "how X talks to Y": boxes
and arrows whose places do not matter, only what connects to what. The kit
lays it out; never place nodes by hand in SVG or CSS. Use a scene instead
when the picture itself is the point.

```html
<script src="/_kit/kit.js"></script>
<script type="text/plain" id="graph">
flowchart LR
  user([User]) --> api[API]
  subgraph core [Core]
    api --> auth{Signed in?}
    auth -->|yes| orders[Orders]:::accent
    orders --> db[(Database)]
  end
  auth -->|no| login[Sign-in page]
  %% step 1: user, user-->api, api
  %% caption 1: Every request enters through the API.
  %% step 2: api-->auth, auth, auth-->orders, orders, orders-->db, db
  %% caption 2: A signed-in user reaches the orders.
</script>
<script type="module">
arakun.diagram("#graph");
</script>
```

- Write the graph as Mermaid `flowchart` text in a
  `<script type="text/plain" id="graph">` and pass `"#graph"`. In that
  element `-->` and `<br/>` are plain text; in a JavaScript string they
  need escaping, and in the page's markup they break it.
- `flowchart TD` for hierarchies and service maps, `LR` for pipelines and
  sequences of steps. Give every node a short label; put detail in a second
  line with `<br/>`. Label only the edges that need it.
- `subgraph id [Title]` frames what belongs together. `:::accent` marks
  the few nodes on the path that matters; leave the rest plain.
- Steps tell a diagram as a story: `%% step N: ids` lists the nodes and
  edges (`a-->b`) step N lights, `%% caption N: text` says what happens.
  Three to seven steps, each caption one sentence.
- `arakun.diagram("#graph", { flow: true })` runs dashes along the edges of
  a diagram without steps; `{ look3d: true }` starts in the isometric
  rendering. The reader can switch both ways in the bar.
- A line the kit cannot read shows in an error panel with its number and
  the rest still draws. Look at the screenshot, and `arakun page eval
  'arakun.errors'` must print an empty list.

`arakun artifact docs` lists the Mermaid that is read, every option and the
graph-as-data form.

### Charts, dashboards, documents and slides

The kit also makes the pages that are numbers and words. Pick by what the
reader needs:

- **`arakun.chart({ type, title, unit, labels, series })`** when the point is
  a comparison or a trend: `bar` (also `stacked`, `horizontal`), `line`,
  `area`, `pie`. One chart can be the whole page. One number is not a
  chart: use a stat.
- **`arakun.dashboard({ title, columns }, [...])`** with `arakun.stat({ label,
  value, unit, delta, spark })` tiles and charts when there are several
  numbers to watch together. Lead with the three or four stats that matter.
- **`arakun.doc("#id", { toc: true })`** for a report, a design note, a
  summary: text with headings, tables, code and charts in it. It prints as a
  clean PDF.
- **`arakun.slides("#id")`** when it will be presented: the same Markdown,
  a line of `---` between slides, arrow keys, one slide per printed page.

Write the Markdown of a document or a deck in a script the browser does not
run, and name it:

````html
<script src="/_kit/kit.js"></script>
<script type="text/markdown" id="report">
# Cold start report

The app took **2.4 seconds** to open. Now it takes 0.9.

```chart
title: Cold start
unit: ms
Before: 2410
After: 890
```
</script>
<script type="module">
arakun.doc("#report", { toc: true });
</script>
````

Nothing in it needs escaping, with one exception: the text `</script`
cannot appear inside. A fenced `chart` block is the JSON of a chart spec or
lines of `label: value`. HTML written in the Markdown is shown as text, so
lay things out with Markdown, not with tags. These pages follow the look
switch in the bar, so do not add `prefers-color-scheme` styles to them, and
give a chart real labels and a `unit`: the kit does the ticks, the legend,
the tooltip and the table for screen readers.

Before you write a scene, read `scenes.md` (how to work, the style, motion,
the review checklist) and `reference.md` (every shape, modifier and helper),
both next to this file. `arakun artifact docs` prints them after this guide,
and then the kit's own README: the bar, the looks, the options of charts,
stats, documents and slides, and the hooks (`arakun.ready`,
`arakun.capture`, `arakun.errors`). Export writes the kit into the page, so a
scene still opens anywhere as one file.

## The page

- **One file.** Put the CSS in a `<style>` and the script in a `<script>`.
  Split a file out (`artifacts/<name>.css`, a JSON of data, a picture) only
  when it is large; load it with a relative URL. Export writes scripts, style
  sheets and `src` pictures, sound and video back into the page, and the
  modules its scripts import with a relative path (`import … from "./x.js"`,
  `import("./x.js")` with a plain string, JSON modules too). It does not
  follow `url(...)` in CSS, `fetch`, or an `import` built from a variable:
  what the page loads that way must stay beside it, so prefer writing it into
  the page.
- **Nothing from the network.** The kit at `/_kit/kit.js` is the one
  exception to "relative URLs only". No CDN scripts, web fonts or remote images:
  the page must work offline and when shared. `arakun artifact check` names
  every address that breaks this. If you need a library, ask the user first.
- **It names itself.** `<title>` is the name the tab lists it by, and
  `<meta name="description" content="…">` the one line under it. Keep the
  title short, like a file's name, and the description one plain sentence.
- **It fills the view it gets.** The tab shows the page in a pane that can
  be narrow or wide: `<meta name="viewport" content="width=device-width,
  initial-scale=1">`, no fixed widths, and check it at 600 px and 1400 px.
- **Both color schemes**, with `prefers-color-scheme`, unless the user asked
  for one look.
- **It is a real page.** Real buttons and inputs with names a screen reader
  can say, keyboard focus you can see, `prefers-reduced-motion` honored, and
  `lang` on `<html>`.
- No secrets, tokens or private data in the page: it is made to be shared.

Only the files of `artifacts/` are served. A page cannot read the rest of the
project, hidden files, or a path with `..` in it.

## How to work

1. **Say what it is for in one sentence** before you write: what the reader
   should see or be able to do. If the user gave no goal, propose one.
2. **Write the page** in the named file.
3. **Check it:** `arakun artifact check artifacts/<name>.html` must print
   `ok`.
4. **Look at it** in the running Arakun:

   ```sh
   arakun page open "$(arakun artifact url artifacts/<name>.html)"
   arakun page screenshot     # prints the PNG's path; read it
   arakun page console        # no errors
   ```

   Use `arakun page click` and `arakun page eval` to try what the page does.
   Fix what looks wrong and look again. Expect a few rounds.
5. Tell the user the artifact is in the Artifacts tab (it is already showing
   if the tab is open on this project), and that Export HTML there saves the
   one file to share.

Share a page by link only when the user asks: anyone with the link can open
it. `arakun artifact share` prints the link; give it to the user, with the
`unshare` command it printed.

`arakun artifact url` needs Arakun running with this project open. In a
sandboxed session it is not available; check the page with `arakun artifact
check` and say that you could not look at it.

## Commands

```
arakun artifact list                     the artifacts of this project
arakun artifact check <file>             what is wrong with a page as an artifact
arakun artifact url <file>               its address in the running Arakun
arakun artifact export <file> [--out F]  the page as one self-contained file
arakun artifact share <file>             a public link to the page (only when asked)
arakun artifact shares                   the links you shared
arakun artifact unshare <id|link>        takes a link down
arakun artifact docs                     this guide, scenes.md, reference.md and the kit's README
arakun artifact example [name]           a page that ships with Arakun
```

Files in this skill

  • SKILL.md11.1 KB
  • reference.md14.1 KB
  • scenes.md9.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.