# Component design

> Component design is an open-source agent skill for design and media. Guides an agent to create or restructure UI components with sound API and accessibility. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ajyadav013/claude-kit/tree/main/providers/codex/claude-kit/skills/component-design
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** component-design
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill directs the agent through building a new UI component or reshaping an existing one, such as splitting a large component or making one reusable. It has the agent first read the project's design-system references, look for existing primitives and similar components, and then classify the component as a primitive, compound component, feature component or page sub-component so it lands in the right directory with the right export style.

The guidance covers prop interface design (required props first, string unions over boolean overloads, consistent event handler naming), a compound component pattern with shared context, and an accessibility checklist covering keyboard access, labels for icon-only buttons, form label association and visible focus. It ends by registering primitives in the barrel export and running the project's linter, type checker and build.

The skill is written for React/TypeScript examples but states the principles apply to other component frameworks such as Vue, Svelte and Angular. It expects a project with a component directory and, ideally, the referenced design-system documents or overlay rules.

## When your agent uses it

> Create or restructure a UI component — architecture, component patterns, accessibility, design-system rules. Use when adding a new component, splitting a large one, or making one reusable. App-level work belongs to frontend-ui-engineering.

## What it can access

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

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/providers/codex/claude-kit/skills/component-design)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/providers/codex/claude-kit/skills/component-design)

## Features

- **Component type classification:** Maps each new component to a primitive, compound, feature or page sub-component placement and export style.
- **Props interface guidance:** Covers prop ordering, style extension, event naming and variant typing for component APIs.
- **Compound component pattern:** Describes sharing context between a parent wrapper and its sub-components.
- **Accessibility requirements:** Lists keyboard access, accessible labels, form label association and focus indicator checks.
- **Design system alignment:** Has the agent read existing design-system references and reuse project UI primitives.
- **Lint and build verification:** Ends with running the project's linter, type checker and build to confirm the change.

## Good for

- Create a new reusable card component for a dashboard
- Split a large form component into smaller pieces
- Build an accessible confirm dialog using the project's UI library
- Turn a one-off widget into a shared design-system primitive

## Install

### Claude Code

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

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/component-design` 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/ajyadav013/claude-kit.git --path providers/codex/claude-kit/skills/component-design
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

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

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

## FAQ

### When should Component design trigger?

When adding a new component, splitting a large one, or making one reusable. App-level work is handled by the frontend-ui-engineering skill instead.

### Does Component design include scripts?

No, the skill contains only instructions and examples, with no scripts.

### Which frameworks does Component design cover?

The examples use React and TypeScript, and the guidance says the principles apply to Vue, Svelte, Angular and other component frameworks.

### What does Component design expect from the project?

A component directory with existing primitives, and ideally the ui-design-system references or a docs/references/ui folder, plus a linter, type checker and build.

### How do I install Component design in Claude Code?

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

### Does Component design 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 Component design?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Component design?

The closest alternatives to Component design are UI component builder, Build component, Frontend UI engineering, Frontend UI engineering and Design.

## Where this comes from

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

## Alternatives

- [UI component builder](https://ai-powered.com/skills/ui-component-builder): UI component builder is an open-source agent skill for developer tools.
- [Build component](https://ai-powered.com/skills/build-component): Build component is an open-source agent skill for developer tools.
- [Frontend UI engineering](https://ai-powered.com/skills/frontend-ui-engineering-ajyadav013-2): Frontend UI engineering is an open-source agent skill for developer tools.
- [Frontend UI engineering](https://ai-powered.com/skills/frontend-ui-engineering): Frontend UI engineering is an open-source agent skill for developer tools.
- [Design](https://ai-powered.com/skills/design-rshankras): Design is an open-source agent skill for design and media.
- [UI UX design](https://ai-powered.com/skills/ui-ux-design-ajyadav013): UI UX design is an open-source agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design-melandlabs): Frontend design is an open-source agent skill for design and media.
- [Frontend design](https://ai-powered.com/skills/frontend-design-lichamnesia): Frontend design is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/component-design
