Agent skill · Frontend

vue-best-practices

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.

antfugithub.com/antfuGitHub ↗
claude-codeMIT
Install
npx skills add antfu/skills --skill vue-best-practices --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 25
SKILL.md size: 9 KB
Bundled scripts: none
Version: 18.0.0
Declared author: github.com/vuejs-ai
Path: skills/vue-best-practices/SKILL.md
Open the folder on GitHub →
Where it comes from
Source: antfu/skills
Stars: 5,709
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Vue Best Practices Workflow Use this skill as an instruction set. Follow the workflow in order unless the user explicitly asks for a different order. ## Core Principles - **Keep state predictable:** one source of truth, derive everything else. - **Make data flow explicit:** Props down, Events up for most cases. - **Favor small, focused components:** easier to test, reuse, and maintain. - **Avoid unnecessary re-renders:** use computed properties and watchers wisely. - **Readability counts:** write clear, self-documenting code. ## 1) Confirm architecture before coding (required) - Default stack: Vue 3 + Composition API + `<script setup lang="ts">`. - If the project explicitly uses Options API, load `vue-options-api-best-practices` skill if available. - If the project explicitly uses JSX, load `vue-jsx-best-practices` skill if available. ### 1.1 Must-read core references (required) - Before implementing any Vue task, make sure to read and apply these core references: - `references/reactivity.md` - `references/sfc.md` - `references/component-data-flow.md` - `references/composables.md` - Keep these references in active working context for the entire task, not only when a specific issu

What's inside
Steps it walks through
  1. Core Principles
  2. 1) Confirm architecture before coding (required)
  3. 1.1 Must-read core references (required)
  4. 1.2 Plan component boundaries before coding (required)
  5. 2) Apply essential Vue foundations (required)
  6. Reactivity
  7. SFC structure and template safety
  8. Keep components focused
  9. Component data flow
  10. Composables
  11. 3) Consider optional features only when requirements call for them
  12. 3.1 Standard optional features
  13. 3.2 Less-common optional features
  14. 4) Run performance optimization after behavior is correct
Ships with 24 files
  • LICENSE.md
  • SYNC.md
  • references/animation-class-based-technique.md
  • references/animation-state-driven-technique.md
  • references/component-async.md
  • references/component-data-flow.md
  • references/component-fallthrough-attrs.md
  • references/component-keep-alive.md
  • references/component-slots.md
  • references/component-suspense.md
  • references/component-teleport.md
  • references/component-transition-group.md
  • references/component-transition.md
  • references/composables.md
  • references/directives.md
  • references/perf-avoid-component-abstraction-in-lists.md
  • references/perf-v-once-v-memo-directives.md
  • references/perf-virtualize-large-lists.md
  • references/plugins.md
  • references/reactivity.md
  • references/render-functions.md
  • references/sfc.md
  • references/state-management.md
  • references/updated-hook-performance.md
first 24 of 25
More from skills
All skills →
About this skill
What does the vue-best-practices skill do?

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.

How do I install it?

Run `npx skills add antfu/skills --skill vue-best-practices --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From antfu/skills, a repository with 5,709 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going