html-artifact turns already-produced complex Human-Agent output into a self-contained, reading-first HTML artifact.
It is designed for moments when a plan, research summary, code review, tradeoff, decision tree, or long explanation is too dense to hand back as plain chat or Markdown. The skill does not redo the upstream thinking. It restructures the existing substance into a portable HTML file that a human can read quickly, navigate, and hand back to an agent or memory system through Markdown export.
Karpathy's HTML prompt pattern proves that HTML is a strong medium for agent output. This skill turns that one-off trick into a reusable output protocol.
Appending "structure this as HTML" to a prompt can work, but the result is inconsistent: sometimes it is only Markdown wrapped in HTML, sometimes it becomes decorative, sometimes it forgets export, and sometimes it leaks into app-building or upstream analysis. html-artifact gives the agent stable defaults: structure before style, reading before interaction, self-contained files, no remote dependencies, and Markdown export for handoff.
Use a prompt line for one-off experiments. Install the skill when you frequently ask agents to produce complex plans, reviews, research summaries, comparisons, or decision records and want a predictable way to turn them into readable, portable artifacts.
In short: HTML is the human reading layer; Markdown export is the agent and memory handoff layer.
- A single
.htmlfile saved by default underartifacts/html/{timestamp}-{topic}.html - Inline CSS and JavaScript only
- No CDN, remote scripts, analytics, network requests, remote fonts, or build step
- A clear top-line answer, scan-friendly structure, and lightweight local interactions
- Optional embedded Markdown export, usually exposed through a
Copy Markdownbutton
- Not a web app generator
- Not a dashboard framework
- Not a template engine
- Not an upstream research, planning, or review agent
- Not a transcript-to-HTML wrapper
Recommended install:
npx github:Mel0day/html-artifact-skill installThis installs:
- Codex skill:
~/.agents/skills/html-artifact - Codex slash prompt:
~/.codex/prompts/html.md - Claude Code skill:
~/.claude/skills/html
After installation, invoke it with:
/html
To replace an existing install:
npx github:Mel0day/html-artifact-skill install --forceInstall only one agent target:
npx github:Mel0day/html-artifact-skill install --codex-only
npx github:Mel0day/html-artifact-skill install --claude-onlyIf the package is published to npm, the command becomes:
npx html-artifact-skill installYou can also provide a topic or content hint:
/html turn this code review into a readable artifact
- Product plans and execution plans
- Research summaries and source-backed briefs
- Option comparisons and tradeoff decisions
- Code review findings
- Architecture decisions
- Long explanations that need layers, navigation, or expandable detail
- Conversation synthesis where the useful substance is scattered across many turns
An artifact is considered successful when:
- The reader can understand the topic and conclusion within five seconds.
- The structure is clearer than the source output.
- The interactions reduce reading or handoff effort.
- The file is portable and self-contained.
- The result can continue the Human-Agent loop through copy/export affordances.
bin/install.js # npx installer for Codex and Claude Code
html-artifact/
SKILL.md # Skill instructions
agents/openai.yaml # Optional agent metadata
examples/complex-output-draft.md # Example source content
examples/output-shape.md # Expected artifact shape
.codex/prompts/html.md # Optional /html slash prompt
package.json # npm/npx package metadata
README.md # English documentation
README.zh-CN.md # Chinese documentation
This repository includes a distributable archive under dist/ after packaging:
mkdir -p dist
zip -r dist/html-artifact-skill-v0.1.1.zip html-artifact .codex bin package.json README.md README.zh-CN.md CHANGELOG.md LICENSE -x "*.DS_Store"- Reading first, interaction second
- Structure before style
- Preserve substance, not full transcripts
- Keep local files portable
- Use light interactions only when they help comprehension
- Export concise Markdown for agent handoff or Obsidian-style memory storage
MIT