About w-shadcn
w-shadcn is a workflow skill for installing or extending shadcn primitives in a shared UI package. It guides component imports and composition, and directs screen-level redesigns to `/w-ui`.
Key features
- 01Install or extend shadcn primitives
- 02Use the shared UI package
- 03Follow component import conventions
- 04Compose with render and data attributes
- 05Run lint on changed files
Use cases
- 01Add a shadcn primitive to a project
- 02Extend an existing shared UI component
- 03Update a screen after adding a component
MCP support
It uses shadcn MCP only when variant details are unclear or an installation error occurs.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ blockmatic-icebox/ basilic-skills --skill w-shadcnAfter installing, type/w-shadcnin Claude Code to confirm it loaded.
Details
From the project READMEInstall or extend a shadcn primitive. Reshaping a screen stays on /w-ui. Follow shadcn-v3.
- Use shadcn MCP only when unsure about variants or when hitting an install error.
- Install in the shared UI package from
components.json(Basilic example:packages/w-ui/src/components/). - Import
@repo/w-ui/components/*and that package’scn. Rare primitives:@repo/w-ui/base(not@base-ui/react, not@radix-ui/*, not deleted@repo/w-ui/radix). Keepcomponents.json"style": "base-vega". Compose withrender+data-slot/data-open(notasChild/data-state). - After the primitive exists, reshape screens with
/w-uiif the job is a surface, not only a component. Run lint on the changed files. - Docs:
/w-docsif behavior or commands changed.
Comments
Markdown supported