Skill library

Agent skill Frontend

UI Components

Build or refine reusable components for a web interface.

  • UI components
  • Design systems
  • shadcn/ui

Install the skill

Installation method

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

npx skills@latest add https://github.com/yonatangross/orchestkit/tree/main/src/skills/ui-components --skill ui-components --agent claude-code --yes

Check this file in your project.claude/skills/ui-components/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add https://github.com/yonatangross/orchestkit/tree/main/src/skills/ui-components --skill ui-components

    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. Use a React project and existing shadcn or Radix button primitives. The publisher marks this Skill `user-invocable: false` with read-oriented tools. Refer to it from a general coding request and use the coding host for edits.

View operation manual

What this skill helps with

  • Build or refine reusable components for a web interface.

Good for

  • Component implementation
Skill name
ui-components
Scenario
Add a pending state around an existing Button
Deliverable
A project-owned save button wrapper with forwarded focus, readable pending text and no duplicate activation.
Skill name
ui-components

Define a component task with an observable result

A request with an unclear outcome

Edit the registry-owned Button source for one app-specific save flow.

The next registry refresh can overwrite local behavior customized directly inside that file.

A workflow with observable results

  1. Review the loading template and local Button
  2. Wrap the generated Button
  3. Exercise pending and completed states

OrchestKit UI Components operation manual

Use the bundled loading Button as guidance for a project wrapper that keeps generated shadcn sources portable.

Replace the bracketed details with your own project and target.

  1. Review the loading template and local Button

    Read the exact template and map it to the existing project API.

    Prompt · Step 1
    Consult `ui-components` for [save control]. Read `references/ork-delta.md` and `scripts/extended-button.tsx`. Locate the existing generated Button and pending state in the calling form. Record which props, focus ref and loading label the new project wrapper needs.
  2. Wrap the generated Button

    Keep the state behavior in a project file.

    Prompt · Step 2
    Use the `ui-components` loading template to build [approved save wrapper] outside the generated components directory. Forward the underlying button ref and inherited props. When pending, show clear loading text, disable the real button and mark any decorative spinner aria-hidden. Keep the action linked to the existing request state.
  3. Exercise pending and completed states

    Verify keyboard activation and the generated-file diff.

    • The generated Button file has no change for this wrapper.
    • Pending disables the real button and exposes a meaningful text label.
    Prompt · Step 3
    Use `ui-components` to verify [local save demo]. Tab to Save and press Enter. Check that its label changes during pending, that repeated keyboard or pointer actions trigger no second save, and that the resolved state is usable again. Verify the ref can focus the underlying button after completion and inspect the diff for generated files.

Find the relevant rule

Point the assistant to the installed Skill and a specific issue.

Find project-specific loading compositionReference
Command or reference
scripts/extended-button.tsx
Examples
Adapt the native button, loadingText and forwarded ref pattern to the project Button.

OrchestKit UI Components troubleshooting

Should pending Save be rendered as a link?

Use a native button for a form action so disabled state prevents activation. Forward the ref to that button and verify it after the request completes.