원클릭으로
add-dashboard-card
Add a new metric card to the dashboard with proper styling and components
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add a new metric card to the dashboard with proper styling and components
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | add-dashboard-card |
| description | Add a new metric card to the dashboard with proper styling and components |
When adding a new dashboard metric card to this Next.js 15 dashboard application:
Choose the appropriate card component based on the metric type:
DashboardCard for basic metrics with custom contentDashboardStatCard for statistics with trend indicators (percentage changes)DashboardChartCard for metrics that include embedded chartsImport the required components:
import { DashboardCard, DashboardStatCard } from "@/components/DashboardCards";
import { IconName } from "lucide-react"; // For stat cards
Add the card data to the appropriate data array:
DashboardCharts.tsx, add to the stats array:
{
title: "Metric Name",
value: "Value with units",
change: "+X.X%",
changeType: "positive" | "negative",
icon: IconName,
}
Follow styling conventions:
hsl(var(--border)), hsl(var(--muted-foreground))cn() utility from @/lib/utils for conditional classesMaintain the grid layout:
grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-6Type safety:
as const for union types like changeType// In DashboardCharts.tsx, add to stats array:
{
title: "Monthly Revenue",
value: "$12,345",
change: "+15.3%",
changeType: "positive" as const,
icon: DollarSign,
}
<DashboardCard title="Custom Metric" value="142">
<MiniLineChart data={chartData} />
</DashboardCard>
src/components/DashboardCards.tsxsrc/components/DashboardCharts.tsxsrc/lib/charts.tsxadd-chartadd-shadcn-componentAdd a new Recharts visualization with theme-aware styling to the dashboard
Add Lucide React icons to components following project conventions
Add responsive layouts following mobile-first design principles with Tailwind CSS
Add a new shadcn/ui component to the project following the New York style variant
Add or customize theme colors in the CSS custom properties system
Create a new dashboard page following Next.js 15 App Router conventions