- How you use it
- You ask for it
- What it can do
- installs software · writes files
- What's inside
The option
| Option | ASkill · v1.0.0+wwfix.1shadcn/ui team skill for components, CLI and registry |
|---|---|
| How you use it | You ask for it |
| What it can do | installs software · writes files |
| What's inside |
What this thread does
The problem
You ask a coding agent for a settings page and get a stack of divs with space-y-4, a button glued onto an input with absolute positioning, and a row of buttons faking a toggle. It runs, but it does not look like a settings page.
What the shadcn skill says
The official shadcn/ui docs have a Skills page. Its example prompts include "Create a settings page with a form for updating profile information". Install line from the docs: pnpm dlx skills add shadcn/ui (the docs page has package-manager tabs; the npx form is the same command through npm, not seen in the page text I checked). The skill loads when the project has a components.json, reads shadcn info --json (framework, base library, installed components, icon library) and then follows its own rules. As of the linked commit, the forms rule file says:
- Forms use
FieldGroupplusField, never rawdivwithspace-y-*. - Use
Field orientation="horizontal"for settings pages (label and description on one side, control on the other). - Pick controls by job:
Switchfor a boolean setting,Checkboxfor a form,RadioGroupfor a few exclusive choices,ToggleGroupfor small option sets (theme: light, dark, system; the rule file says 2 to 7 choices in one heading and 2 to 5 in another list),SelectorComboboxfor long lists. - Group related switches or checkboxes in
FieldSetplusFieldLegend, not a div with a heading. - Invalid and disabled states need both
data-invalidordata-disabledon theFieldandaria-invalidordisabledon the control. - Buttons inside inputs use
InputGroupplusInputGroupAddon.
How to describe it to the agent
A prompt that uses those words:
Build a settings page in this project with shadcn. Sections: Profile (name, email, avatar), Notifications (five switches in one FieldSet), Appearance (theme as a ToggleGroup). Use horizontal Fields, one Save button per section, and show the invalid state for the email field. Add only components that are missing.
Naming the control for each setting is the useful part: it removes the guesses the skill rules are written to prevent.
Common mistakes
- Asking for "a nice settings page" with no section list. The agent invents sections.
- One giant form with a single Save at the bottom. Section-level Save is easier to reason about; that is a design choice, not something the skill states.
- Using a Checkbox for an on/off preference. The rule file prefers Switch there.
Limits
I read the skill's rule files, not outputs from it. The docs do not publish a measured before and after for settings pages.
Primary source
Primary sources: shadcn/ui Skills docs (shadcn) and the skill's forms.md rule file (shadcn-ui/ui). Checked: components.json trigger, shadcn info --json, the settings-page example prompt, FieldGroup plus Field, horizontal orientation for settings pages, control choices, FieldSet plus FieldLegend, data-invalid with aria-invalid, InputGroup. The star count was not verified.
Started from a post by @shadcn-ui, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.