一键导入
ui-components
Best practices for building UI with shadcn/ui, Tailwind, and chart references.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Best practices for building UI with shadcn/ui, Tailwind, and chart references.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Best practices for web project conventions built with Next.js, React, and TypeScript (structure, naming, imports, exports).
Expert knowledge for client-side state management with Zustand using the decoupled actions pattern.
| name | ui-components |
| description | Best practices for building UI with shadcn/ui, Tailwind, and chart references. |
Before building any UI component, follow these steps in order. Stop as soon as you find a match.
Check existing components — Search web/components/ui/ and web/components/blocks/ for an existing component that fits. If found, import via @/components/* and use it.
Check shadcn/ui library — If no existing component matches, look up the equivalent in https://ui.shadcn.com/llms.txt. If available, install it using instructions from the web/ directory.
Create a new primitive — Only if steps 1 and 2 fail, create a new primitive under web/components/ui/. Keep it generic with no domain logic.
./references/charts.md for chart docs and gallery links../references/charts-*.md for chart example summaries by type.web/components/ui/* must not contain domain logic, data fetching, or feature-specific state.flex-col md:flex-row).web/components/ui/ — UI primitives only (buttons, inputs, dialogs, etc.).web/components/blocks/ — reusable compositions built from primitives.web/features/* — feature/domain UI (may compose blocks + primitives; owns feature logic).cn() for className composition (see web/components/lib/utils.ts).web/components/ui/*.@/ absolute imports).Before completing any UI component task:
ui/ vs blocks/ vs features/).web/components/ui/* contains no domain logic or data fetching.className composition uses cn() when applicable.