For coding agents

Your agent writes Markdown.
Your readers get a page.

Plans, reports and visuals come out of a short Markdown file as one polished HTML page, with diagrams, charts, drill-downs and diffs. One more command publishes it as a link.

$npm i -g @phnx-labs/artifacts-cli See how it works
Apache-2.0 · Node 20 or later
A short plan.md on the left; on the right, the rendered page with a branded cover and an interactive explorer
Three commands

Scaffold. Preview. Share.

01

Scaffold

Creates the Markdown with title, repository, branch and agent already filled in.

artifacts new plan --out plan.md
02

Preview

Renders one HTML file and serves it on your machine. It re-renders each time the agent saves.

artifacts render plan.md --open
03

Share

Publishes a link that unfurls in Slack: public, company-only, only you, or key-protected.

artifacts share plan.md
How it works

The agent writes the content. The renderer writes the page.

The agent never writes component HTML, CSS or JavaScript. It writes a few lines of data, and the renderer builds the finished, interactive component.

cleanup.mdwhat the agent writes
---
kind: visual
title: Where the dead code is
---

## Story

Most removable code sits in two services.

## Figure

```explorer
{ "title": "Removable code",
  "metric": { "label": "Removable", "unit": "%", "max": 100 },
  "items": [
    { "label": "Web", "value": 25 },
    { "label": "API", "value": 10 } ] }
```
01

It learns the format from the CLI

The artifacts skill teaches the workflow, and artifacts components --json prints each component's input with an example to copy.

02

Mistakes come back with line numbers

artifacts check rejects unknown fields, missing sections, out-of-range values and unsafe HTML before anyone reads the page.

03

The renderer adds everything else

Layout, light and dark themes, the cover, contents, collapsible sections, code highlighting, math, link previews and provenance from git.

04

Your brand, set once

Put your colors and fonts in DESIGN.md. Every artifact from every agent uses them.

How artifacts-cli works: the agent reads the skill and component catalogue and writes plan.md; artifacts check sends errors back; artifacts render combines the Markdown with components, DESIGN.md and git into one HTML file, which is previewed locally, saved to history, or shared as a link
Why

A tenth of the tokens. One look. Checked first.

2,391tokens of Markdown for the example plan
25,028tokens for the same page written as HTML

Any agent

Claude, Codex, Gemini and others render through the same design, so a page looks the same whichever agent wrote it.

Components from fences

explorer, bar-chart, diff, excerpt and field take JSON, a table or a single line.

Cites real code

An excerpt reads the lines from your git checkout and links them to the exact commit, so they can't be misquoted.

Built for reading

A contents rail, collapsible sections, link previews, a references list, highlights and notes.

One file, anywhere

The HTML works offline. Keep it in your repository, reopen earlier versions from local history, or share a link.

Safe by default

Embedded HTML and SVG are sanitized, and a page is scanned for emails and credentials before it is published.

Install

Two commands.

Needs Node 20 or later.

Install the CLI
npm i -g @phnx-labs/artifacts-cli
Teach your agents, through agents-cli
agents skills add gh:phnx-labs/artifacts-cli \
  --names artifacts --agents claude,codex -y