Html artifacts
Use when producing a plan, implementation plan, design doc, code review, PR write-up, architecture/code explainer, status or incident report, feature/concept explainer, comparison of approaches, flowchart or sequence diagram, design system, or an interactive editor (triage board, flag editor, prompt tuner) — anything a human reads to understand or decide. Especially when about to present a PLAN. Renders as a self-contained styled HTML file instead of a markdown wall in the CLI.From its SKILL.md
npx -y skills add sidzan/html-artifacts --skill html-artifactsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
11.2 KB, as published. Nobody here has run it
HTML Artifacts
Turn plans, reviews, reports, explainers, and diagrams into a self-contained HTML file the human can open and actually read — instead of an unscannable markdown wall in the terminal. Based on the warm "Claude/Anthropic" design language from thariqs.github.io/html-effectiveness.
Core principle
Never write the CSS or HTML from scratch. Copy the matching local template, swap the demo content for the real content, save under a NEW name, open it. The 21 templates are pre-styled, self-contained, and proven — your only job is content. This keeps the output consistent and costs almost no tokens.
What a plan/spec must contain (the spine)
A plan exists so a reader — often you, weeks later, after working three other agents — can grasp what the problem is, what the solution is, the bigger picture, and what changes in under a minute. Pretty HTML around missing content fails that. So a plan/spec has a required spine that is never dropped, and an optional tail you trim freely.
Required spine — in this order, every plan, even a one-phase one:
- Orientation block (BLUF). A short masthead callout at the very top, before anything else: what was being worked on · the problem in one sentence · the goal/intent in one sentence. This is the cold-re-entry rescue. If a reader reads only this, they know why the doc exists.
- Problem & context. 2–4 sentences: the current state, who/what is affected, why it matters now.
- Solution in plain terms. What we're going to do and what it achieves — in words a non-author understands — before any commands, file paths, or tactical detail.
- Architecture overview. The bigger picture as a diagram first (see the conditional rule below for inline vs. separate page), annotated after. Use the §4 architecture snippet — boxes + labeled relationships — not a step-1→step-2 flow.
- What changes / what's affected. A before/after diagram (§5) or a changed-components table — show the delta visually, don't make the reader infer it from prose.
- Phases / plan of work. The §3 timeline diagram + per-phase status chips. Each phase gets one plain-language line of intent before any commands.
Optional tail — drop any that aren't true: mockups, key code, alternatives considered, risks & mitigations, open questions, testing strategy.
Spec docs use the same primitives in a different order: Overview → Background/constraints → Requirements → Detailed design (+ architecture diagram) → Before/after → Implementation detail → Failure modes / rollback.
Visual-first. Lead each major section with its diagram/table/card, then annotate underneath. A non-trivial plan requires an architecture diagram or a before/after diagram — if the doc is a wall of prose, it has failed regardless of styling. Images first, words second.
Preflight gate — refuse to render a half-known plan
Before you cp a template, confirm you actually KNOW each required-spine element. If any of {the problem, the intent, the architecture/bigger picture, what changes} is missing or fuzzy, STOP. Do not render. A plan you can't fill is a plan you can't use — gather the missing piece first (ask the user, or go read the code/repo), then render. The skill cannot manufacture a problem statement or an architecture you don't have; rendering empty or guessed sections produces a confident-looking doc that misleads.
Red flags — these thoughts mean STOP and get the real input, not render:
| Thought | Reality |
|---|---|
| "I'll drop in a placeholder for now" | A placeholder spine section is worse than no doc — it reads as fact. Get the real content. |
| "The problem is probably X" | If you're guessing the problem, you don't have a plan yet. Ask. |
| "I'll leave the architecture vague" | Vague architecture is the exact failure this skill exists to prevent. Investigate or ask. |
| "I'll render what I have and fill the rest later" | "Later" ships a misleading doc now. Complete the spine first. |
| "It's a small change, the spine is overkill" | The orientation block + problem + what-changes are cheap and always true. Don't skip them. |
When to use
- The user asks for a plan, implementation plan, or design doc → ALWAYS render via this skill (don't dump the plan as chat markdown).
- A code review / PR write-up / architecture explainer / status or incident report / approach comparison / flowchart / sequence diagram.
- Any output that benefits from structure, color-coding, side-by-side layout, or a diagram.
Skip for: one-line answers, quick edits, prose meant for a README/AGENTS.md, or anything checked in as canonical markdown.
The recipe (5 steps)
Where the files live. This skill ships inside a plugin. Its bundled
templates/andreference/live under${CLAUDE_PLUGIN_ROOT}/skills/html-artifacts/— Claude Code sets$CLAUDE_PLUGIN_ROOTautomatically when the skill runs. Always reference bundled files through that variable in shell commands; never assume they sit in the user's working directory.
-
Pick the template from the router below. Read ONLY that one file — never read the others.
-
Copy it to a new file next to what it documents (or in
docs/). NEVER overwrite an existing artifact — pick a fresh name (<topic>-plan.html,<pr>-review.html, …).cp "${CLAUDE_PLUGIN_ROOT}/skills/html-artifacts/templates/16-implementation-plan.html" ./docs/<topic>-plan.htmlThe copy's real job is to lock the
<style>block and<head>— you'll usually rewrite the<body>wholesale (content changes are too pervasive for surgical edits). Carry the<style>block over verbatim; only the body content changes. -
Replace the demo content (the fictional "Acme" text/data) with the real content. Keep the
<style>block, structural class names, and masthead pattern unchanged — swap text, list items, table rows, code, mock data. Update<title>and the<h1>/eyebrow. Fill every required-spine section (see "What a plan/spec must contain"); drop only the optional-tail sections that aren't true. Trim the tail, never the spine. -
Add the diagrams the spine needs. A non-trivial plan requires an architecture diagram (§4) and usually a before/after (§5); plans with phases want the timeline (§3). Copy the block from
${CLAUDE_PLUGIN_ROOT}/skills/html-artifacts/reference/diagrams.mdinto a<section>— it already matches the palette. Lead the section with the diagram, annotate after. (Inline SVG includesxmlns="http://www.w3.org/2000/svg"— legitimate inline markup, not an external dependency.)Conditional — inline vs. separate architecture page: if the change touches schema, more than one module/component, or introduces a new cross-cutting abstraction → generate a separate
<topic>-architecture.html(copy${CLAUDE_PLUGIN_ROOT}/skills/html-artifacts/templates/04-code-understanding.html) and link it from the plan's architecture section with a "See architecture →" link. Otherwise render the architecture diagram inline in the plan. -
Verify, then open. First confirm the edit isn't botched and the spine is present:
grep -c '<link\|src="http' ./docs/<topic>-plan.html # must be 0 (external deps) grep -c '<svg' ./docs/<topic>-plan.html # >=1 (architecture / before-after / timeline diagram) grep -ci 'eyebrow\|orientation' ./docs/<topic>-plan.html # >=1 (orientation block present)Eyeball it against the spine: orientation block, problem & context, plain solution, architecture diagram, what-changes, phases. A missing spine section means go back to step 3 — don't ship it. Then open it for the human and tell them the path in one line:
open ./docs/<topic>-plan.html # macOS
Router — request → template
| User wants | Template file |
|---|---|
| Implementation plan / design doc / "the plan" | 16-implementation-plan.html |
| Compare 3+ code approaches (trade-offs) | 01-exploration-code-approaches.html |
| Compare 3+ visual/UI directions | 02-exploration-visual-designs.html |
| Code review of a PR (diffs, severity, findings) | 03-code-review-pr.html |
| Explain how some code/flow works (architecture) | 04-code-understanding.html |
| PR write-up / narrative of a change | 17-pr-writeup.html |
| Feature explainer (how X works, with gotchas) | 14-research-feature-explainer.html |
| Concept explainer (interactive, educational) | 15-research-concept-explainer.html |
| Status report / weekly update / metrics | 11-status-report.html |
| Incident / post-mortem report | 12-incident-report.html |
| Slide deck | 09-slide-deck.html |
| Annotated flowchart (pipeline, process, decision) | 13-flowchart-diagram.html |
| Custom SVG illustrations for headers | 10-svg-illustrations.html |
| Design system reference (colors/type/spacing) | 05-design-system.html |
| Component variant matrix | 06-component-variants.html |
| Animation / micro-interaction spec | 07-prototype-animation.html |
| Interaction prototype (drag, toggle) | 08-prototype-interaction.html |
| Triage / kanban board (with export) | 18-editor-triage-board.html |
| Config / feature-flag editor (with export) | 19-editor-feature-flags.html |
| Prompt tuner (live preview, with export) | 20-editor-prompt-tuner.html |
| Landing page indexing several artifacts | index.html |
Unsure which? Default to 16-implementation-plan.html for anything plan-shaped.
Rules (don't break these)
- Self-contained: all CSS/JS stays inline. No CDN, no external fonts, no build step. The templates already satisfy this — don't add
<link>/<script src>. - Keep the design system intact. Don't recolor, don't swap fonts. The palette (ivory
#FAF9F5, clay accent#D97757, slate ink, serif headings) is the point. See${CLAUDE_PLUGIN_ROOT}/skills/html-artifacts/reference/design-system.mdonly if you need a new component. - Never overwrite an existing artifact — new file every time.
- Content over decoration. Use the editor templates' export buttons (copy-as-JSON/markdown) as-is — they keep the human in the loop.
- One artifact per file. Don't merge five doc types into one mega-page.
References (load only when needed)
${CLAUDE_PLUGIN_ROOT}/skills/html-artifacts/reference/design-system.md— exact tokens, fonts, and the component class vocabulary. Read only when adding a component a template lacks.${CLAUDE_PLUGIN_ROOT}/skills/html-artifacts/reference/diagrams.md— copy-paste SVG snippets: vertical flowchart (§1), sequence diagram (§2), timeline (§3), architecture / context diagram (§4, C4-style — the one a plan's architecture section needs), and before/after "what changes" (§5). Read when step 4 needs a diagram.