unocss-shadcn

Installation
SKILL.md

unocss-shadcn

Overview

Apply a deterministic setup flow for UnoCSS and unocss-preset-shadcn without running automatic installers. Detect monorepo strictly, route component targets by project shape, and enforce shadcn MCP plus manual-mode component creation.

Core Rules

  1. Run in semi-automatic mode only: propose commands and file edits, but do not auto-install dependencies.
  2. Detect monorepo only when one of these is true:
  • pnpm-workspace.yaml exists at repo root.
  • Root package.json contains workspaces.
  1. Use destination policy:
  • Monorepo: packages/shadcn-ui
  • Single project: src/components
  1. UnoCSS config location policy:
  • Monorepo: configure in each apps/<app>/uno.config.* (NOT at repo root or in packages).
  • Single project: configure at project root uno.config.*.
  1. Default to presetWind4 unless the user explicitly requests a different version (e.g. presetWind3).
  2. For monorepo component package dependencies, write shadcn-related runtime items to peerDependencies.
  3. Use shadcn MCP before any component usage or creation.
Related skills

More from jsonlee12138/prompts

Installs
9
GitHub Stars
1
First Seen
Mar 4, 2026