cw/skills/interactive-artifact/SKILL.md
Build a self-contained HTML file that makes structured information explorable through interaction — clicking, filtering, sorting, expanding. Default to Mermaid diagrams; choose a different interaction pattern when the data calls for it.
npx skillsauth add haowjy/creative-writing-skills interactive-artifactInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A single HTML file that opens in a browser. The viewer clicks, filters, or expands to explore — not just read.
height: 100vh, flex column).
Navigation and detail are collapsible sidebars with width transitions, not fixed
headers or overlays. Content area gets all remaining space..dark to <html>. Include a ☀/🌙 button in the toolbar.<script> tags. One HTML file, no npm, no bundler.resources/layout-and-theme.md has the concrete layout, theme, and mobile patterns
shared across all interaction patterns.
Default to Mermaid diagrams when information has relationships or flow. Pick a different pattern when the data is better served by it:
| Pattern | When to use | Resource |
|---|---|---|
| Explorable diagram | Dependencies, flow, system maps | resources/explorable-diagram.md |
| Data table | Records with sortable/filterable columns | resources/data-table.md |
| Data chart | Quantities, trends, distributions | resources/data-chart.md |
| Timeline | Chronological events with detail | resources/timeline.md |
| Tree / TOC | Hierarchy navigation, document outline | resources/tree-and-toc.md |
| Card grid | Items with summary + expandable detail | resources/card-grid.md |
| Diff / comparison | Before/after, version diff | resources/diff-view.md |
For custom node rendering, drag, or live filtering on graphs beyond what Mermaid
offers, see resources/experimental-react-flow.md.
tools
Use when orienting in an unfamiliar area — fans out exploration across structure, knowledge, and history, then synthesizes one orientation map.
development
Load when building a static HTML artifact — single page or multi-page site — to make structured information explorable through layout and navigation.
testing
User-invoked pause before reporting to check intent vs literal completion, surface adjacent wins, and route knowledge capture.
development
Use when exploring or changing the codebase: read AGENTS.md first, use .context/CONTEXT.md for detail, keep intent docs succinct.