AI HTML Annotation
中文

Agent Skill for native HTML prototypes with real-DOM annotations — for Claude Code, Codex, Cursor, and other coding agents.
The page is the deliverable, not just a picture of one. Build from a UI pack, annotate on the live DOM, copy feedback to an AI, and ship clean multi-state screenshots.
Experimental 0.x · zero npm dependencies · MIT · Changelog
Why it exists
Chat comments never hit an element, screenshot-based HTML drifts, and spec / chat / source stay disconnected. The product guide covers why that fails, four jobs on the loop, and the numbered workflow.
generate HTML from a UI pack
│
▼
Viewer
│
├── Mark → Copy for AI (optional)
├── Direct Edit (optional)
├── Inspector (optional)
└── Sketch board (optional clipboard image)
│
▼
scenarios
Mark, Direct Edit, and Inspector are parallel options after Viewer, not a required sequence.
See it first
Walkthrough video: media/hero-main.mp4 (GitHub may not autoplay — open the file).
Review the page the way a PM would
Formal annotations sit on the real DOM. Add, edit, or browse them, switch page states, and follow SVG connectors to the matching modules — same page, not a separate spec.

Pin a problem and copy it to the AI
Hold Ctrl (macOS: ⌘) and click an element to drop a removable review pin. Then Copy all → For AI exports selectors plus element HTML.

Tweak style or copy on the live page
Author Tools → edit. Hold Ctrl (macOS: ⌘), change copy or styles (for example a background color), and save. The editor UI stays in the authoring session; it is not injected into the deliverable.

Lock the thing that looks wrong and jump to source
Hold Alt + Shift, hover to see the selector, click to open that location in your local IDE.

Deliver clean multi-state screenshots
Multi-state screenshots hide the annotation rail, connectors, and Author Tools. Formal HTML can still show Viewer; the PNGs are the product page only.

Generate from a UI pack so pages stay visually consistent
Installable visual systems — tokens, components, patterns — not bundled inside the Skill. Official packs: admin-desktop (desktop admin) and mobile-vant (phone-width H5). Customize or author a pack with the ui-pack-maintain skill when the official simulation is the wrong visual language. Details: UI packs.
Fit / not fit
Fit when you need to:
- turn UI materials into openable HTML quickly;
- review on the real page and copy precise feedback to an AI;
- iterate structure, copy, and state while keeping reproducible screenshots;
- keep admin, config, or interaction prototypes visually stable across tasks.
Not a fit as a production component library, a Figma replacement, a third-party design-system implementation, or a general frontend scaffold / production code generator.
Install
skills.sh is the default. Then install a UI pack (admin-desktop for desktop, mobile-vant for phone) and open Author Tools — steps in 5-minute quickstart.
npx skills add https://github.com/Lisuiwen/ai-html-annotation --skill html-prototype-build
Open examples/minimal-notes-system/prototype.html (desktop sample in this repo).
Claude Code marketplace is secondary: /plugin marketplace add Lisuiwen/ai-html-annotation then /plugin install ai-html-annotation@lisuiwen-agent-skills. Pack authors also install ui-pack-maintain.
Examples
Where to go next
Skill references, UI pack contracts, and addon docs are in English.
For agents