ワンクリックで
add-shadcn-component
Add a new shadcn/ui component to the project following the New York style variant
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Add a new shadcn/ui component to the project following the New York style variant
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Add a new Recharts visualization with theme-aware styling to the dashboard
Add a new metric card to the dashboard with proper styling and components
Add Lucide React icons to components following project conventions
Add responsive layouts following mobile-first design principles with Tailwind CSS
Add or customize theme colors in the CSS custom properties system
Create a new dashboard page following Next.js 15 App Router conventions
| name | add-shadcn-component |
| description | Add a new shadcn/ui component to the project following the New York style variant |
When adding a new shadcn/ui component to this Next.js 15 dashboard:
Use the shadcn CLI to add components:
npx shadcn@latest add [component-name]
This ensures proper configuration with the "New York" style variant.
Component will be created in src/components/ui/[component-name].tsx automatically.
Import the component using the path alias:
import { ComponentName } from "@/components/ui/component-name";
Apply theme-aware styling when customizing:
hsl(var(--background)), hsl(var(--foreground))globals.cssUse the cn() utility for conditional classes:
import { cn } from "@/lib/utils";
<div className={cn(
"base-classes",
isActive && "active-classes"
)}>
Available shadcn components in this project:
Check src/components/ui/ for the full list.
Component conventions:
# Step 1: Add the component
npx shadcn@latest add dialog
# Step 2: Use it in your code
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog"
<Dialog>
<DialogTrigger>Open</DialogTrigger>
<DialogContent>
<DialogHeader>
<DialogTitle>Title</DialogTitle>
<DialogDescription>Description</DialogDescription>
</DialogHeader>
</DialogContent>
</Dialog>
# Add the component
npx shadcn@latest add badge
# Use with cn() for conditional styling
import { Badge } from "@/components/ui/badge"
import { cn } from "@/lib/utils"
<Badge className={cn(
isActive && "bg-green-500",
!isActive && "bg-gray-500"
)}>
Status
</Badge>
components.jsonsrc/components/ui/src/lib/utils.tsadd-dashboard-cardadd-theme-colors