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

/ui-pack-maintain

@a9e5235
Run it yourself

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. Creating a Pack relies only on the self-contained contract plus user intent; maintenance may additionally read existing Packs. Do not use for generating business prototypes, editing production frontend code, installing packs for end users, or ordinary page styling.

Use this Skill: https://skilld.dev/gh/lisuiwen/ai-html-annotation/ui-pack-maintain

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈152 tokens for metadata: the name and description. ≈1.3k when used: this file. ≈6.1k more on demand in 7 files.

Description uses 7.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈607 characters, or 7.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

UI Pack Maintain

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.

Quick start

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.

Responsibility split

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

Workflow

  1. Read references/contract.md for structure and responsibility boundaries. In creation mode, stop here for evidence. In maintenance mode, continue to step 2.
  2. Read the target Pack's PACK.md and manifest.json, plus only the resource entries this task touches (maintenance only).
  3. Classify the change as Pack creation, Foundation, Component, Pattern, Preset, registry/publication, or repair.
  4. Read Pack authoring and implement the smallest reusable change.
  5. Update manifest.json, then run deterministic validation.
  6. For a new Pack or substantial semantic change, run the isolated review in Isolated semantic review.
  7. Regenerate registry.json when publishing or changing downloadable metadata.
  8. Apply only verified findings, then rerun validation and the resolver smoke test.

Evidence priority is documented in Evidence authority.

Publication references:

Hard boundaries

  • Keep a UI Pack inside the directory resolved by --pack=; this skill discovers installed packs through the shared root chain (explicit roots, project, user cache). It does not implement consumer download flows.
  • Keep the Foundation DOM-free; include only shared tokens and a document-level CSS baseline.
  • Keep each Component as one leaf implementation with a local contract.
  • Compose Components through Patterns without copying their implementations.
  • Keep Presets business-fact-free.
  • Keep state adapters to projecting passed local state only; never access PrototypeViewers, persist state, parse URLs, or register global event handlers.
  • Treat manifest.json as the only machine-readable index and dependency source.
  • Declare only required dependencies in requires; keep conditional capabilities in optional.
  • Patterns and Presets must not select internal components directly.
  • Declare sketch atoms in 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.
  • Do not implement consumer download flows here; point users to html-prototype-build Pack install.

Deterministic validation

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.

Resolver smoke test

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.

Completion report

Report:

  • changed Pack entries
  • evidence used
  • provisional decisions and missing evidence
  • validator and resolver test results
  • registry regeneration status
  • unresolved independent-review findings

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.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill provides tools for managing UI packs, including validation and registry generation. It involves processing user-provided pack data, which presents a minor surface for indirect prompt injection during automated reviews.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

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/ui-pack-maintain