Index of every page on this site: llms.txt
All skills
lisuiwen avatar

/html-prototype-build

@a9e5235
Run it yourself

Build, annotate, review, screenshot, and deliver native HTML UI prototypes with AI agents using reusable UI packs, DOM-bound product annotations, in-browser Direct Edit, browser review pins, a local authoring server, an element-to-source Inspector, and multi-state screenshots. Use when the user mentions /html-prototype-build or asks to reconstruct UI in HTML, create product annotations, edit prototype styles, review or mark DOM elements, capture prototype states, package prototype deliverables, or add components to the module sketch board. Works with Claude Code, Codex, Cursor, and other Agent Skills clients; do not use for generic source-code navigation, ordinary documentation, or production frontend development.

Use this Skill: https://skilld.dev/gh/lisuiwen/ai-html-annotation/html-prototype-build

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

HTML Prototype Build

中文

An HTML product-prototype Skill for AI agents: generate pages from UI packs, maintain formal notes on the real DOM, review and jump to source, and output scenario screenshots for delivery.

Installation, product demo, and repository-level overview live in the repository README. Product docs (guide, quickstart, UI packs) live in docs/. This file covers how to use the Skill; concrete commands and step-by-step operations live in references/.

Who it is for

  • Collaborate with an agent: hand requirements, screenshots, or an existing page to an agent and let it generate or modify the prototype with this Skill.
  • Review and iterate yourself: use the authoring server to open the generated prototype, view notes, switch scenarios, add review feedback, and tweak styles or copy directly — without re-describing the page structure every time.
  • Prepare deliverables: keep "formal prototype files" and "authoring-session tools" separate, and produce clean multi-state page screenshots.

It is not meant as a general frontend scaffold or production code generator; its goal is reviewable, annotatable, screenshotable prototype delivery.

What you get

A complete task typically yields three outputs:

Output Role
Runnable HTML prototype Native page; double-click to preview, or open via the local authoring server
notes.snapshot.js Single source of truth for formal notes, scenario states, and the screenshot manifest
Per-scenario PNGs Clean page screenshots without the notes rail, connectors, or author tools

Formal prototypes keep only semantic DOM, stable anchors, and the read-only Viewer; Mark, Direct edit, Notes editor, Inspector, and the local authoring server all belong to the authoring layer and never enter the delivered HTML.

Typical usage

No need to memorize commands — work by intent:

  1. create or heavily change a page Enable this Skill in Cursor, Claude Code, Codex, or other clients, describe the requirement in natural language or attach materials, and let the agent generate prototype.html and prototype/. Constraints and task routing: SKILL.md.
  2. Keep working on the page To change styles or notes, drop review pins, or jump from an element back to source, operate through the local authoring server in the browser. Direct edit and Mark share the Author Tools panel; capabilities are described in Local authoring and Review mark.
  3. Capture scenarios or deliver For batch clean-page screenshots or final file assembly, see Scenario screenshots and Delivery & iteration.

The examples/minimal-notes-system sample inside the repo is a minimal runnable reference.

Capability overview

Native HTML prototype
   │
   ├── Viewer: formal notes on the right, scenario switching, SVG connectors
   ├── Direct edit / Mark: tweak page styles or drop review pins, export selectors and element snapshots for AI
   ├── Notes editor: edit formal note cards
   ├── Inspector: jump from a page element to local IDE source
   ├── Sketch board: place pack atoms on a free canvas and copy a reference image to the clipboard
   └── Screenshot: output clean page PNGs per snapshot scenario

The same business state drives page notes and scenario switching as well as multi-state screenshots, so there is no drift between the "visual mock" and the "runnable page".

Environment & optional configuration

  • Requires Node.js 18+; the Skill ships its own runtime and scripts with no extra npm packages.
  • Batch screenshots need Microsoft Edge or Google Chrome on your machine.
  • To use Inspector source-jump, configure your local IDE in this directory following .env.example; that file is for personal environments only — do not commit it.

Where to look next

To understand… See
What to make the agent do, hard constraints SKILL.md
Task-specific instructions (with commands) Matching entry under references/
How to pick and install UI packs ui/catalog.md, Pack install
Authoring or publishing UI packs ui-pack-maintain skill
Product guide, quickstart, UI packs Product docs
Repository install and feature overview Repository README

This file only explains what the Skill is for and how to collaborate; concrete commands, step-by-step operations, and agent contracts are maintained per-task in the documents above.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings25d3 checks · Risk SAFE
  • Gen Agent Trust Hub25d

    The skill is a professional-grade toolkit for creating and reviewing HTML prototypes. It provides a local authoring environment, browser-based editing tools, and a mechanism for managing UI components. Security analysis indicates that the skill implements robust safeguards, including loopback-only server binding, request origin validation, and path traversal protections. External downloads are confined to the author's verified repository.

  • Socket25d

    2 alerts: gptAnomaly

  • Snyk25d

    Risk: MEDIUM · 1 issue

Signed by skilld at a9e5235. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated last month

README badge

README badge for lisuiwen/ai-html-annotation/html-prototype-build