Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
dcd325d
feat(v5): add Inertia app shell with Flux health
andrasbacsai Jun 15, 2026
762daf8
feat(container): support comma-separated roles
andrasbacsai Jun 15, 2026
ed89d83
chore(scripts): remove conductor setup script
andrasbacsai Jun 16, 2026
1b1b072
feat(dev): add coold VM dev workflow
andrasbacsai Jun 16, 2026
d92c6a8
feat(dev): bootstrap coold VMs via cooldctl
andrasbacsai Jun 16, 2026
c884aaa
feat(v5): add coolify CLI version check
andrasbacsai Jun 16, 2026
5865881
chore(dev): remove bundled cooldctl binary
andrasbacsai Jun 16, 2026
1e038fe
feat(v5): add server clusters and CLI bootstrap
andrasbacsai Jun 16, 2026
5c23b9a
feat(dev): add example nginx connectivity commands
andrasbacsai Jun 16, 2026
9566b25
refactor(v5): remove Project model and consolidate v5 migrations
andrasbacsai Jun 16, 2026
295addb
refactor(dev): replace v5:sync-dev-lima-servers with V5DevLimaSeeder
andrasbacsai Jun 16, 2026
bc6a12d
docs: remove coold VM dev setup and container roles sections from README
andrasbacsai Jun 16, 2026
c178dfd
feat(v5): add shadcn/ui with button, select, separator, and navbar
andrasbacsai Jun 16, 2026
6b8f50a
refactor(v5): extract csrfToken into shared lib/csrf.js module
andrasbacsai Jun 16, 2026
859a701
refactor(v5): migrate UI primitives from radix-ui to @base-ui/react
andrasbacsai Jun 16, 2026
790bd2e
refactor(v5): migrate frontend from JSX to TypeScript
andrasbacsai Jun 16, 2026
327866c
chore(deps): promote peer deps to direct in package-lock.json
andrasbacsai Jun 16, 2026
4c41817
feat(v5): move clusters to dedicated page and remove CLI services
andrasbacsai Jun 16, 2026
5d57b13
refactor(v5): rename Home to Dashboard and add coollabs brand styles
andrasbacsai Jun 16, 2026
3ae8733
feat(v5): add WireGuard and coold/corrosion config to clusters/servers
andrasbacsai Jun 19, 2026
24bbfe0
feat(v5): add server bootstrap job with realtime cluster broadcasting
andrasbacsai Jun 19, 2026
155b073
refactor(v5): remove CLI-specific fields and labels from clusters UI
andrasbacsai Jun 19, 2026
86156b6
feat(v5): add mesh app canvas
andrasbacsai Jun 20, 2026
ad0bcc8
feat(v5): add application ingress routing
andrasbacsai Jun 20, 2026
1c091e9
feat(v5): add dashboard ingress routing controls
andrasbacsai Jun 20, 2026
068a297
feat(v5): use bridged Lima hosts for coold dev
andrasbacsai Jun 21, 2026
4938b65
refactor(v5): defer builder bootstrap support
andrasbacsai Jun 21, 2026
18d0745
chore(backlog): remove obsolete local task backlog
andrasbacsai Jun 21, 2026
6069ac0
fix(dev): rely on default flux dev capabilities
andrasbacsai Jun 21, 2026
a427851
fix(dev): cache bust mutable coold nightly assets
andrasbacsai Jun 21, 2026
22e3d69
feat(v5): add app configuration inspector
andrasbacsai Jun 21, 2026
4061a38
feat(v5): sync resource firewall rules via Flux
andrasbacsai Jun 21, 2026
ec3e5dc
feat(dev): include firewall capabilities in flux defaults
andrasbacsai Jun 21, 2026
e543d2b
feat(v5): deploy nginx applications through Flux
andrasbacsai Jun 21, 2026
0914052
fix(v5): rename nginx action to deploy
andrasbacsai Jun 21, 2026
75cbcad
feat(v5): show server stale status and coold logs
andrasbacsai Jun 22, 2026
e3e91b7
feat(v5): sync server status and ingress access
andrasbacsai Jun 22, 2026
4cdd450
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jun 22, 2026
2007d80
feat(v5): expose corrosion and firewall diagnostics
andrasbacsai Jun 22, 2026
559cdbf
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jun 30, 2026
c9416ab
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 2, 2026
fd5b2fe
feat(v5): use resource uuids at boundaries
andrasbacsai Jul 2, 2026
7b317c4
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 3, 2026
df854fe
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 3, 2026
6ae4568
feat(v5): add server reconciliation and canvas APIs
andrasbacsai Jul 6, 2026
9db103c
fix(v5): preserve firewall directions when editing ports
andrasbacsai Jul 6, 2026
51ed86f
feat(v5): add coold restart action
andrasbacsai Jul 6, 2026
fbc6fd5
fix(v5): rotate agent tokens every fifteen minutes
andrasbacsai Jul 6, 2026
a9501d5
fix(v5): backfill missing canvas uuid columns
andrasbacsai Jul 6, 2026
a2fc08a
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 6, 2026
7720939
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 11, 2026
a4ab69d
feat(v5): authorize creates, deep-link selection, list apps in v4
andrasbacsai Jul 18, 2026
ae32ab5
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 18, 2026
0342185
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 18, 2026
1cb1d02
Merge remote-tracking branch 'origin/next' into resolve-vite-package-…
andrasbacsai Jul 19, 2026
d0247d3
feat(v5): gate V5 to development environments only
andrasbacsai Jul 19, 2026
32f9b48
fix(v5): defer production runtime activation
andrasbacsai Jul 19, 2026
55bc13b
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 19, 2026
68d719d
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 19, 2026
ee36124
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 20, 2026
bd71b09
fix(helpers): prevent warnings when loading database helpers
andrasbacsai Jul 20, 2026
960bd01
Merge remote-tracking branch 'origin/next' into v5-parallel-inertia-r…
andrasbacsai Jul 20, 2026
9d341d0
feat(v5): add Inertia React infrastructure management (#10987)
andrasbacsai Jul 20, 2026
a26091d
feat: self-hosted GitLab Apps OAuth integration
MikeChongCan Jul 14, 2026
6f557cf
fix(security): enforce GitLab App authorization parity with GitHub
andrasbacsai Jul 20, 2026
253714a
chore(dev): add npm clean script for docker compose teardown
andrasbacsai Jul 21, 2026
418287d
fix(ui): align GitLab App create modal with GitHub
andrasbacsai Jul 21, 2026
fda8e91
fix(ui): simplify GitLab source setup view
andrasbacsai Jul 21, 2026
8782079
fix(ui): place GitLab group name after application secret
andrasbacsai Jul 21, 2026
ef4a188
fix(ui): put Save Credentials beside Step 2 heading
andrasbacsai Jul 21, 2026
2450a32
fix(ui): rename GitLab setup submit button to Save
andrasbacsai Jul 21, 2026
e962b81
fix(gitlab): reload application secret after save
andrasbacsai Jul 21, 2026
eaa0b01
feat(gitlab): add custom public endpoint for OAuth redirect
andrasbacsai Jul 21, 2026
1d63c1e
fix(ui): move GitLab public endpoint controls into step 2
andrasbacsai Jul 21, 2026
9299340
fix(ui): remove Public endpoint heading on GitLab setup
andrasbacsai Jul 21, 2026
94c3129
fix(ui): show GitLab Connected badge beside title
andrasbacsai Jul 21, 2026
43919ef
fix(security): encrypt GitLab webhook token and mask input
andrasbacsai Jul 21, 2026
3772a55
fix(ui): show GitHub icon next to GitHub sources
andrasbacsai Jul 21, 2026
53a4253
fix(ui): unify incomplete source status as Setup required
andrasbacsai Jul 21, 2026
add7d6a
fix(ui): show only Connected for finished GitLab sources
andrasbacsai Jul 21, 2026
bce4f8d
Merge remote-tracking branch 'origin/next' into fix/gitlab-self-hoste…
andrasbacsai Jul 21, 2026
b2fed04
feat(api): add GitLab Apps CRUD endpoints
andrasbacsai Jul 21, 2026
aeeb266
feat(github): add GitHub App connection testing
andrasbacsai Jul 21, 2026
3a86337
fix(gitlab): hide source secrets from unauthorized users
andrasbacsai Jul 21, 2026
16972f6
feat: GitLab App source (#10538)
andrasbacsai Jul 21, 2026
e560bdf
fix(api): secure proxy config, clone volumes, and rollback tags (#11003)
andrasbacsai Jul 22, 2026
f06bacc
feat(services): add Buzz one-click service template (#11020)
andrasbacsai Jul 23, 2026
12033e8
fix(backups): pin a single bracket-free IP for mc --resolve
ntwcklng Jul 24, 2026
75d3bd8
fix(backups): pin all resolved addresses in one CURLOPT_RESOLVE entry
dwiyantop Jul 27, 2026
5b37071
fix(sources): prevent 500 when deleting GitLab/GitHub apps
andrasbacsai Aug 1, 2026
5c49dfa
fix(sources): prevent 500 when deleting GitLab/GitHub apps (#11105)
andrasbacsai Aug 1, 2026
3ba0e26
fix(backups): pin all resolved addresses in one CURLOPT_RESOLVE entry…
andrasbacsai Aug 3, 2026
c27a5ec
fix(backups): pin a single bracket-free IP for mc --resolve (#11028)
andrasbacsai Aug 3, 2026
7b18777
feat(mcp): add resource diagnostics and deployment controls (#11000)
andrasbacsai Aug 3, 2026
0b843bb
fix(compose): normalize service-name keys for domains and env vars (#…
andrasbacsai Aug 3, 2026
8ae5658
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigur…
andrasbacsai Aug 3, 2026
0435f23
Merge branch 'v4.x' into next
andrasbacsai Aug 3, 2026
05438e1
chore(release): bump Coolify to 4.3.0 and nightly to 4.3.1
andrasbacsai Aug 3, 2026
9721fcd
chore(deps): bump sentinel from 0.0.21 to 0.0.22
andrasbacsai Aug 3, 2026
1bb54c0
feat(ui): scrollable resource tabs and railpack default
andrasbacsai Aug 3, 2026
ff05901
style(ui): use solid sidebar pills instead of accent gradients
andrasbacsai Aug 3, 2026
0793364
test(browser): expand config coverage and shared helpers
andrasbacsai Aug 4, 2026
dbc6f5e
fix(realtime): force-WS option and polish connection popup UI
andrasbacsai Aug 4, 2026
a7a06aa
feat(ui): polish domains, storage, env vars and resource nav
andrasbacsai Aug 5, 2026
0312cc8
feat(ui): polish email modal, search loading, and volume tables
andrasbacsai Aug 5, 2026
5842d77
feat(volume-backups): add service backup UI and polish layouts
andrasbacsai Aug 5, 2026
2291c3f
feat(ui): unify team, security, and notification settings layouts
andrasbacsai Aug 5, 2026
5de6f97
feat(ui): unify resource nav sidebars and polish project layouts
andrasbacsai Aug 5, 2026
d6db943
feat(ui): OS-aware search shortcuts and mobile settings titles
andrasbacsai Aug 5, 2026
85613b0
feat(ui): expand server sidebar and extract status summary
andrasbacsai Aug 5, 2026
ec16541
feat(ui): dock resource actions in top bar, user menu in sidebar
andrasbacsai Aug 5, 2026
cd62012
fix(ui): reverse collapsed sidebar footer and polish server filter
andrasbacsai Aug 5, 2026
8046e5a
fix(ui): correct shield-star reicon path geometry
andrasbacsai Aug 5, 2026
4d35c63
feat(ui): show internal hostname and densify config UI
andrasbacsai Aug 5, 2026
8e57a9a
feat(ui): align auth pages to shared shell and truncate team names
andrasbacsai Aug 5, 2026
bdb3675
feat(ui): unify brand accents and polish shared controls
andrasbacsai Aug 5, 2026
4f966e3
fix(ui): normalize service logos and fix template icon fallbacks
andrasbacsai Aug 5, 2026
232b999
fix(ui): improve tooltip a11y and settings select layout
andrasbacsai Aug 6, 2026
bb83c1e
feat(ui): polish domains UX and dark-mode loading accents
andrasbacsai Aug 6, 2026
9fd2a21
fix(domains): close edit modal after save and drop Lima seeds
andrasbacsai Aug 6, 2026
a6ab360
fix(ui): gate copy button on clipboard API support
andrasbacsai Aug 6, 2026
0be1311
refactor(application): extract status and internal access components
andrasbacsai Aug 6, 2026
66b202a
feat(ui): restyle public access domains summary
andrasbacsai Aug 6, 2026
2a5197f
feat(ui): add shared table controls and multi-select filters
andrasbacsai Aug 6, 2026
6496cfa
feat(ui): show reicon fallback for services without a logo
ShadowArcanist Aug 6, 2026
987d675
refactor(ui): fill resource logo tiles and support light/dark logo va…
ShadowArcanist Aug 6, 2026
b8a0c69
feat(ui): add tile icon set for the resource picker
ShadowArcanist Aug 6, 2026
e14f119
feat(ui): use dedicated tile icons for application and database resou…
ShadowArcanist Aug 6, 2026
5efee29
feat(ui): reorder git application types to surface deploy key earlier
ShadowArcanist Aug 6, 2026
03c6eb7
feat(ui): rewrite resource picker titles and descriptions
ShadowArcanist Aug 6, 2026
fae6e15
feat(ui): revamp new resource page (#11140)
andrasbacsai Aug 6, 2026
6b41899
feat(ui): add custom theme color and polish light-mode theming
andrasbacsai Aug 6, 2026
262ad89
feat(ui): unify status summaries, tooltips, and resource headings
andrasbacsai Aug 6, 2026
2aae718
chore(docker): bump cloudflared to 2026.7.3
Aug 6, 2026
e4fa2b6
fix(ui): polish mobile layouts, error pages, and volume backups
andrasbacsai Aug 6, 2026
8f255bd
chore(docker): bump cloudflared to 2026.7.3 (fixes 2 CRITICAL CVEs) (…
andrasbacsai Aug 6, 2026
39197d0
fix(ui): keep deployment history columns scrollable on mobile
andrasbacsai Aug 6, 2026
64d73b6
fix(ui): keep helper popups in visual viewport on mobile
andrasbacsai Aug 6, 2026
fd6dbd5
feat(service): warn when required environment variables are missing
andrasbacsai Aug 7, 2026
d68b198
feat(ui): toggle Server Timing HUD and link missing env badge
andrasbacsai Aug 7, 2026
4539d14
feat(ui): show S3 backup status and move domain action
andrasbacsai Aug 7, 2026
7c6d00c
fix(ui): cap helper popup width and share destination status
andrasbacsai Aug 7, 2026
8ae9c03
feat(terminal): lazy-load targets and polish theme UI
andrasbacsai Aug 7, 2026
a6f7190
feat(ui): add Open server links on destination cards
andrasbacsai Aug 7, 2026
8f7eb2d
feat(server): auto-resolve Sentinel URL and polish setup UI
andrasbacsai Aug 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
267 changes: 267 additions & 0 deletions .agents/skills/shadcn/SKILL.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .agents/skills/shadcn/agents/openai.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
interface:
display_name: "shadcn/ui"
short_description: "Manages shadcn/ui components — adding, searching, fixing, debugging, styling, and composing UI."
icon_small: "./assets/shadcn-small.png"
icon_large: "./assets/shadcn.png"
Binary file added .agents/skills/shadcn/assets/shadcn-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .agents/skills/shadcn/assets/shadcn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
290 changes: 290 additions & 0 deletions .agents/skills/shadcn/cli.md

Large diffs are not rendered by default.

209 changes: 209 additions & 0 deletions .agents/skills/shadcn/customization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
# Customization & Theming

Components reference semantic CSS variable tokens. Change the variables to change every component.

## Contents

- How it works (CSS variables → Tailwind utilities → components)
- Color variables and OKLCH format
- Dark mode setup
- Changing the theme (presets, CSS variables)
- Adding custom colors (Tailwind v3 and v4)
- Border radius
- Customizing components (variants, className, wrappers)
- Checking for updates

---

## How It Works

1. CSS variables defined in `:root` (light) and `.dark` (dark mode).
2. Tailwind maps them to utilities: `bg-primary`, `text-muted-foreground`, etc.
3. Components use these utilities — changing a variable changes all components that reference it.

---

## Color Variables

Every color follows the `name` / `name-foreground` convention. The base variable is for backgrounds, `-foreground` is for text/icons on that background.

| Variable | Purpose |
| -------------------------------------------- | -------------------------------- |
| `--background` / `--foreground` | Page background and default text |
| `--card` / `--card-foreground` | Card surfaces |
| `--primary` / `--primary-foreground` | Primary buttons and actions |
| `--secondary` / `--secondary-foreground` | Secondary actions |
| `--muted` / `--muted-foreground` | Muted/disabled states |
| `--accent` / `--accent-foreground` | Hover and accent states |
| `--destructive` / `--destructive-foreground` | Error and destructive actions |
| `--border` | Default border color |
| `--input` | Form input borders |
| `--ring` | Focus ring color |
| `--chart-1` through `--chart-5` | Chart/data visualization |
| `--sidebar-*` | Sidebar-specific colors |
| `--surface` / `--surface-foreground` | Secondary surface |

Colors use OKLCH: `--primary: oklch(0.205 0 0)` where values are lightness (0–1), chroma (0 = gray), and hue (0–360).

---

## Dark Mode

Class-based toggle via `.dark` on the root element. In Next.js, use `next-themes`:

```tsx
import { ThemeProvider } from "next-themes"

<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
{children}
</ThemeProvider>
```

---

## Changing the Theme

```bash
# Apply a preset code from ui.shadcn.com.
npx shadcn@latest apply --preset a2r6bw

# Positional shorthand also works.
npx shadcn@latest apply a2r6bw

# Switch to a named preset and overwrite existing components.
npx shadcn@latest apply --preset nova

# Preserve existing components instead.
npx shadcn@latest init --preset nova --force --no-reinstall

# Use a custom theme URL.
npx shadcn@latest apply --preset "https://ui.shadcn.com/init?base=radix&style=nova&theme=blue&..."
```

Or edit CSS variables directly in `globals.css`.

---

## Adding Custom Colors

Add variables to the file at `tailwindCssFile` from `npx shadcn@latest info` (typically `globals.css`). Never create a new CSS file for this.

```css
/* 1. Define in the global CSS file. */
:root {
--warning: oklch(0.84 0.16 84);
--warning-foreground: oklch(0.28 0.07 46);
}
.dark {
--warning: oklch(0.41 0.11 46);
--warning-foreground: oklch(0.99 0.02 95);
}
```

```css
/* 2a. Register with Tailwind v4 (@theme inline). */
@theme inline {
--color-warning: var(--warning);
--color-warning-foreground: var(--warning-foreground);
}
```

When `tailwindVersion` is `"v3"` (check via `npx shadcn@latest info`), register in `tailwind.config.js` instead:

```js
// 2b. Register with Tailwind v3 (tailwind.config.js).
module.exports = {
theme: {
extend: {
colors: {
warning: "oklch(var(--warning) / <alpha-value>)",
"warning-foreground":
"oklch(var(--warning-foreground) / <alpha-value>)",
},
},
},
}
```

```tsx
// 3. Use in components.
<div className="bg-warning text-warning-foreground">Warning</div>
```

---

## Border Radius

`--radius` controls border radius globally. Components derive values from it (`rounded-lg` = `var(--radius)`, `rounded-md` = `calc(var(--radius) - 2px)`).

---

## Customizing Components

See also: [rules/styling.md](./rules/styling.md) for Incorrect/Correct examples.

Prefer these approaches in order:

### 1. Built-in variants

```tsx
<Button variant="outline" size="sm">
Click
</Button>
```

### 2. Tailwind classes via `className`

```tsx
<Card className="mx-auto max-w-md">...</Card>
```

### 3. Add a new variant

Edit the component source to add a variant via `cva`:

```tsx
// components/ui/button.tsx
warning: "bg-warning text-warning-foreground hover:bg-warning/90",
```

### 4. Wrapper components

Compose shadcn/ui primitives into higher-level components:

```tsx
export function ConfirmDialog({ title, description, onConfirm, children }) {
return (
<AlertDialog>
<AlertDialogTrigger asChild>{children}</AlertDialogTrigger>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>{title}</AlertDialogTitle>
<AlertDialogDescription>{description}</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction onClick={onConfirm}>Confirm</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
)
}
```

---

## Checking for Updates

```bash
npx shadcn@latest add button --diff
```

To preview exactly what would change before updating, use `--dry-run` and `--diff`:

```bash
npx shadcn@latest add button --dry-run # see all affected files
npx shadcn@latest add button --diff button.tsx # see the diff for a specific file
```

See [Updating Components in SKILL.md](./SKILL.md#updating-components) for the full smart merge workflow.
47 changes: 47 additions & 0 deletions .agents/skills/shadcn/evals/evals.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"skill_name": "shadcn",
"evals": [
{
"id": 1,
"prompt": "I'm building a Next.js app with shadcn/ui (base-nova preset, lucide icons). Create a settings form component with fields for: full name, email address, and notification preferences (email, SMS, push notifications as toggle options). Add validation states for required fields.",
"expected_output": "A React component using FieldGroup, Field, ToggleGroup, data-invalid/aria-invalid validation, gap-* spacing, and semantic colors.",
"files": [],
"expectations": [
"Uses FieldGroup and Field components for form layout instead of raw div with space-y",
"Uses Switch for independent on/off notification toggles (not looping Button with manual active state)",
"Uses data-invalid on Field and aria-invalid on the input control for validation states",
"Uses gap-* (e.g. gap-4, gap-6) instead of space-y-* or space-x-* for spacing",
"Uses semantic color tokens (e.g. bg-background, text-muted-foreground, text-destructive) instead of raw colors like bg-red-500",
"No manual dark: color overrides"
]
},
{
"id": 2,
"prompt": "Create a dialog component for editing a user profile. It should have the user's avatar at the top, input fields for name and bio, and Save/Cancel buttons with appropriate icons. Using shadcn/ui with radix-nova preset and tabler icons.",
"expected_output": "A React component with DialogTitle, Avatar+AvatarFallback, data-icon on icon buttons, no icon sizing classes, tabler icon imports.",
"files": [],
"expectations": [
"Includes DialogTitle for accessibility (visible or with sr-only class)",
"Avatar component includes AvatarFallback",
"Icons on buttons use the data-icon attribute (data-icon=\"inline-start\" or data-icon=\"inline-end\")",
"No sizing classes on icons inside components (no size-4, w-4, h-4, etc.)",
"Uses tabler icons (@tabler/icons-react) instead of lucide-react",
"Uses asChild for custom triggers (radix preset)"
]
},
{
"id": 3,
"prompt": "Create a dashboard component that shows 4 stat cards in a grid. Each card has a title, large number, percentage change badge, and a loading skeleton state. Using shadcn/ui with base-nova preset and lucide icons.",
"expected_output": "A React component with full Card composition, Skeleton for loading, Badge for changes, semantic colors, gap-* spacing.",
"files": [],
"expectations": [
"Uses full Card composition with CardHeader, CardTitle, CardContent (not dumping everything into CardContent)",
"Uses Skeleton component for loading placeholders instead of custom animate-pulse divs",
"Uses Badge component for percentage change instead of custom styled spans",
"Uses semantic color tokens instead of raw color values like bg-green-500 or text-red-600",
"Uses gap-* instead of space-y-* or space-x-* for spacing",
"Uses size-* when width and height are equal instead of separate w-* h-*"
]
}
]
}
105 changes: 105 additions & 0 deletions .agents/skills/shadcn/mcp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# shadcn MCP Server

The CLI includes an MCP server that lets AI assistants search, browse, view, and install items from registries.

---

## Setup

```bash
shadcn mcp # start the MCP server (stdio)
shadcn mcp init # write config for your editor
```

Editor config files:

| Editor | Config file |
| ----------- | ------------------------------- |
| Claude Code | `.mcp.json` |
| Cursor | `.cursor/mcp.json` |
| VS Code | `.vscode/mcp.json` |
| OpenCode | `opencode.json` |
| Codex | `~/.codex/config.toml` (manual) |

---

## Tools

> **Tip:** MCP tools handle registry operations (search, view, install). For project configuration (aliases, framework, Tailwind version), use `npx shadcn@latest info` — there is no MCP equivalent.

### `shadcn:get_project_registries`

Returns registry names from `components.json`. Errors if no `components.json` exists.

**Input:** none

### `shadcn:list_items_in_registries`

Lists all items from one or more registries. Registries can be configured
namespaces such as `@acme`, public GitHub sources such as `owner/repo`, or
registry catalog URLs. Omit `registries` to list from every registry configured
in `components.json`.

**Input:** `registries` (string[], optional — omit for all configured), `types` (string[], optional — e.g. `["ui", "block"]`), `limit` (number, optional, defaults to 100), `offset` (number, optional)

### `shadcn:search_items_in_registries`

Fuzzy search across registries. Registries can be configured namespaces, public
GitHub sources, or registry catalog URLs. Omit `registries` to search every
registry configured in `components.json` — e.g. "find me a hero" across all
configured registries.

**Input:** `registries` (string[], optional — omit for all configured), `query` (string), `types` (string[], optional — e.g. `["ui", "block"]`), `limit` (number, optional, defaults to 100), `offset` (number, optional)

### `shadcn:view_items_in_registries`

View item details including full file contents.

**Input:** `items` (string[]) — e.g.
`["@shadcn/button", "@shadcn/card", "owner/repo/item"]`

### `shadcn:get_item_examples_from_registries`

Find usage examples and demos with source code. Omit `registries` to search
every registry configured in `components.json`.

**Input:** `registries` (string[], optional — omit for all configured), `query` (string) — e.g. `"accordion-demo"`, `"button example"`

### `shadcn:get_add_command_for_items`

Returns the CLI install command.

**Input:** `items` (string[]) — e.g. `["@shadcn/button"]`

### `shadcn:get_audit_checklist`

Returns a checklist for verifying components (imports, deps, lint, TypeScript).

**Input:** none

---

## Configuring Registries

Namespaced and authenticated registries are set in `components.json`. The
`@shadcn` registry is always built-in. Public GitHub registries can also be used
directly as `owner/repo` registry sources when the repository has a root
`registry.json`; they do not need `components.json` configuration.

```json
{
"registries": {
"@acme": "https://acme.com/r/{name}.json",
"@private": {
"url": "https://private.com/r/{name}.json",
"headers": { "Authorization": "Bearer ${MY_TOKEN}" }
}
}
}
```

- Names must start with `@`.
- URLs must contain `{name}`.
- `${VAR}` references are resolved from environment variables.

Community registry index: `https://ui.shadcn.com/r/registries.json`
Loading
Loading