Agent skill Frontend
Create Component
Build or refine reusable components for a web interface.
Install the skill
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 --yesCheck 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-componentSelect 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 manualWhat 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- Repository
PrototyperAI/prototyper-ui
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
- Wrap an existing Base UI primitive in a project component
- 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
Check real inputs and the baseline
The primitive version and two product use cases
Prompt · Step 1Use 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.Apply the documented technique
Wrap an existing Base UI primitive in a project component
Prompt · Step 2Use 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.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 3Use 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.