Agent skill

shadcn-vue Skill: Add and Compose Vue UI Components

The shadcn-vue skill injects live project context from the CLI, then guides an AI coding agent through finding, adding, reviewing and styling shadcn-vue components with strict rules for forms, icons and composition.

Install
git clone https://github.com/unovue/shadcn-vue.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the shadcn-vue skill?

The shadcn-vue skill is a SKILL.md in the unovue/shadcn-vue repository. It runs the CLI info command to load your project config, then tells an AI coding agent how to search, add, update and review components, with enforced rules for styling, forms, composition and icons. Rule files sit in a rules folder.

Before it writes any code, the skill runs npx shadcn-vue@latest info --json and reads the result. That JSON holds your aliases, Tailwind version, icon library, installed components and file paths, so advice matches the actual project instead of defaults.

The skill lives in the skills folder of the shadcn-vue repository, a Vue port of shadcn-ui where components are added to your project as source code through the CLI. It is set to not be user invocable.

What the folder contains

  • SKILL.md with principles, critical rules, a component selection table and the workflow.
  • cli.md, customization.md and mcp.md for deeper reference.
  • A rules folder with composition.md, forms.md, icons.md and styling.md, each with incorrect and correct code pairs.

Rules the skill enforces

  • Use class for layout only, and flex with gap-* instead of space-x or space-y.
  • Use semantic colors such as bg-primary, never raw values like bg-blue-500.
  • Build forms with FieldGroup and Field, with data-invalid and aria-invalid for validation.
  • Always give Dialog, Sheet and Drawer a title, even if hidden with sr-only.
  • Pass icons as objects, use data-icon inside buttons and skip sizing classes.

How the workflow runs

The agent checks installed components, searches registries, fetches docs through the docs command, adds or updates with preview flags such as --dry-run and --diff, fixes imports in third-party registry items, then rereads what it added and corrects violations.

Who the shadcn-vue skill is for

Best for

  • Vue and Nuxt projects with a components.json file that use shadcn-vue components.
  • Preset changes. The skill asks whether to overwrite, merge or skip existing components.
  • Teams that want consistent form and overlay composition across many pages. See also tailwind-design-system.

Not for

Use it with UiChemy

This skill produces Vue code. UiChemy Composer is an AI visual editor that writes real HTML, CSS and JS inside Elementor or Gutenberg, and Figma to WordPress converts Figma designs. Click Get Started on uichemy.com. See also shadcn-mcp.