Agent Skill (html-prototype-build): generate, annotate, review & deliver native HTML prototypes for Claude Code, Cursor & Codex — real-DOM notes, AI-ready selectors, UI packs, multi-state screenshots.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
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.
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.
Mark, Direct Edit, and Inspector are parallel options after Viewer, not a required sequence.檢視完整 README ↗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
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.
Walkthrough video: media/hero-main.mp4 (GitHub may not autoplay — open the file).
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.
Hold Ctrl (macOS: ⌘) and click an element to drop a removable review pin. Then Copy all → For AI exports selectors plus element HTML.
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.
Hold Alt + Shift, hover to see the selector, click to open that location in your local IDE.
Multi-state screenshots hide the annotation rail, connectors, and Author Tools. Formal HTML can still show Viewer; the PNGs are the product page only.
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 when you need to:
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.
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/minimal-notes-system (admin desktop).examples/mobile-work-order (mobile H5, mobile-vant).Skill references, UI pack contracts, and addon docs are in English.
Local Author Tools, pack install, and screenshot commands: Local authoring, Pack install, Screenshots. Agent routing: SKILL.md.
.claude-plugin/marketplace.json Claude Code marketplace catalog
.html-prototype/packs/ Official UI packs
skills/html-prototype-build/ Prototype build Agent Skill
skills/ui-pack-maintain/ UI pack authoring Agent Skill
examples/ Runnable samples
media/ README demo assets
docs/ Product docs
127.0.0.1 only. Do not run authoring or screenshots against untrusted HTML..env local for IDE selection; never commit it.localStorage and may copy to the clipboard. Neither is injected into source HTML.Experimental 0.x; APIs and layout may change. See .github/CONTRIBUTING.md and .github/CODE_OF_CONDUCT.md. Report vulnerabilities privately per .github/SECURITY.md.
UI packs are original native-HTML visual simulations. They do not bundle third-party design-system code; vendored libraries (for example Apache ECharts in admin-desktop) ship inside the pack and are listed in NOTICE.
MIT. Third-party attribution is in NOTICE (html-mark credit and Apache ECharts).