VU

vue-best-practices

This skill implements a consistent Vue project architecture using the Composition API, script setup, and state management.

Install

mkdir -p .claude/skills/vue-best-practices && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1475" && unzip -o skill.zip -d .claude/skills/vue-best-practices && rm skill.zip

Installs to .claude/skills/vue-best-practices

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.
315 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • →Implement Composition API with script setup
  • →Define component data flow contracts
  • →Extract logic into composables
  • →Split components by responsibility

How it works

It enforces a consistent architecture using the Composition API, TypeScript, and explicit component boundaries.

Inputs & outputs

You give it
Vue component requirements
You get back
Refactored, typed Vue components

When to use vue-best-practices

  • →Refactoring to Composition API
  • →Designing component data flows
  • →Setting up Vue 3 projects

About vue-best-practices

This skill enforces a consistent architecture for Vue projects. It focuses on the Composition API with script setup, predictable state management, and clear component boundaries.

MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.

When not to use it

  • →When the project explicitly requires Options API

Prerequisites

Vue 3 environment

Limitations

  • →Requires TypeScript configuration
  • →Strict adherence to SFC structure

How it compares

It mandates a specific, predictable architecture compared to generic Vue development.

Compared to similar skills

vue-best-practices side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
vue-best-practices (this skill)196moNo flagsIntermediate
vue-pages18moNo flagsIntermediate
pinia18moNo flagsIntermediate
vue08moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry