About w-shadcn
w-shadcn is a repository skill for installing or extending shadcn primitives and coordinating component work with screen updates. It specifies package conventions, composition patterns, and when to run related UI and documentation skills.
Key features
- 01Install or extend shadcn primitives
- 02Use shared UI package conventions
- 03Compose with render and data attributes
- 04Run lint on changed files
- 05Route screen and docs work to related skills
Use cases
- 01Adding a shadcn primitive to the shared UI package
- 02Updating a screen after adding a component
- 03Checking component changes with lint
- 04Documenting changed behavior or commands
MCP support
It recommends using shadcn MCP 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/ 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