·shadcn

shadcn/ui 組件庫最佳實踐和模式(以前​​​​稱為 shadcn-ui)。在編寫、審查或重構 shadcn/ui 組件時應使用此技能,以確保正確的架構、可訪問性和性能。觸發涉及 Radix 原語、Tailwind 樣式、使用 React Hook Form 進行表單驗證、數據表、主題或組件組合模式的任務。

5安裝·0熱度·@thongdn-it

安裝

$npx skills add https://github.com/thongdn-it/react-agent-skills --skill shadcn

SKILL.md

Comprehensive best practices guide for shadcn/ui applications, maintained by the shadcn/ui community. Contains 42 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

| 1 | Component Architecture | CRITICAL | arch- | | 2 | Accessibility Preservation | CRITICAL | ally- | | 3 | Styling & Theming | HIGH | style- | | 4 | Form Patterns | HIGH | form- | | 5 | Data Display | MEDIUM-HIGH | data- | | 6 | Component Composition | MEDIUM | comp- | | 7 | Performance Optimization | MEDIUM | perf- |

| 8 | State Management | LOW-MEDIUM | state- |

shadcn/ui 組件庫最佳實踐和模式(以前​​​​稱為 shadcn-ui)。在編寫、審查或重構 shadcn/ui 組件時應使用此技能,以確保正確的架構、可訪問性和性能。觸發涉及 Radix 原語、Tailwind 樣式、使用 React Hook Form 進行表單驗證、數據表、主題或組件組合模式的任務。 來源:thongdn-it/react-agent-skills。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/thongdn-it/react-agent-skills --skill shadcn
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 shadcn?

shadcn/ui 組件庫最佳實踐和模式(以前​​​​稱為 shadcn-ui)。在編寫、審查或重構 shadcn/ui 組件時應使用此技能,以確保正確的架構、可訪問性和性能。觸發涉及 Radix 原語、Tailwind 樣式、使用 React Hook Form 進行表單驗證、數據表、主題或組件組合模式的任務。 來源:thongdn-it/react-agent-skills。

如何安裝 shadcn?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/thongdn-it/react-agent-skills --skill shadcn 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/thongdn-it/react-agent-skills