一键导入
ui-design-shadcn
Use this skill when designing and implementing new UI (pages, forms, lists, tables, dialogs, empty states) with shadcn/ui + Tailwind v4.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill when designing and implementing new UI (pages, forms, lists, tables, dialogs, empty states) with shadcn/ui + Tailwind v4.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill when you need to diagnose and fix React 19 performance issues (render churn, slow updates, Suspense/Transitions, memoization, profiling, and React Compiler).
Write clean, behavior-focused unit/integration tests that remain trustworthy when code is written or modified by agents (prevents “test weakening”, enforces invariants, and adds CI guardrails).
Use this skill when you are creating or updating Agent Skills in your project (structure, YAML frontmatter, naming, and progressive disclosure).
Use this skill when designing or refactoring boundaries, responsibilities, and change drivers using practical software architecture “hard parts” thinking + SRP.
Use this skill when you need a Bun runbook (dev, build, lint, typecheck, tests, migrations, and verification steps).
Use this skill when you need a thorough code hygiene pass (dead code, lint escapes, consistency, formatting drift, and subtle smells) on touched files.
| name | ui-design-shadcn |
| description | Use this skill when designing and implementing new UI (pages, forms, lists, tables, dialogs, empty states) with shadcn/ui + Tailwind v4. |
Use this skill when you need to design (visual structure + UX) and then implement UI that fits your project’s existing look and feel.
This is not a “make it pretty” free-for-all. It’s about being consistent with:
components/ui/*)gap-4, p-4/6/8, space-y-4.rounded-none; others use sm/md/lg. Be consistent across components.text-sm is the default.text-base font-semibold.text-xl font-semibold (sometimes text-2xl).text-sm text-muted-foreground.Prefer this mental model for most pages:
References:
Use Card to group content. Inside a Card:
Use Separator sparingly (prefer spacing).
Default to primitives in components/ui/*:
components/ui/button.tsxcomponents/ui/card.tsxcomponents/ui/input.tsx, components/ui/label.tsxcomponents/ui/select.tsx, components/ui/combobox.tsxcomponents/ui/alert-dialog.tsxcomponents/ui/dropdown-menu.tsxcomponents/ui/badge.tsx, (and any existing Alert component if present)Rules:
components/ui/ only when truly reusable.app/[locale]/(dashboard)/.../_components/*.<form action={action}> and use useActionState / useFormStatus for pending UI.Label.References:
We often don’t need heavy tables.
Prefer:
Guidelines:
DropdownMenu to reduce noise.AlertDialog.Use EmptyStateCard (or replicate its layout):
loading.tsx where appropriate.error.tsx for user-facing errors.messages/en.json and messages/de.json.References:
i18n/routing.tsmessages/en.json, messages/de.jsonReferences:
Label + htmlFor).aria-label.components/ui/* primitives instead of re-implementing.p-4/6/8, gap-4).<Suspense> boundaries to stream “slow but non-blocking” sections.Reference: nextjs-cost-performance skill.
components/ui/*