W Shadcn

blockmatic/basilic-skills/skills/workflow/w-shadcn

作者 blockmatic7e05e2abd052dc6b526e8a28e36d102d42bfd635無授權條款1 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫6 天前更新

Install shadcn/w-ui primitives in the shared UI package using monorepo import paths.

AI 產生的概覽

在 monorepo 的共用 UI 套件中安裝或擴充 shadcn/w-ui 基礎元件,並使用正確的匯入路徑。

功能
此技能會指引在 monorepo 的共用 UI 套件中安裝或擴充 shadcn/w-ui 基礎元件,元件位置由 components.json 指定。它說明了正確的匯入路徑、所需的 style 設定,以及使用 render 搭配 data-slot 或 data-open 的組合慣例。它也要求後續動作:用 /w-ui 調整畫面、對變更的檔案執行 lint,並在行為或指令變更時更新文件。
適用情境
適用於在共用 UI 套件中新增 shadcn 基礎元件或擴充現有元件時。也適用於需要讓匯入路徑、元件樣式或組合慣例與 monorepo 設定保持一致的情況。
執行需求
不含指令碼,僅為說明性指示。它假定存在具有共用 UI 套件的 monorepo、components.json 檔案,並在變體不明確或安裝發生錯誤時可使用 shadcn MCP。它也引用了配套技能 /w-ui、/w-docs 和 shadcn-v3。

Install or extend a shadcn primitive. Reshaping a screen stays on /w-ui. Follow shadcn-v3.

  1. Use shadcn MCP only when unsure about variants or when hitting an install error.
  2. Install in the shared UI package from components.json (Basilic example: packages/w-ui/src/components/).
  3. Import @repo/w-ui/components/* and that package’s cn. Rare primitives: @repo/w-ui/base (not @base-ui/react, not @radix-ui/*, not deleted @repo/w-ui/radix). Keep components.json "style": "base-vega". Compose with render + data-slot / data-open (not asChild / data-state).
  4. After the primitive exists, reshape screens with /w-ui if the job is a surface, not only a component. Run lint on the changed files.
  5. Docs: /w-docs if behavior or commands changed.

來源與署名

來源:blockmatic/basilic-skills位於skills/workflow/w-shadcn提交7e05e2a

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架