Skill library

Agent skill Frontend

Create Component

Build or refine reusable components for a web interface.

  • UI components

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add https://github.com/PrototyperAI/prototyper-ui/tree/main/apps/docs/skill/create-component --skill create-component --agent claude-code --yes

Check this file in your project.claude/skills/create-component/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/PrototyperAI/prototyper-ui/tree/main/apps/docs/skill/create-component --skill create-component

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Bring a project, a local preview and real inputs. Verify the installed Skill files and project versions first.

View operation manual

What this skill helps with

  • Build or refine reusable components for a web interface.

Good for

  • Component implementation
Goal
Wrap an existing Base UI primitive in a project component
Inputs
The primitive version and two product use cases
Acceptance
Mount the wrapper in both [Use cases]. Check supported props, variants, focus and open/close interactions. Document unsupported states instead of creating parallel behavior.
Skill name
create-component

Start with one task that can be reviewed

Open-ended request

Use this Skill to improve my whole page.

There is no clear scope, existing behavior or acceptance target.

A scoped pilot

  1. Wrap an existing Base UI primitive in a project component
  2. The primitive version and two product use cases

Create Component operation manual

Wrap an existing Base UI primitive in a project component

The primitive version and two product use cases

  1. Check real inputs and the baseline

    The primitive version and two product use cases

    Prompt · Step 1
    Use PrototyperAI’s create-component and read the installed SKILL.md. The scope is [Project and target surface]. Identify [Base UI primitive and version] and check its actual documented composition API. Read the installed create-component workflow and record the pure wrapper choice, forwarded props and styling slots.
  2. Apply the documented technique

    Wrap an existing Base UI primitive in a project component

    Prompt · Step 2
    Use PrototyperAI’s create-component and read the installed SKILL.md. The scope is [Project and target surface]. Implement [Wrapper component] using the installed library’s supported composition API, stable data-slot hooks and the project’s token classes. Keep default interactions and focus provided by the primitive.
  3. Review the actual result

    Mount the wrapper in both [Use cases]. Check supported props, variants, focus and open/close interactions. Document unsupported states instead of creating parallel behavior.

    Prompt · Step 3
    Use PrototyperAI’s create-component and read the installed SKILL.md. The scope is [Project and target surface]. Mount the wrapper in both [Use cases]. Check supported props, variants, focus and open/close interactions. Document unsupported states instead of creating parallel behavior.

Look up a specific workflow question

Use the real project inputs and results to decide.

Find the required inputsSKILL.md
Command or reference
Wrap an existing Base UI primitive in a project component
Examples
The primitive version and two product use cases
Review the outcomeVerify
Command or reference
Wrap an existing Base UI primitive in a project component
Examples
Mount the wrapper in both [Use cases]. Check supported props, variants, focus and open/close interactions. Document unsupported states instead of creating parallel behavior.

Troubleshooting and FAQ

What if the required project inputs are absent?

Check the publisher instructions and current project first. Name the missing inputs and the verification they affect.

How do I check the result?

Mount the wrapper in both [Use cases]. Check supported props, variants, focus and open/close interactions. Document unsupported states instead of creating parallel behavior.