Builds native HTML UI prototypes with reusable UI packs, DOM annotations, in-browser editing, review pins, an authoring server, element inspector, and multi-state screenshots. Use for reconstructing UI in HTML, creating product annotations, editing prototype styles, or capturing prototype states.
Ships in ai-html-annotation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
node <skill-root>/scripts/resolve-pack.mjs --list, then node <skill-root>/scripts/resolve-pack.mjs --pack=<pack-id> --select=<preset, pattern, or component id> and read only the minimal file closure it outputs.<prototype-name>/ delivery directory per shared generation contract §7; route all business state through PrototypeViewers, and use the Runtime copy as-is for the formal Client Runtime.npm test at the repository root; start the authoring server or scenario screenshots only when the task needs them.Read only the entry that matches the current task; do not read all references at once:
| User goal | Required entry | Main output or tool |
|---|---|---|
| Generate, rebuild, or heavily change UI | UI generation | HTML prototype and on-demand UI components |
| Install or download missing UI packs | Pack install | scripts/install-pack.mjs |
| Understand Viewer, note cards, SVG connectors, or interaction lightning | Product annotations | snapshot + Client Runtime |
| Start the authoring environment, direct edit, edit notes, or jump to source | Local authoring | runtime/server/index.mjs + Author Tools |
| Add or change a sketch-board component | Sketch board components | pack manifest.json atoms + data-pack-atom |
| Add review pins to a page, export For AI | Review mark | runtime/author/tools/mark/ |
| Batch screenshots by page state | Scenario screenshots | runtime/cli/screenshot.mjs |
| Prepare final files | Delivery & iteration | Final delivery files |
| Final check before delivery | Delivery checklist | Per-item checkboxes |
When generating or heavily changing UI, read the shared generation contract first; for other tasks read the matching entry above without reading the full contract.
For visual tasks, discover packs, pick a foundation and providers via the UI pack catalog, resolve the minimal closure, and follow the consumer pack rules. When no pack is installed, follow Pack install.
scripts/ holds the agent's deterministic tools. runtime/ is split by execution boundary: client/ formal browser runtime, author/ browser authoring tools (including the sketch board), server/ local Node authoring service, cli/ standalone command-line tools. Only runtime/client/ is copied into a prototype. runtime/author/, runtime/server/, and runtime/cli/ stay in the skill.
ponytail: — in-place comment marking an intentional prototype shortcut or uncollected state; replace it after you have real screenshots, computed styles, or interaction evidence.runtime/client/core/display-mode.js, runtime/client/core/state.js, runtime/client/notes/model.js, runtime/client/notes/viewer.js in order; state.js provides the single PrototypeViewers state source, model.js handles only note scenario metadata and pure when matching, and Notes Viewer handles only DOM/connector rendering. Do not fold these responsibilities back into the Viewer.prototype/notes.snapshot.js only through runtime/server/index.mjs + Notes editor; do not inline a notes editor in prototype.html and do not store formal notes in localStorage.runtime/author/sketch/ is an authoring-session page. Do not copy it into <prototype-name>/.README.md (opens in a new tab)README.zh-CN.md (opens in a new tab)addons/annotations/ADDON.md (opens in a new tab)addons/annotations/ui-annotations.html (opens in a new tab)agents/openai.yaml (opens in a new tab)references/delivery-checklist.md (opens in a new tab)references/delivery.md (opens in a new tab)references/generation-contract.md (opens in a new tab)references/local-authoring.md (opens in a new tab)references/pack-install.md (opens in a new tab)references/product-annotations.md (opens in a new tab)references/review-mark.md (opens in a new tab)references/screenshots.md (opens in a new tab)references/sketch-board.md (opens in a new tab)references/ui-generation.md (opens in a new tab)runtime/author/bootstrap.js (opens in a new tab)runtime/author/core/modes.js (opens in a new tab)runtime/author/core/picker.js (opens in a new tab)runtime/author/core/platform.js (opens in a new tab)runtime/author/core/selector.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
HTML, CSS, JavaScript, Node
2 skills in this plugin
/ai-html-annotation:html-prototype-buildfrom ai-html-annotation
npx claudepluginhub lisuiwen/ai-html-annotation --plugin ai-html-annotationOther plugins' skills for the same job