Creates, extends, repairs, validates, versions, and publishes reusable UI Packs. Use when adding or changing UI Pack Foundations, Components, Patterns, Presets, design tokens, state adapters, manifests, or registry metadata, or when extracting a reusable visual system from screenshots, existing pages, or computed styles.
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; scripts run unread.
Self-contained authoring and publication workflow for UI Packs. This skill owns the pack contract, schema version rules, registry format, validator, and release metadata. It locates local packs for maintenance. It does not own download or prototype generation.
List installed packs (same lookup chain as html-prototype-build), then validate and resolve:
node scripts/list-packs.mjs
node scripts/validate-pack.mjs --pack=<pack-id|directory> --strict
node scripts/resolve-pack.mjs --pack=<pack-id|directory> --entry=<id>[,<id>...]
Pack discovery order: --pack-root= / HTML_PROTOTYPE_PACK_ROOT, then
<cwd>-upward .html-prototype/packs/, then ~/.html-prototype/packs/. Pass a filesystem
path to --pack= to skip id lookup. Details in
Pack authoring.
Before publishing pack changes:
node scripts/generate-registry.mjs
node scripts/generate-registry.mjs --check
Landing paths, create/update steps, and the consumer resolver smoke test are in Pack authoring.
Owns ui-pack-maintain | Owns html-prototype-build |
|---|---|
pack contract, schemaVersion, validate-pack.mjs, registry generation, maintenance lookup (list-packs.mjs) | consumer lookup, install-pack.mjs, deliver[] copy-out |
in-pack resolve-pack.mjs (`--pack=<id | dir> --entry=`) |
| pack lifecycle: create → validate → version → publish | prototype generation |
references/contract.md for structure and responsibility boundaries.
In creation mode, stop here for evidence. In maintenance mode,
continue to step 2.PACK.md and manifest.json, plus only the resource
entries this task touches (maintenance only).manifest.json, then run deterministic validation.registry.json when publishing or changing downloadable metadata.Evidence priority is documented in Evidence authority.
Publication references:
--pack=; this skill discovers
installed packs through the shared root chain (explicit roots, project, user cache).
It does not implement consumer download flows.PrototypeViewers, persist state, parse URLs, or register global event handlers.manifest.json as the only machine-readable index and dependency source.requires; keep conditional capabilities
in optional.components[<id>].atoms, and mark each one with data-pack-atom in
its own component.html. Mark one control per atom, not a composite demo.html-prototype-build Pack install.node scripts/validate-pack.mjs --pack=<pack-directory> --strict
The validator enforces the pack contract, including pack-local
vendor / runtime / assets and manifest.delivery. Fix every error before semantic
review. Warnings must be resolved or explicitly reported as evidence gaps.
It cannot judge whether a component boundary is useful or whether visual evidence is sufficient; delegate those questions to the semantic reviewer.
node scripts/resolve-pack.mjs --pack=<pack-directory> --entry=<id>[,<id>...] [--optional=<id>[,<id>...]]
This covers in-pack requires/uses closures only. After validation, also run the
consumer resolver check in Pack authoring.
Cross-pack references are out of scope and must be reported as a ponytail: evidence gap.
Report:
agents/openai.yaml (opens in a new tab)references/contract.md (opens in a new tab)references/evidence.md (opens in a new tab)references/pack-authoring.md (opens in a new tab)references/registry-format.md (opens in a new tab)references/schema-version.md (opens in a new tab)references/semantic-review.md (opens in a new tab)scripts/_pack-discover.mjs (opens in a new tab)scripts/_pack-md.mjs (opens in a new tab)scripts/_pack-schema.mjs (opens in a new tab)scripts/generate-registry.mjs (opens in a new tab)scripts/list-packs.mjs (opens in a new tab)scripts/resolve-pack.mjs (opens in a new tab)scripts/stamp-chart-plugin.mjs (opens in a new tab)scripts/validate-pack.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
/ai-html-annotation:ui-pack-maintainfrom ai-html-annotation
npx claudepluginhub lisuiwen/ai-html-annotation --plugin ai-html-annotationOther plugins' skills for the same job