
Design Code
Generate production-ready, accessible, token-driven component code for ANY framework...
Install
npx skills add plugin87/ux-ui-agent-skills --skill design-code -g -a claude-code -y- Repository
- plugin87/ux-ui-agent-skills3.1k
- Category
- Design
- Updated
- 8d ago
- License
- MIT
- Context cost
- Mediumabout 1,664 tokens
- Runs scripts
- No, instructions only
What it does
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
Step 0: is the kit here? This skill reads files from the kit. Check once:
ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSINGOnKIT_MISSINGonly the skill folders were installed, which is whatnpx skills adddoes. Say so plainly, point the user atnpx ux-ui-agent-skills initor the plugin install, and stop. Do not guess the contents of a file you could not open.
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 (apply-aestheticskill).
Output rules (mandatory)
Use tokens (never hardcode) · include a11y on every interactive element · handle all applicable of the 8 states · support dark mode at the semantic layer · mobile-first · honor reduced motion · deliver complete files, no placeholders (${CLAUDE_SKILL_DIR}/../../../workflows/redesign-audit.md → Output Completeness).


