Agent skill · Frontend

vue

Vue 3 Composition API, script setup macros, reactivity system, and built-in components. Use when writing Vue SFCs, defineProps/defineEmits/defineModel, watchers, or using Transition/Teleport/Suspense/KeepAlive.

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

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

Facts
Files in the skill folder: 5
SKILL.md size: 2 KB
Bundled scripts: none
Version: 2026.1.31
Declared author: Anthony Fu
Path: skills/vue/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 > Based on Vue 3.5. Always use Composition API with `<script setup lang="ts">`. ## Preferences - Prefer TypeScript over JavaScript - Prefer `<script setup lang="ts">` over `<script>` - For performance, prefer `shallowRef` over `ref` if deep reactivity is not needed - Always use Composition API over Options API - Discourage using Reactive Props Destructure ## Core | Topic | Description | Reference | |-------|-------------|-----------| | Script Setup & Macros | `<script setup>`, defineProps, defineEmits, defineModel, defineExpose, defineOptions, defineSlots, generics | [script-setup-macros](references/script-setup-macros.md) | | Reactivity & Lifecycle | ref, shallowRef, computed, watch, watchEffect, effectScope, lifecycle hooks, composables | [core-new-apis](references/core-new-apis.md) | ## Features | Topic | Description | Reference | |-------|-------------|-----------| | Built-in Components & Directives | Transition, Teleport, Suspense, KeepAlive, v-memo, custom directives | [advanced-patterns](references/advanced-patterns.md) | ## Quick Reference ### Component Template ```vue <script setup lang="ts"> import { ref, computed, watch, onMounted } from 'vue' const props = defineP

What's inside
Steps it walks through
  1. Preferences
  2. Core
  3. Features
  4. Quick Reference
  5. Component Template
  6. Key Imports
Ships with 4 files
  • GENERATION.md
  • references/advanced-patterns.md
  • references/core-new-apis.md
  • references/script-setup-macros.md
More from skills
All skills →
About this skill
What does the vue skill do?

Vue 3 Composition API, script setup macros, reactivity system, and built-in components. Use when writing Vue SFCs, defineProps/defineEmits/defineModel, watchers, or using Transition/Teleport/Suspense/KeepAlive.

How do I install it?

Run `npx skills add antfu/skills --skill vue --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