vue
Skill15 starsChanged 42 days agoMITView on GitHub
Expert Vue 3 assistance covering Composition API (<script setup>), reactivity (ref, reactive), Pinia, and Vue Router. Use when developing modern, progressive web interfaces and single-page applications.
33 other projects use a version of this.
Adopted by
Most recently taken up by
- Contentrain/studiotheir own version, first seen Nov 8, 2026
- antfu/skillstheir own version, first seen Nov 5, 2026
- onmax/nuxt-skillstheir own version, first seen Nov 1, 2026
- vercel-labs/json-rendertheir own version, first seen Oct 29, 2026
- lirantal/slides-toxicskills-agent-skills-malwaretheir own version, first seen Oct 25, 2026
- KIMJINWOO4/vue-skillstheir own version, first seen Oct 15, 2026
Used with
Projects with it also use antfu-design and nitro.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
wltn7810-dotcomSkillantfu-design
antfu-style design conventions, broadened. UnoCSS-first, class-based semantic tokens with dual light/dark for tooling and devtools UIs, plus design-read, anti-slop, and micro-interaction polish for landing pages and product surfaces. Use when building or refactoring any interface with UnoCSS.
Also in 3 projects that use this
SentrySkillnitro
Build and deploy universal JavaScript servers with Nitro v3. Use when working with nitro.config.ts, defineNitroConfig, defineHandler, defineConfig, server.ts entry, filesystem routing, route rules, useStorage, defineCachedHandler, useDatabase, definePlugin, runtime hooks, Vercel/Cloudflare deployment, or migrating from Nitro v2/nitropack.
Also in 4 projects that use this
Other versions33 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 33
- moeru-ai/airi★ 51ksame name
- vercel-labs/json-render★ 19ksame name
- antfu/skills★ 6.1ksame name
- onmax/nuxt-skills★ 724same name
- oyjt/uniapp-vue3-template★ 628same name
- victorgarciaesgi/regle★ 508same name
- JetBrains/skills★ 386same name
- konnga/skill-buddy★ 128same name
- uni-helper/skills★ 107same name
- dylantarre/design-system-skills★ 50same name
23 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 28 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 180
Use <script setup lang="ts"> as the default syntax for all Vue 3 components.
- Distinctive: line 181
Use Pinia for global state management.
- Very specific: line 182
Use shallowRef or shallowReactive for large arrays/objects that do not need deep reactivity.
- Very specific: line 187
Use Options API (data(), methods) in new greenfield TypeScript codebases.
- Very specific: line 189
Use v-if and v-for on the exact same HTML element.
“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vue.js
Vue is a progressive framework for building user interfaces, featuring the reactive Composition API and high-performance Vapor Mode compilation.
When to Use
- Progressive Full-Stack Web Applications: Vue 3.5+ with
<script setup>and Composition API. - Single Page Applications (SPAs): Building fast, reactive frontends with Vue Router and Pinia.
- Interactive Micro-Frontends & Widgets: Embedding reactive components into existing server-rendered templates.
- Design System Implementation: Building accessible, scoped component libraries with PrimeVue or Vuetify.
Quick Start
<script setup>
import { ref, computed } from "vue";
const count = ref(0);
const double = computed(() => count.value * 2);
function increment() {
count.value++;
}
</script>
<template>
<button @click="increment">
Count is: {{ count }}, Double is: {{ double }}
</button>
</template>Core Concepts
Composition API with <script setup> & TypeScript
Reactive primitives using ref, computed, and watch:
<!-- components/ProductCounter.vue -->
<script setup lang="ts">
import { ref, computed, watch } from "vue";
interface Props {
initialCount?: number;
unitPrice: number;
}
const props = withDefaults(defineProps<Props>(), {
initialCount: 1,
});
const emit = defineEmits<{
(e: "totalChanged", total: number): void;
}>();
const quantity = ref(props.initialCount);
const totalPrice = computed(() => quantity.value * props.unitPrice);
watch(totalPrice, (newTotal) => {
emit("totalChanged", newTotal);
});
function increment() {
quantity.value += 1;
}
function decrement() {
if (quantity.value > 1) quantity.value -= 1;
}
</script>
<template>
<div class="counter-box">
<button @click="decrement">-</button>
<span>{{ quantity }}</span>
<button @click="increment">+</button>
<p>Total: ${{ totalPrice.toFixed(2) }}</p>
</div>
</template>State Management with Pinia
Centralized reactive store with type inference:
// stores/cart.ts
import { defineStore } from "pinia";
import { ref, computed } from "vue";
export interface CartItem {
id: number;
name: string;
price: number;
}
export const useCartStore = defineStore("cart", () => {
const items = ref<CartItem[]>([]);
const totalCost = computed(() =>
items.value.reduce((sum, item) => sum + item.price, 0),
);
const itemCount = computed(() => items.value.length);
function addItem(item: CartItem) {
items.value.push(item);
}
function clearCart() {
items.value = [];
}
return { items, totalCost, itemCount, addItem, clearCart };
});Asynchronous Components & Suspense
Lazy-loading components for optimal code splitting:
<script setup lang="ts">
import { defineAsyncComponent } from "vue";
const HeavyChart = defineAsyncComponent(
() => import("./HeavyAnalyticsChart.vue"),
);
</script>
<template>
<Suspense>
<template #default>
<HeavyChart />
</template>
<template #fallback>
<div class="loading-skeleton">Loading interactive chart...</div>
</template>
</Suspense>
</template>Common Patterns
Composable Pattern with Auto-Cleanup
Problem: Encapsulating reactive stateful logic for reuse across multiple components.
Solution: Build typed composables with Vue 3 lifecycle hooks:
import { ref, onMounted, onUnmounted } from "vue";
export function useMouse() {
const x = ref(0);
const y = ref(0);
function update(event: MouseEvent) {
x.value = event.pageX;
y.value = event.pageY;
}
onMounted(() => window.addEventListener("mousemove", update));
onUnmounted(() => window.removeEventListener("mousemove", update));
return { x, y };
}Best Practices
Do:
- Use
<script setup lang="ts">as the default syntax for all Vue 3 components. - Use Pinia for global state management; deprecate legacy Vuex.
- Use
shallowReforshallowReactivefor large arrays/objects that do not need deep reactivity. - Scope component CSS (
<style scoped>) to avoid leaking styles across the application.
Don't:
- Use Options API (
data(),methods) in new greenfield TypeScript codebases. - Mutate props directly inside child components; emit events for the parent to update state.
- Use
v-ifandv-foron the exact same HTML element.
Troubleshooting
| Error | Cause | Solution |
TypeError: Cannot set property of undefined in ref | Forgetting .value when updating ref in JavaScript. | Always read and write refs using .value in <script>: count.value++. |
Reactivity lost when destructuring reactive object | Destructuring reactive({}) strips the underlying Proxy. | Wrap object with toRefs(state) before destructuring. |
Component emitted event but no listener registered | Event name casing mismatch between component and parent. | Use kebab-case for event listeners in templates: @update-item="handle". |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

