/ui-component-expert:build --workspace <run-path> --contract <contract-path> --target <target-path>from ui-component-expert
Generate bespoke, accessible TypeScript components and 8-state harnesses from an approved DesignContract.
Ships in ui-component-expert. 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.
None: SKILL.md is the whole skill.
Replace <plugin-root> in CLI examples with the absolute directory two levels above this skill file (skills/build/SKILL.md); Claude Code may use ${CLAUDE_PLUGIN_ROOT} instead. Never execute the literal placeholder.
Transforms an approved, validated DesignContract into custom TypeScript components, complete type definitions, styling files, 8-state test harnesses, and behavioral unit tests.
No magical transpiler script or third-party kit clone is used: the CLI inspects the target codebase and emits the architectural build worklist; the active host agent authors bespoke component code adhering strictly to target stack constraints and contract specifications. Human review is required before executing it.
node "<plugin-root>/scripts/cli.mjs" inspect-target --target "<target-project-path>"
Analyzes the target's package.json, lockfile, and tsconfig.json to detect:
@/*), strict mode, JSX runtime.node "<plugin-root>/scripts/cli.mjs" generate-components --workspace "<workspace-path>" --contract "<contract-path>" --target "<target-path>"
Emits the JSON implementation build worklist to stdout. The CLI does NOT write component files; Claude Code reads this worklist and authors the bespoke component code into <workspace>/generated/.
For each component, assign exactly one primitive engine:
@base-ui/react): Selected for unstyled composite overlay components (popovers, dialogs, dropdown menus, tooltips, switches, accordions) when clean HTML and composable subcomponents fit the stack.@react-aria/* + @react-stately/*): Selected for data-entry surfaces requiring deep internationalization (RTL, localized date/time), localized number parsing, or virtualized comboboxes. Excludes styled Adobe Spectrum visual skins.@zag-js/*): Selected for complex multi-step state machines (step-by-step wizards, split panes, multi-level cascade menus).package.json, generate an explicit installation notice; never run package manager install commands without user authorization.Each component is written to <workspace>/generated/<component-id>/:
<component-id>/
├── [ComponentName].tsx # Component implementation
├── [ComponentName].types.ts # Public interfaces and prop types
├── [ComponentName].module.css # Styling (or Tailwind classes matching target)
├── [ComponentName].harness.tsx # Simultaneous 8-state preview harness
├── [ComponentName].test.tsx # Behavioral and accessibility tests
└── README.md # Usage documentation and token mappings
any, as any, or unconstrained Record<string, any>.@ts-ignore and @ts-nocheck. Purposeful @ts-expect-error is permitted strictly in negative type assertion tests, never to mask implementation defects.React.JSX.Element).React.forwardRef<ExactElementType, Props>.HTMLButtonElement, HTMLDivElement, HTMLInputElement), never generic HTMLElement or any.ref directly as a standard prop in the component function parameter signature.React.useId() for all internal ARIA relationship bindings (aria-labelledby, aria-describedby, aria-controls)."use client" strictly at interactive leaf component boundaries (buttons, form inputs, dialog triggers).window, document, or localStorage during component module evaluation or initial render.onClick={() => {}}) or empty links (href="#").<dialog> provides browser-native focus trapping and Escape key dismissal without custom JS trap hacks. Headless primitives (Base UI, React Aria, Zag) provide accessible focus restoration to trigger elements.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub andrewr303/ultimate-ai-plugins --plugin ui-component-expert11 skills in this plugin
/briefGenerate a portable Claude Design brief prompt specifying target description, 4 viewports, 3 token tiers, component anatomy, 8 states, and deliverables./contractExtract and validate a strongly typed DesignContract from quarantined Claude Design artifacts, verifying tokens, 8 states, and WAI-ARIA semantics./ingestIngest, validate boundaries, and statically inspect a downloaded Claude Design export on Windows, creating a unique run directory with byte-identical quarantine.