What is the frontend-designer skill?
The frontend-designer skill is a folder in jamesrochabrun's skills repository that teaches an AI coding agent to build accessible, mobile-first components on CSS design tokens. It carries ready patterns for buttons, cards and inputs, four reference files and three shell scripts for scaffolding and accessibility checks.
The frontend-designer skill sits at skills/frontend-designer in a repository that bundles 24 skills across engineering, design, product and other domains. This one focuses on frontend work: reusable components, design systems, responsive layout and accessibility.
Unlike a pure review checklist, it ships working code. SKILL.md contains React and TypeScript component examples paired with CSS that reads from custom properties, and the folder adds four reference documents and three shell scripts.
What changes in your agent's output
- Components come with variants and sizes as props, such as primary, secondary and ghost buttons in sm, md and lg, instead of one-off class names.
- Interactive elements get a visible :focus-visible outline, and the Button carries a 44px minimum height for touch targets.
- Colors, spacing, type sizes, radii and shadows come from tokens like --space-4 and --color-primary rather than hardcoded values.
- Layouts start at 320px and grow with min-width media queries at 768px and 1024px.
Five principles it builds on
- Accessibility first: WCAG 2.1 AA minimum, semantic HTML, keyboard navigation, focus management and color contrast.
- Mobile-first responsive design with fluid typography and touch-friendly targets.
- Performance by default: minimal CSS and JS, lazy loading, critical CSS and tree shaking.
- Component-driven structure based on atomic design and composition over inheritance.
- Alignment with a design system of tokens, a spacing scale, a type scale and a palette.
Who the frontend-designer skill is for
Best for
- Starting a component library or retrofitting tokens into a project that uses hardcoded values.
- Teams that want form inputs wired for screen readers, with labels, hints and error messages linked by ID.
- Quick scaffolding of a component, its CSS module, a test file and a Storybook story from one script call.
Not for
- Choosing a distinctive visual direction. The skill supplies neutral, systematic patterns. For a different angle, see frontend-design.
- Visual critique of a screenshot or mockup. The skill builds and audits code.
- Non-web targets. The patterns are CSS, HTML and JavaScript framework code, and the scripts are shell scripts.
Use it with UiChemy
The skill outputs framework components, which WordPress does not run as they are. Use its token file to agree on colors, spacing and type with your designer, then convert the Figma design with UiChemy Figma to WordPress. Click Get Started on uichemy.com. For a deeper token workflow, see design-token.
How to install Frontend Designer Skill: Accessible, Token-Driven Components
git clone https://github.com/jamesrochabrun/skills.gitThe skill is one of 24 in the repository. The manual copy above takes only the frontend-designer folder.Clone the repository
Run
git clone https://github.com/jamesrochabrun/skills.git. The skill sits in the skills/frontend-designer folder.Copy the skill folder
Copy skills/frontend-designer, with its references and scripts folders, to wherever your AI coding agent loads skills from. The repository is framed around Claude Code, so use its skills location there.
Run a script if you want one
Open a terminal in the skill folder and run the generator, for example
./scripts/generate_component.sh Button, or the design system setup or accessibility audit script.Ask for a component
Request an accessible component, a token setup or a responsive layout, and the agent follows the patterns in SKILL.md.
Check that it loaded
Ask the agent for an accessible Button. The result should have variant and size props, a loading state with aria-busy, a 44px minimum height, a focus-visible outline and CSS built on custom properties.
Key features
- Accessible button patternA Button with primary, secondary and ghost variants, three sizes, a loading state that sets aria-busy and disables the control, a 44px minimum height and a visible focus ring.
- Flexible card patternA Card with a default variant that adds a medium shadow, plus outlined and filled variants and four padding options. An interactive card gets button semantics, keyboard focus and a hover lift.
- Form input with linked messagesAn Input generates an ID, links its label, hint and error through htmlFor and aria-describedby, sets aria-invalid on errors and announces the message with role alert.
- Design token setCSS custom properties cover colors, a spacing scale from 4px to 64px, a type scale from 12px to 36px, font stacks, line heights, border radii and shadows.
- Responsive recipesMobile-first breakpoints at 768px and 1024px, fluid headings with clamp(), an auto-fit grid with a 280px minimum and a 12-column grid that stacks on small screens.
- Accessibility patternsExamples for a skip link to main content, focus handling in a modal with aria-modal, descriptive ARIA labels and polite live regions for status updates.
- Performance techniquesSections on critical CSS, lazy-loading images and code splitting keep the default output lean.
- Modern CSS techniquesContainer queries, auto-fit grids and custom-property theming with a data-theme dark override are shown as drop-in patterns.
- Three helper scriptsgenerate_component.sh creates a component with CSS, test and story. setup_design_system.sh creates tokens, base styles and docs. audit_accessibility.sh checks contrast, keyboard, ARIA, semantics and focus.
Frequently asked questions
What is the frontend-designer skill?
It is a skill in the jamesrochabrun/skills repository for building accessible, responsive and performant frontend components. SKILL.md combines principles, React and TypeScript examples with matching CSS, design tokens, responsive and accessibility patterns, with reference docs and three scripts beside it.
How do I install the frontend-designer skill?
Clone jamesrochabrun/skills and copy the skills/frontend-designer folder, including references and scripts, into your agent's skills location. Then ask for a component, a design system setup or an accessibility audit. The scripts live in the skill folder and are run from there.
Which AI coding agents can use the frontend-designer skill?
The repository describes itself as a plugin and marketplace for Claude Code, and its GitHub description reads Claude Code Skills. It does not list other agents. An agent that can load SKILL.md folders may work, but that is not confirmed by the repository.
Is the frontend-designer skill React only?
No, though the examples are React with TypeScript. The description calls the patterns framework-agnostic and the feature list names React, Vue and Svelte. The CSS patterns, such as tokens, fluid type and grids, apply in any stack.
What do the bundled scripts do?
generate_component.sh creates a component with a TypeScript or JSX file, a CSS module, a test and a Storybook story. setup_design_system.sh creates tokens, base styles, component templates and a docs structure. audit_accessibility.sh checks contrast, keyboard use, ARIA, semantic HTML and focus.
What design tokens does it define?
Custom properties for primary, surface, border and semantic colors, an 8px-based spacing scale from --space-1 to --space-10, a type scale from --text-xs to --text-4xl, font families, line heights, radii and shadows. Edit the values to match your brand.
Can it help with design-system work beyond components?
Yes. It covers tokens, a suggested folder layout for components and tokens, and documentation scaffolding. For a broader treatment of design system structure, browse design-system-patterns, and for reviewing accessibility in finished work, accessibility-review.
What license does the frontend-designer skill use?
GitHub lists the jamesrochabrun/skills repository as MIT. The license is declared for the repository as a whole rather than for this folder alone, so keep its notice if you redistribute the folder inside a product.


