shadcn-vue
shadcn-vue for Vue/Nuxt with Reka UI components and Tailwind. Use for accessible UI, Auto Form, data tables, charts, dark mode, MCP server setup, or encountering component imports, Reka UI errors.
What this skill does
# shadcn-vue
---
## Quick Start (3 Minutes)
### For Vue Projects (Vite)
#### 1. Initialize shadcn-vue
```bash
npx shadcn-vue@latest init
```
**During initialization**:
- Style: `New York` or `Default` (cannot change later!)
- Base color: `Slate` (recommended)
- CSS variables: `Yes` (required for dark mode)
#### 2. Configure TypeScript Path Aliases
```json
// tsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
```
#### 3. Configure Vite
```typescript
// vite.config.ts
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import tailwindcss from "@tailwindcss/vite"; // Tailwind v4
import path from "path";
export default defineConfig({
plugins: [vue(), tailwindcss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});
```
#### 4. Add Your First Component
```bash
npx shadcn-vue@latest add button
```
---
## Quick Reference
| Need | Command or file |
| ----------------------- | -------------------------------------------------- |
| Initialize project | `npx shadcn-vue@latest init` |
| Add component | `npx shadcn-vue@latest add button` |
| Add multiple components | `npx shadcn-vue@latest add button card dialog` |
| Build registry JSON | `npx shadcn-vue@latest build` |
| Generate component docs | `npx tsx scripts/generate-shadcn-components.ts` |
| Enable CSS variables | `components.json` → `tailwind.cssVariables: true` |
| Add registry namespace | `components.json` → `registries` map |
| Opencode MCP init | `npx shadcn-vue@latest mcp init --client opencode` |
| Codex MCP config | `~/.codex/config.toml` with `mcp_servers.shadcn` |
---
## Bundled Resources
**Templates** (`templates/`):
- `quick-setup.ts` - Complete setup guide for Vue/Nuxt with examples (190 lines)
**References** (`references/`):
- `cli.md` - CLI commands and options
- `mcp.md` - MCP setup, client configs, prompts
- `theming.md` - Theming and `cssVariables`
- `error-catalog.md` - All 7 documented issues with solutions (267 lines)
- `component-examples.md` - All 50+ component examples with code
- `dark-mode-setup.md` - Complete dark mode implementation guide
- `data-tables.md` - Data tables with TanStack Table
**Component Documentation** (`components/`):
- `references/components.md` - Index of all shadcn-vue components
- `components/<component>.md` - Individual component documentation with installation, usage, and examples
**Official Documentation**:
- shadcn-vue Docs: https://shadcn-vue.com
- Reka UI Docs: https://reka-ui.com
- GitHub: https://github.com/radix-vue/shadcn-vue
---
## When to Load References
Load these references based on the task:
1. **Load `references/error-catalog.md` when:**
- User encounters "component not found" or import errors
- Setup commands fail or configuration issues arise
- Tailwind CSS variables or TypeScript paths broken
- **Trigger phrases:** "not working", "error", "fails to", "broken"
2. **Load `references/components.md` when:**
- User asks what components are available (names, categories, status)
- User needs to add/use a component and wants the correct install/import paths
- You need to confirm a component exists before recommending a custom build
3. **Load `references/component-examples.md` when:**
- User asks "how do I implement [component]?"
- Need copy-paste examples for specific components
- Building forms, tables, navigation, or data display
- **Trigger phrases:** "example", "how to use", "implement", "code sample"
4. **Load `references/cli.md` when:**
- User asks how to run the CLI (`init`, `add`, `update`) or what prompts mean
- Need the exact command/flags for installing one or more components
- Troubleshooting CLI-related issues (registry, paths, overwrites)
5. **Load `references/dark-mode-setup.md` when:**
- Implementing dark mode / theme switching
- User mentions Vue 3 + Vite, Nuxt, or Astro setup
- Need composable patterns for theme management
- **Trigger phrases:** "dark mode", "theme", "light/dark", "color scheme"
6. **Load `references/theming.md` when:**
- User wants to customize theme tokens via CSS variables (`cssVariables`, `:root`, `.dark`)
- Need to wire Tailwind to CSS-variable-based colors and radii
- Setting up/adjusting design tokens (colors, radius, typography) for shadcn-vue
7. **Load `references/mcp.md` when:**
- Setting up MCP server for opencode, Codex, Cursor, VS Code
- Configuring registries in `components.json`
- Troubleshooting missing components or registry namespaces
- **Trigger phrases:** "MCP", "opencode", "codex", "cursor", "registry"
8. **Load `references/data-tables.md` when:**
- Building sortable/filterable/paginated tables
- User mentions TanStack Table or `DataTable`
- **Trigger phrases:** "data table", "table", "tanstack", "sorting", "pagination"
---
## Critical Rules
### Always Do
✅ **Run `init` before adding components**
- Creates required configuration and utilities
- Sets up path aliases
✅ **Use CSS variables for theming** (`cssVariables: true`)
- Enables dark mode support
- Flexible theme customization
✅ **Configure TypeScript path aliases**
- Required for component imports
- Must match `components.json` aliases
✅ **Keep components.json in version control**
- Team members need same configuration
- Documents project setup
### Never Do
❌ **Don't change `style` after initialization**
- Requires complete reinstall
- Reinitialize in new directory instead
❌ **Don't mix Radix Vue and Reka UI v2**
- Incompatible component APIs
- Use one or the other
❌ **Don't skip TypeScript configuration**
- Component imports will fail
- IDE autocomplete won't work
❌ **Don't use without Tailwind CSS**
- Components are styled with Tailwind
- Won't render correctly
---
## Common Mistakes
- Running `add` before `init` and missing `components.json`.
- Forgetting to enable the MCP server in the client UI/config.
- Mis-typed registry namespaces (`@namespace/component`).
- Using CSS variable classes without `tailwind.cssVariables: true`.
---
## CLI Commands Reference
### init Command
```bash
# Initialize in current directory
npx shadcn-vue@latest init
# Initialize in specific directory (monorepo)
npx shadcn-vue@latest init -c ./apps/web
```
### add Command
```bash
# Add single component
npx shadcn-vue@latest add button
# Add multiple components
npx shadcn-vue@latest add button card dialog
# Add all components
npx shadcn-vue@latest add --all
```
### diff Command
```bash
# Check for component updates
npx shadcn-vue@latest diff button
```
### mcp Command
```bash
# Initialize MCP for specific client
npx shadcn-vue@latest mcp init --client opencode
npx shadcn-vue@latest mcp init --client codex
npx shadcn-vue@latest mcp init --client cursor
npx shadcn-vue@latest mcp init --client vscode
```
---
## Configuration
shadcn-vue uses `components.json` to configure:
- Component paths (`@/components/ui`)
- Utils location (`@/lib/utils`)
- Tailwind config paths
- TypeScript paths
**Full example:** See `templates/components.json` or generate via `npx shadcn-vue@latest init`
---
## Utils Library
The `@/lib/utils.ts` file provides the `cn()` helper for merging Tailwind classes:
- Combines multiple className strings
- Uses `clsx` + `tailwind-merge` for conflict resolution
**Auto-generated** by `shadcn-vue init` - no manual setup needed.
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.