Live artifact
π¨ The open-source Claude Design alternative. π₯οΈ Local-first desktop app. πΌοΈ Your coding agent becomes the design engine: prototypes, landing pages, dashboards, slides, images & video β real files, HTML/PDF/PPTX/MP4 export. π€ Claude Code / Codex / Cursor / Gemini / OpenCode / Qwen & 20+ CLIs via BYOK.
npx -y skills add nexu-io/open-design --skill live-artifactAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Create refreshable, auditable Open Design artifacts backed by connector or local data. Trigger when the user asks for live dashboards, refreshable reports, synced views, or reusable data-backed artifacts.
SKILL.md
8.8 KB, as published. Nobody here has run it
Live Artifact Skill
Create an Open Design live artifact: a project-scoped, previewable HTML artifact whose data can later be refreshed without redesigning the presentation.
Resource map
live-artifact/
βββ SKILL.md
βββ references/
βββ artifact-schema.md β `references/artifact-schema.md`: artifact files, DTO shape, template binding rules
βββ connector-policy.md β `references/connector-policy.md`: connector safety, redaction, credential boundaries
βββ refresh-contract.md β `references/refresh-contract.md`: source metadata, refresh execution, snapshots
Current status
Use the references in this directory as the source of truth for the live artifact file contract. Prefer daemon wrapper commands over raw HTTP when registering or updating live artifacts.
When to use this skill
Use this skill when the user asks for a data-backed view that should remain useful after the first render, for example a live dashboard, refreshable report, synced status page, auditable data view, or artifact that can later be refreshed from local/project data or connectors.
Before creating files, decide whether the user actually wants a live artifact or a normal static artifact:
- Use a live artifact when the user mentions refresh, sync, recurring updates, connector-backed data, source/provenance tracking, dashboards, reports, or reusable data-backed views.
- Use a normal static artifact when the user only wants a one-off HTML/mockup/image/file and does not need refresh, source metadata, or data/provenance panels.
- If the intent is ambiguous, ask one short question: βShould this be refreshable/live, or just a static artifact?β
Workflow
-
Resolve scope and data source without blocking on connected connectors
- Identify the preview goal, audience, data freshness expectations, and whether refresh should be possible later.
- If the user explicitly names a connector/source such as Notion, GitHub, Slack, or Google Drive, do not ask βwhere should the data come from?β before checking daemon connector tools.
- Prefer local/project sources or daemon connector tools when available.
- Do not call provider APIs directly when a daemon connector/wrapper exists.
- If connector data is needed, first list connectors with
"$OD_NODE_BIN" "$OD_BIN" tools connectors list --format compact. If the named connector is present withstatus: "connected", choose an appropriate read-onlyautotool from its catalog and execute it through the connector wrapper. - For Notion specifically, a connected
notionconnector plus a user brief that names Notion is enough to start withnotion.notion_searchusing a query derived from the requested artifact/topic. Usenotion.notion_fetch_databaseonly when the user supplied a database id or the search result clearly identifies one. - Ask the user a data-source question only when no matching connected connector exists, multiple connected candidates fit equally well, or the requested artifact has no usable topic/query to search for. If you must ask, be specific: ask for the page/database/topic or permission to search broadly, not βwhere is the Notion data source?β
-
Author the source files
- Write
template.htmlas the human-designed HTML template. The daemon hydrates it withdata.jsonusing thehtml_template_v1binding contract β stay inside it or hydration fails and the raw template ships with visible{{β¦}}tokens:- Scalars:
{{data.path.to.value}}. Paths start withdata, dot-separated; numeric array indexes are allowed ({{data.kpis.0.value}}). Every binding must resolve to a single string/number, not an object or array. - Lists: repeat one element with
data-od-repeat="item in data.items", then bind loop-scoped fields inside it as{{item.label}}(or{{item}}for a scalar array). One level only;data.*still works inside the repeat for globals. - Do NOT hand-loop in a
<script>(scripts are stripped from previews), and do NOT reference a bare loop variable like{{metric.value}}without a matchingdata-od-repeatscope β that binding is unresolvable. Nested repeats, conditionals, filters, helpers, and raw/triple-brace interpolation are unsupported.
- Scalars:
- Write
data.jsonas the canonical preview data used by those bindings β real values, not placeholders. - Write
artifact.jsonwith the live artifact metadata, preview declaration, document declaration, and safe source descriptors. - Write
provenance.jsonwith concise source notes, timestamps, non-sensitive connector references, and transformation notes. - Do not author
index.htmlas source. The daemon derivesindex.htmlfromtemplate.htmlanddata.json.
- Write
-
Keep data compact and preview-oriented
- Store only normalized values needed by the preview.
- Summarize large lists, provider responses, or logs before writing them into
data.json. - Stay within the bounded JSON rules in
references/artifact-schema.md.
-
Apply safety rules before registration
- Never store credentials, OAuth tokens, API keys, cookies, auth headers, raw provider responses, HTTP envelopes, full payloads, or secret-like fields in
artifact.json,data.json,provenance.json, or source metadata. - Avoid forbidden key names such as
raw,rawResponse,payload,body,headers,cookie,authorization,token,secret,credential, andpasswordanywhere in persisted JSON. - Use escaped
html_template_v1interpolation only. Raw/unescaped HTML interpolation is not allowed.
- Never store credentials, OAuth tokens, API keys, cookies, auth headers, raw provider responses, HTTP envelopes, full payloads, or secret-like fields in
-
Register or update through daemon wrappers
-
Use the Open Design daemon wrapper commands via
"$OD_NODE_BIN" "$OD_BIN"instead of rawcurl, barenode, or bareod:"$OD_NODE_BIN" "$OD_BIN" tools live-artifacts create --input artifact.json "$OD_NODE_BIN" "$OD_BIN" tools live-artifacts list --format compact "$OD_NODE_BIN" "$OD_BIN" tools live-artifacts update --artifact-id "$ARTIFACT_ID" --input artifact.json -
The wrapper reads injected
OD_NODE_BIN,OD_BIN,OD_DAEMON_URL, andOD_TOOL_TOKEN; do not print, persist, or override token values. -
Do not include or invent
projectId; the daemon derives project/run scope from the token. -
Use raw HTTP only for daemon development/debugging when explicitly requested.
-
-
Use connector wrappers for connector data
-
Discover available connectors and tools:
"$OD_NODE_BIN" "$OD_BIN" tools connectors list --format compact -
Execute a read-only connector tool with a JSON object input file:
"$OD_NODE_BIN" "$OD_BIN" tools connectors execute --connector "$CONNECTOR_ID" --tool "$TOOL_NAME" --input input.json -
Persist only the compact normalized fields needed by the preview plus non-sensitive connector references (
connectorId,toolName,accountLabel). Never persist connector credentials, transport metadata, or raw provider output. -
Do not ask for connector secrets or duplicate setup. If
statusisconnected, use the listed tools; if it is not connected, tell the user to connect it in the UI. -
See
references/connector-policy.mdfor listing/execution and credential boundaries, andreferences/refresh-contract.mdfor read-only refresh source metadata.
-
-
Report concise results
- On success, return the artifact ID/title and note that
index.htmlis daemon-derived. - On validation failure, fix the source files and retry through the wrapper. Do not bypass validation.
- On success, return the artifact ID/title and note that
Required files
Every live artifact creation flow must produce these source files before registration:
template.htmlβ declared skill output and source template for the preview.data.jsonβ compact, canonical preview data.artifact.jsonβ create/update input for daemon validation.provenance.jsonβ safe source and transformation summary.
index.html is the primary preview entry declared in frontmatter, but it is derived daemon output rather than agent-authored source.