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.
npx skills add antfu/skills --skill vue --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Preferences
- Core
- Features
- Quick Reference
- Component Template
- Key Imports
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.
