html-artifacts
A Claude skill for producing self-contained HTML artifacts instead of markdown when the task warrants it. And for knowing when it doesn't.
Markdown has become the dominant file format used by agents to communicate with us. It's simple, portable, has some rich text capability and is easy for you to edit. But as agents have become more and more powerful, I have felt that markdown has become a restricting format.
— Thariq Shihipar, The Unreasonable Effectiveness of HTML
This skill operationalizes the recognition heuristic and per-category patterns from Thariq's post. It triggers on requests where HTML lands harder than markdown (comparisons, plans, code reviews, explainers, post-mortems, dashboards, custom editors) and stays out of the way for everything else.
→ See the live examples · Changelog · Latest release
What's new in 2.0
The first version taught Claude how to write HTML. Models no longer need that. Version 2.0 spends the skill's budget on judgment and verification instead:
- Verify before delivering. A new universal rule: if a browser is available, render the file headless, screenshot it at desktop and phone width, check the console, fix what you see. If no browser is available (Claude.ai chat, a surface without a shell), a read-through checklist runs instead, and the skill never stalls waiting for tooling it doesn't have. This one rule fixes more bad artifacts than any styling advice.
- A sharper "stay in markdown" section. Over-triggering is the failure mode Thariq warned about. The carve-outs are now concrete, and the eval suite tests them.
- Four new references. Data and charts (SVG, no library), accessibility and print, harness mechanics (the one file that knows which surface you're on), and the pre-delivery check.
- Facts fixed. Storage rules in artifacts, the CDN allowlist, the
data-theme toggle alongside prefers-color-scheme, no hardcoded paths.
- Evals. Seven behavioural cases for
claude plugin eval, four that should trigger and three that must not. Every run compares against a no-skill baseline, so the number you see is what the skill adds.
- Distribution. A plugin marketplace, so Claude Code users get updates. A release workflow builds the Claude.ai zip from source so it can't drift.
- Examples. Nine now, up from six: annotated code review, design-token sheet, and incident post-mortem are new. All nine pass the skill's own rules, including keyboard support and both themes, and were rendered headless before shipping.
Install
Claude Code (recommended)
/plugin marketplace add dogum/html-artifacts
/plugin install html-artifacts@html-artifacts
Updates arrive with /plugin update.
Claude.ai, Cowork, cloud sessions
- Download
html-artifacts.skill from the latest release.
- Open Claude.ai → Settings → Capabilities → Skills.
- Upload the file. Re-upload to update.
Manual, or any Agent Skills-compatible runtime
git clone https://github.com/dogum/html-artifacts.git
cp -r html-artifacts/skills/html-artifacts ~/.claude/skills/
The folder containing SKILL.md is what loads. The frontmatter uses only Agent Skills spec fields, so it works outside Claude too.
What this skill does
Markdown is fine for chat replies, code snippets, and quick summaries. It's a poor format for content that benefits from spatial layout, color, real diagrams, interactivity, or a round-trip editor. This skill teaches Claude to recognize when a task is in the second bucket, produce a single self-contained .html file, check it, and hand it over.
It is not "always answer in HTML." There is an explicit carve-out for short replies, code-only outputs, terminal-style answers, disposable summaries, and files that live in git. The evals hold the skill to that.
How it's structured