using-open-artifacts

Installation
SKILL.md

Open Artifacts

Publish a self-contained HTML, Markdown, or React artifact the user can share by URL. The viewer keeps the artifact body in a sandboxed iframe and owns the service chrome, theme switcher, version picker, comments, and optional Live or Handoff controls. Artifacts keep immutable versions; a channel can keep one URL across later publishes.

The publishing CLI is bundled at scripts/artifact.mjs next to this file. Skill install locations vary by agent (for example, .claude/skills/ or another Agent Skills directory), so resolve the directory containing this SKILL.md as SKILL_DIR, then use a task-local ARTIFACT_CLI="$SKILL_DIR/scripts/artifact.mjs". Run node "$ARTIFACT_CLI" ... from the project root. There is no globally installed artifact binary, and Recipe paths are resolved relative to the project-root working directory. The CLI requires Node.js 22 or newer.

Setup (once per project)

Installs
61
GitHub Stars
75
First Seen
Jul 5, 2026