Skip to main content
skill CX Codex

w-shadcn — Claude Code skill: what it does, how to install

The w-shadcn Claude Code skill adds shadcn primitives to a shared UI package or extends existing ones. It handles component-level work; screen redesigns go through /w-ui.

MIT 647 installs ★ 1 updated 2026-10-02

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add blockmatic-icebox/basilic-skills --skill w-shadcn -a claude-code
Open on GitHub

What w-shadcn does

The skill installs a shadcn primitive in a monorepo’s shared UI package, or extends one already there. It finds the package from components.json; the Basilic example points to packages/w-ui/src/components/.

Use @repo/w-ui/components/* for imports and take cn from that package. Less common primitives come from @repo/w-ui/base. The components.json style must be base-vega; composition uses render with data-slot or data-open. The skill runs lint on changed files. It calls shadcn MCP only when component variants are unclear or installation fails. If behavior or commands change, documentation is handled with /w-docs.

What it helps with

  • add a shadcn primitive to the shared UI package
  • extend an existing interface component
  • import a primitive through the monorepo package path
  • lint the files changed by the update

Example prompts for the agent

  • Add a shadcn date-picker primitive to the shared UI package.
  • Extend this primitive and import it through @repo/w-ui/components/*.
  • Update the component, then lint the changed files.

How to install w-shadcn

1Skills CLI (Vercel)

npx skills add blockmatic-icebox/basilic-skills --skill w-shadcn -a claude-code

2Manually: put the files in place

~/.claude/skills/w-shadcn/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/w-shadcn/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about w-shadcn

How do I install w-shadcn in Claude Code?

Run npx skills add blockmatic-icebox/basilic-skills --skill w-shadcn -a claude-code. The skill file is at ~/.claude/skills/w-shadcn/SKILL.md.

What does w-shadcn do?

It installs or extends shadcn primitives in a shared monorepo UI package, then runs lint on changed files.

Which import conventions does w-shadcn follow?

Regular primitives use @repo/w-ui/components/*; less common ones use @repo/w-ui/base. The components.json style is base-vega.

Source text

SKILL.md · MIT
---
name: w-shadcn
description: Install shadcn/w-ui primitives in the shared UI package using monorepo import paths.
disable-model-invocation: true
---

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-icebox · MIT · blockmatic-icebox/basilic-skills

Similar skills

All skills for Frontend and UI →

From the same set45

The whole set →
w-perf The w-perf Claude Code skill measures project performance and locates bottlenecks. It runs on requests to investigate slow code or improve performance. CX Codex +1 647installs w-a11y The w-a11y Claude Code skill checks UI accessibility against a repository’s docs and tests. It reports findings by default and changes code only when asked to fix issues. CX Codex +1 647installs w-form The w-form Claude Code skill guides form work in a Next.js app through the mutation path the project already uses. Invoke it to build a form. CX Codex +1 647installs w-v0 The w-v0 Claude Code skill drafts a v0.dev prompt from the current file, selection, and project stack. It opens the generated link only after OPEN. CX Codex +1 647installs w-ui w-ui — a Claude Code skill for building or reshaping user-facing interfaces around a project’s existing tokens and accessible interactions. It checks rendered screens on desktop and mobile. CX Codex +1 647installs w-diagram The w-diagram Claude Code skill turns code, architecture, or data flows into Mermaid diagrams. For product and architecture requests, it compares named MDX or DESIGN.md files with the code. CX Codex +1 647installs w-onboard The w-onboard Claude Code skill takes a developer from cloning a repository to a running local app. It follows project setup instructions and checks that the app can reach its API. CX Codex +1 647installs w-api-docs The w-api-docs Claude Code skill refreshes API documentation from its source schema or routes. It steps in when an API change needs to be reflected in generated docs. CX Codex +1 647installs

Project sponsors

Companies that keep this analytics open