# UI component builder

> UI component builder is an open-source agent skill for developer tools. Guides an agent to build reusable UI components with accessibility and all states. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tansuasici/claude-code-kit/tree/main/.claude/skills/ui-component-builder
- **Repository:** https://github.com/tansuasici/claude-code-kit
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** ui-component-builder
- **Collection:** https://github.com/tansuasici/claude-code-kit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks an AI coding agent through designing a new reusable UI component before writing it. The agent first looks at the project's existing stack, component library, and any design token file, then plans the component's API, which props are required, and whether it should use composition. It works through the states a component can be in, such as loading, empty, error, and disabled, along with edge cases like long text, many items, and mobile, tablet, and desktop layouts.

The skill sets hard rules: new design tokens need a DESIGN.md source and should not be invented on the fly, interactive elements must be keyboard operable with correct ARIA semantics and WCAG 2.1 AA contrast, and components that grow past roughly eight props should be split or use composition. It also provides a structured output template covering the architecture brief, props table, states, accessibility notes, implementation, usage examples and tests. The example code is a React and TypeScript button using Tailwind-style classes, which the agent adapts to the project's own stack.

The skill expects a project with a readable codebase map and ideally a DESIGN.md, and it is meant to be used with the companion review skills for visual and accessibility audits. It is distributed as part of the claude-code-kit Claude Code plugin marketplace under an MIT license.

## When your agent uses it

> Build production-ready UI components with accessibility, loading/empty/error states, responsive behavior, and reusable props — not retrofitted polish. Use when creating a new component. To review an existing UI use /design-review instead.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/ui-component-builder)
- [License: MIT](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/ui-component-builder)

## Features

- **Context gathering first:** Locates the project's stack, component library and existing similar components before any code is written.
- **Component API design:** Plans props, slots, controlled versus uncontrolled inputs, and events following the project's naming.
- **Full state coverage:** Enumerates default, hover, focus, disabled, loading, empty, error and read-only states.
- **Accessibility wiring:** Covers semantic HTML, keyboard behaviour, ARIA use, focus management and WCAG AA contrast.
- **Responsive and edge cases:** Checks long content, empty data, slow or failed networks and mobile through desktop layouts.
- **Structured component package:** Produces a brief, props table, states, implementation, usage examples and test outline.

## Good for

- Build a reusable modal with focus trapping and an accessible close action
- Create a data table component that handles loading, empty and error states
- Design a form field component with validation messages and ARIA associations
- Extract a one-off card from a page into a reusable component with a clear props API
- Redesign an existing button to meet accessibility and responsive standards

## Install

### Claude Code

This skill ships in the `claude-code-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add tansuasici/claude-code-kit
/plugin install claude-code-kit@claude-code-kit
```

Or copy only this skill to `~/.claude/skills/ui-component-builder`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ui-component-builder &&
cp -R "$tmp/.claude/skills/ui-component-builder" ~/.claude/skills/ui-component-builder &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ui-component-builder` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ui-component-builder` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ui-component-builder &&
cp -R "$tmp/.claude/skills/ui-component-builder" ~/.agents/skills/ui-component-builder &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ui-component-builder` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ui-component-builder` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ui-component-builder &&
cp -R "$tmp/.claude/skills/ui-component-builder" ~/.cursor/skills/ui-component-builder &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ui-component-builder` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/tansuasici/claude-code-kit.git --path .claude/skills/ui-component-builder
```

Or copy the folder to `~/.gemini/skills/ui-component-builder` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ui-component-builder`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ui-component-builder &&
cp -R "$tmp/.claude/skills/ui-component-builder" ~/.copilot/skills/ui-component-builder &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ui-component-builder` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git
```

Then copy `claude-code-kit/.claude/skills/ui-component-builder` into your agent's skills folder as `ui-component-builder`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should I use UI component builder instead of the design review skills?

Use it when creating a new component. The skill's own notes say that for reviewing an existing UI you should use /design-review, and for an accessibility audit of existing components use /accessibility-audit.

### Does UI component builder require a DESIGN.md file?

It works without one, but the skill says that building production components without design tokens leads to inconsistency, so it raises the missing file as an open question and does not add new tokens on its own.

### Which frameworks does the example code target?

The included example is React with TypeScript and Tailwind-style classes, and the skill says to adapt it to the project's own stack.

### Does the skill run any scripts?

No. The skill folder contains only a SKILL.md file and no scripts.

### How do I install UI component builder in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ui-component-builder to use it in all your projects, or to .claude/skills/ui-component-builder in one project. Or install the claude-code-kit plugin, which includes it: /plugin marketplace add tansuasici/claude-code-kit, then /plugin install claude-code-kit@claude-code-kit.

### Does UI component builder run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use UI component builder?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to UI component builder?

The closest alternatives to UI component builder are Frontend UI engineering, UI, Accessibility, React container presentation component and 21st UI.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Frontend UI engineering](https://ai-powered.com/skills/frontend-ui-engineering): Frontend UI engineering is an open-source agent skill for developer tools.
- [UI](https://ai-powered.com/skills/ui): UI is an open-source agent skill for developer tools.
- [Accessibility](https://ai-powered.com/skills/accessibility): Accessibility is an open-source agent skill for developer tools.
- [React container presentation component](https://ai-powered.com/skills/react-container-presentation-component): React container presentation component is an open-source agent skill for developer tools.
- [21st UI](https://ai-powered.com/skills/21st-ui): 21st UI is an open-source agent skill for developer tools.
- [Design kit](https://ai-powered.com/skills/design-kit): Design kit is an open-source agent skill for design and media.
- [Frontend a11y](https://ai-powered.com/skills/frontend-a11y): Frontend a11y is an open-source agent skill for developer tools.
- [Design system](https://ai-powered.com/skills/design-system-smartworldarafath): Design system is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/ui-component-builder
