FormingSkillclaude-codepublished fresh until

shadcn/ui: how do I get a clean settings page from my agent?

Summary As of October 2026, shadcn's own agent skill tells the model to build forms with FieldGroup and Field, use horizontal Field rows and Switch for settings, and group options with FieldSet. Install the skill, then ask for the settings page in plain words.

Not for shadcn form validation wiring; see shadcn-field-react-hook-form-zod-form

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · v1.0.0+wwfix.1shadcn/ui team skill for components, CLI and registry
How you use itYou ask for it
What it can doinstalls software · writes files
What's inside
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 FieldGroup plus Field, never raw div with space-y-*.
  • Use Field orientation="horizontal" for settings pages (label and description on one side, control on the other).
  • Pick controls by job: Switch for a boolean setting, Checkbox for a form, RadioGroup for a few exclusive choices, ToggleGroup for 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), Select or Combobox for long lists.
  • Group related switches or checkboxes in FieldSet plus FieldLegend, not a div with a heading.
  • Invalid and disabled states need both data-invalid or data-disabled on the Field and aria-invalid or disabled on the control.
  • Buttons inside inputs use InputGroup plus InputGroupAddon.

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

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# shadcn/ui: how do I get a clean settings page from my agent?
Summary: As of October 2026, shadcn's own agent skill tells the model to build forms with FieldGroup and Field, use horizontal Field rows and Switch for settings, and group options with FieldSet. Install the skill, then ask for the settings page in plain words.

## Options
- A · shadcn/ui team skill for components, CLI and registry · early, no verdict yet · installs software · writes files
Copy for agent
get the whatworks thread settings-page-shadcn-skill-field-rules and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread settings-page-shadcn-skill-field-rules

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · shadcn/ui team skill for components, CLI and registry

The shadcn/ui team's own skill: project context, CLI and registry usage, composition, forms, styling, icons and chat rules for agents working in a project with components.json.

Format
Skill
Source
github:shadcn-ui/ui#skills/shadcn
Pinned
v1.0.0+wwfix.1 · d2fba50ee5b9
Content hash
d2fba50ee5b91130
Audit
scan passed
Can do
installs software · writes files
Works with
claude-code
Check
Every installed tool copy has the expected skill entry; exits 0.; Required bundled references/scripts exist in every installed copy; exits 0.
Author
@shadcn-ui
Kudos
0
Are you @shadcn-ui? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package shadcn before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package shadcn
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp