- name
- design-code
- description
- Generate production-ready, accessible, token-driven component code for ANY framework (React+Tailwind, Next.js, SwiftUI, Vue, Svelte, Angular, Solid, Web Components/Lit, React Native, Flutter, Jetpack Compose, vanilla CSS, or CSS-in-JS). Use when the user wants working UI code for a component or screen in a specific stack.
Skill: Design Code
Requirements
This skill needs the full UX/UI Agent Skills kit: the gates, the references and
the design-system library. Install it with npx [email protected] init
or as the Claude Code plugin. npx [email protected] add copies the skill folder and
nothing else. Installed that way, this skill runs in guidance-only mode: no gate
runs, so it gives no verdict.
Step 0: is the kit here? Check once:
ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSINGOnKIT_MISSING, open your reply with: "Guidance-only mode: the UX/UI Agent Skills kit is not installed here, so no gate ran and nothing below is measured." Then work from this file and general practice, under three rules. Do not guess or cite the contents of a kit file you could not open. State no measured number (no contrast ratio, no N/N, no "passes WCAG"): write "not verified" where one would go. End with a lineSkipped (kit not installed):that names every gate script this file tells you to run, then the install command above.
Render components into a target framework via the adapter system.
Steps
- Identify the target framework + styling method from the request (or ask).
- Read
${CLAUDE_SKILL_DIR}/../../../frameworks/adapter-protocol.md(the universal contract: token resolution, component contract, styling, dark mode, motion + output rules). - Load the concrete adapter:
- Full references:
${CLAUDE_SKILL_DIR}/../../../frameworks/react-tailwind.md,${CLAUDE_SKILL_DIR}/../../../frameworks/nextjs.md,${CLAUDE_SKILL_DIR}/../../../frameworks/swiftui.md. - Concise adapters:
${CLAUDE_SKILL_DIR}/../../../frameworks/adapters/{vue,svelte,angular,solid,web-components-lit,react-native,flutter,jetpack-compose,vanilla-css,css-in-js}.md. - No file for the target? Generate an adapter on the fly using the protocol's "author a new adapter" checklist.
- Full references:
- Pull the component spec from
${CLAUDE_SKILL_DIR}/../../../components/*and the ARIA pattern from${CLAUDE_SKILL_DIR}/../../../accessibility/aria-patterns.md. - Resolve all values to tokens (
${CLAUDE_SKILL_DIR}/../../../tokens/*.json); apply aesthetic direction if requested ( skill).