Working with AI

Give an assistant Wideset's usage guidance, its docs as Markdown and access to the registry.

An assistant can read a component’s props from the source. It cannot read there which component fits the job, how components combine or what breaks without an error. Wideset writes that down in the Usage section of every component page, and ships it in three forms.

Skills

Agent Skills are instructions an agent loads when it builds UI. This is the fastest way to get good output:

npx wideset skills

It installs the skills for the agents your project uses, writes the rules to AGENTS.wideset.md and points your AGENTS.md or CLAUDE.md at them. Run it again to update.

Skill Use
wideset-setup Package or registry, stylesheets, Tailwind v4, Server Components
wideset-build Choosing components, combining them, patterns, what breaks silently
wideset-craft Rules for a designed screen: sizes, spacing, surfaces, defaults
wideset-review A verdict with fixes, using the two reviewer agents when they are installed

Prefer the skills CLI? It installs the same skills:

npx skills add widelab-co/wideset/packages/skills

Docs as Markdown

Every page has a Markdown version for models.

URL What it is
/llms.txt An index of every page, one line each.
/llms-full.txt Every docs page and every component page in one file.
/components/<name>.md One component: usage guidance, install, parts, examples and every prop.
/docs/<page>.md One guide or foundations page.

Point the assistant at /llms.txt and let it fetch what it needs. On a component page, the Copy menu also opens the page in ChatGPT or Claude.

MCP server

Wideset is a shadcn registry, so the shadcn MCP server can list Wideset components, read their source and add them to your project. It installs source, as the CLI does.

1. Register the namespace

npx wideset init does this. In a project set up another way:

npx shadcn@latest registry add @wideset=https://wideset.co/r/{name}.json

2. Configure your client

Add the server to your client’s MCP file:

{
  "mcpServers": {
    "shadcn": {
      "command": "npx",
      "args": ["shadcn@latest", "mcp"]
    }
  }
}
Client File Note
Claude Code .mcp.json Or run npx shadcn@latest mcp init --client claude.
Cursor .cursor/mcp.json Enable the server in Cursor Settings.
VS Code .vscode/mcp.json The top-level key is servers, not mcpServers.

3. Ask for components

Name the namespace, so the assistant searches Wideset and not shadcn/ui:

  • “Show me the components in the @wideset registry.”
  • “Add @wideset/select and @wideset/button to my project.”
  • “Build a settings form with components from @wideset.”

Rules for the model

Agents read an instructions file on every task, even when they skip a skill. npx wideset skills writes these rules for you. Without it, paste them into your project’s AGENTS.md, CLAUDE.md or editor rules file:

## Wideset (@wideset/react)

- Import components from `@wideset/react` (or from the copied files when installed through
  the registry). Import the stylesheet once at the app entry: `import '@wideset/react/styles'`.
- Before using a component, read its Usage section, starting with "When not to use" and "Gotchas":
  https://wideset.co/components/<name>.md
- Choose by what the thing does, not how it looks: `RadioButton.Group` for a few options compared at
  a glance, `Select` for a long list, `DropdownMenu` for commands; `StatusBadge` for a state, `Tag`
  for a category; `Switch` applies at once, `Checkbox` on submit; `Modal` for a short decision,
  `Sidepanel` for detail or a long form.
- The screen holds the state. Components own only open, hover and focus, and controlling `open` does
  not reset what is inside an overlay. A trigger wrapping your `Button` needs `asChild`, and overlays
  stack themselves, so add no `z-*`.
- Style with Wideset token classes, which all carry `ws`: `p-ws-4`, `gap-ws-2`,
  `bg-ws-dynamic-primary-default`, `text-ws-static-strong`, `rounded-ws-control-lg`. Plain
  Tailwind scale classes (`p-4`, `text-sm`, `rounded-lg`) are different values; never use palette
  classes (`text-gray-900`) or raw hex.
- Compose with subcomponents instead of config props:
  `<Button>Continue<Button.Icon icon={RiArrowRightLine} /></Button>`.
- Icons are components from `@remixicon/react`, passed as the component (`icon={RiCheckLine}`),
  not an element and not an inline `<svg>`. They size with `text-*` and colour with `currentColor`.
  Icon-only controls need an `aria-label`.
- In React Server Components use the named subcomponent exports (`CardHeader`, not `Card.Header`),
  and put anything that passes a function (an icon prop, `onClick`) in a `'use client'` file.
- Override `className` for one-off tweaks. Re-brand by overriding both brand ramps,
  `--ws-colors-light-brand-*` and `--ws-colors-dark-brand-*`: https://wideset.co/docs/theming.md
- Before finishing, re-read what you wrote: replace raw `<button>`, `<input>`, `<select>` or
  `<table>` with the Wideset component, and any spacing, colour, radius or type class without `ws`.