一键导入
add-icon
Add Lucide React icons to components following project conventions
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add Lucide React icons to components following project conventions
用 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 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
| name | add-icon |
| description | Add Lucide React icons to components following project conventions |
When adding icons to components in this Next.js dashboard:
Import icons from lucide-react:
import { IconName } from "lucide-react";
Find available icons at: https://lucide.dev/icons
Standard icon sizes in this project:
h-4 w-4 (16px) - Used in cards and small UI elementsh-5 w-5 (20px) - Used in buttons and medium elementsh-6 w-6 (24px) - Used in headers and prominent elementsIcon color conventions:
// Muted (standard for most dashboard icons)
<Icon className="h-4 w-4 text-muted-foreground" />
// Foreground (normal text color)
<Icon className="h-4 w-4 text-foreground" />
// Accent colors
<Icon className="h-4 w-4 text-primary" />
<Icon className="h-4 w-4 text-destructive" />
Icons in dashboard stat cards:
import { DollarSign, Users, TrendingUp } from "lucide-react";
const stats = [
{
title: "Revenue",
value: "$45,231",
change: "+20.1%",
changeType: "positive" as const,
icon: DollarSign, // Pass as component reference
}
];
// Used in component:
<stat.icon className="h-4 w-4 text-muted-foreground" />
Icons in buttons:
import { Plus, Download, Settings } from "lucide-react";
<Button>
<Plus className="mr-2 h-4 w-4" />
Add Item
</Button>
Icons in navigation:
import { Home, BarChart, Settings } from "lucide-react";
<nav>
<Link href="/dashboard">
<Home className="h-5 w-5 mr-2" />
Dashboard
</Link>
</nav>
Trend indicators (existing pattern):
import { ArrowUpRight, ArrowDownRight } from "lucide-react";
{changeType === 'positive' ? (
<ArrowUpRight className="h-3 w-3 mr-1" />
) : (
<ArrowDownRight className="h-3 w-3 mr-1" />
)}
Icon accessibility:
// Meaningful icon
<Icon className="h-4 w-4" aria-label="Settings" />
// Decorative icon (text already present)
<Icon className="h-4 w-4" aria-hidden="true" />
import { Activity } from "lucide-react";
const stats = [
{
title: "Active Sessions",
value: "573",
change: "+12.1%",
changeType: "positive" as const,
icon: Activity,
}
];
import { Download } from "lucide-react";
import { Button } from "@/components/ui/button";
<Button>
<Download className="mr-2 h-4 w-4" />
Download Report
</Button>
import { TrendingUp } from "lucide-react";
import { Card, CardHeader, CardTitle } from "@/components/ui/card";
<Card>
<CardHeader className="flex flex-row items-center justify-between">
<CardTitle>Performance</CardTitle>
<TrendingUp className="h-4 w-4 text-muted-foreground" />
</CardHeader>
</Card>
src/components/DashboardCharts.tsxsrc/components/DashboardCards.tsxsrc/components/AppSidebar.tsxadd-dashboard-cardadd-shadcn-component