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.zipInstalls 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.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
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
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.
Try saying
Example prompts that trigger this skill in your AI assistant.
More by antfu
View all by antfu →You might also like
vue-pages
JaguarJack
Generate Vue frontend pages using catch-table for CatchAdmin module with full component features.
pinia
antfu
Pinia official Vue state management library, type-safe and extensible. Use when defining stores, working with state/getters/actions, or implementing store patterns in Vue apps.
vue
valibali
Use when editing .vue files, creating Vue 3 components, writing composables, or testing Vue code - provides Composition API patterns, props/emits best practices, VueUse integration, and reactive destructuring guidance
vue
TerminalSkills
|
vue-testing-best-practices
vuejs-ai
Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.
vue-debug-guides
vuejs-ai
Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues. Use when diagnosing or fixing Vue issues.