Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Vue 3.5+ Composition API reference with progressive sub-file loading for components, composables, reactivity, and testing.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: vue3description: 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 guidance4license: MIT5---67# Vue 3 Development89Reference for Vue 3 Composition API patterns, component architecture, and testing practices.1011**Current stable:** Vue 3.5+ with enhanced reactivity performance (-56% memory, 10x faster array tracking), new SSR features, and improved developer experience.1213## Overview1415Progressive reference system for Vue 3 projects. Load only files relevant to current task to minimize context usage (~250 tokens base, 500-1500 per sub-file).1617## When to Use1819**Use this skill when:**2021- Writing `.vue` components22- Creating composables (`use*` functions)23- Building client-side utilities24- Testing Vue components/composables2526**Use `nuxt` skill instead for:**2728- Server routes, API endpoints29- File-based routing, middleware30- Nuxt-specific patterns3132**For styled UI components:** use `nuxt-ui` skill33**For headless accessible components:** use `reka-ui` skill34**For VueUse composables:** use `vueuse` skill3536## Quick Reference3738| Working on... | Load file |39| ------------------------ | ---------------------------- |40| `.vue` in `components/` | references/components.md |41| File in `composables/` | references/composables.md |42| File in `utils/` | references/utils-client.md |43| `.spec.ts` or `.test.ts` | references/testing.md |44| TypeScript patterns | references/typescript.md |45| Vue Router typing | references/router.md |46| Reactivity (ref, watch) | references/reactivity.md |47| Custom directives | references/directives.md |48| Provide/inject | references/provide-inject.md |49| Edge cases, vue-tsc | references/gotchas.md |5051## Loading Files5253**Consider loading these reference files based on your task:**5455- [ ] [references/components.md](references/components.md) - if working in `components/` or writing `.vue` files56- [ ] [references/composables.md](references/composables.md) - if creating composables (`use*` functions)57- [ ] [references/utils-client.md](references/utils-client.md) - if working in `utils/` or writing client utilities58- [ ] [references/testing.md](references/testing.md) - if writing `.spec.ts` or `.test.ts` files59- [ ] [references/typescript.md](references/typescript.md) - if working with Vue TypeScript patterns or generics60- [ ] [references/router.md](references/router.md) - if working with Vue Router or route typing61- [ ] [references/reactivity.md](references/reactivity.md) - if using ref, reactive, computed, watch, or watchEffect62- [ ] [references/directives.md](references/directives.md) - if creating or using custom directives63- [ ] [references/provide-inject.md](references/provide-inject.md) - if using provide/inject patterns64- [ ] [references/gotchas.md](references/gotchas.md) - if debugging edge cases or hydration issues6566**DO NOT load all files at once.** Load only what's relevant to your current task.6768## Quick Start6970```vue71<script setup lang="ts">72const { count = 0 } = defineProps<{ count?: number }>()73const emit = defineEmits<{ update: [value: number] }>()74</script>7576<template>77<button @click="emit('update', count + 1)">78Count: {{ count }}79</button>80</template>81```8283## Available Guidance8485**[references/components.md](references/components.md)** - Props with reactive destructuring, emits patterns, defineModel for v-model, slots shorthand8687**[references/composables.md](references/composables.md)** - Composition API structure, VueUse integration, lifecycle hooks, async patterns, reactivity gotchas8889**[references/utils-client.md](references/utils-client.md)** - Pure functions, formatters, validators, transformers, when NOT to use utils9091**[references/testing.md](references/testing.md)** - Vitest + @vue/test-utils, component testing, composable testing, router mocking9293**[references/typescript.md](references/typescript.md)** - InjectionKey for provide/inject, vue-tsc strict templates, tsconfig settings, generic components9495**[references/router.md](references/router.md)** - Route meta types, typed params with unplugin-vue-router, scroll behavior, navigation guards9697**[references/reactivity.md](references/reactivity.md)** - ref, reactive, computed, watch, watchEffect, reactivity fundamentals9899**[references/directives.md](references/directives.md)** - Custom directive hooks, v-focus, v-click-outside, v-tooltip patterns100101**[references/provide-inject.md](references/provide-inject.md)** - InjectionKey typing, app-level provide, readonly patterns102103**[references/gotchas.md](references/gotchas.md)** - Common gotchas, vue-tsc edge cases, hydration issues, race conditions (from vuejs-ai/skills)104