This skill is a decision-and-implementation guide for VueUse composables, helping users apply over 200 functions effectively in Vue.js and Nuxt projects. It maps requirements to suitable VueUse functions and promotes maintainable and performant code solutions.
$ npx skills add https://github.com/vueuse/skills --skill vueuse-functionsVueUse Skills is an agent skill designed to help AI tools like Claude Code and Cursor use VueUse composables accurately and efficiently. It provides progressive disclosure of function information, starting with overviews and loading detailed usage on demand, which reduces token consumption and prevents hallucinations from invented APIs. The skill covers over 200 VueUse functions and works offline-first without additional permissions. It includes customizable policies so users can override function invocation rules in prompts or configuration files. Developers can install it via npm or through the Claude Code Marketplace and use it by simply instructing their agent to leverage VueUse when building Vue or Nuxt applications.
Install via command line: `$ npx skills add https://github.com/vueuse/skills --skill vueuse-functions`
Assisting user development work in Vue.js/Nuxt
Improving code readability and maintainability with VueUse composables
Providing integration solutions for Firebase, Electron, and RxJS
$ npx skills add https://github.com/vueuse/skills --skill vueuse-functionsgit clone https://github.com/vueuse/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need help selecting and implementing the right VueUse composable for my [PROJECT TYPE, e.g., Nuxt 3 app, Vue 3 SPA, or SSR project] with [SPECIFIC GOAL, e.g., reactive state management, DOM manipulation, or browser API integration]. Can you recommend the best VueUse function(s) for this use case and provide a minimal implementation example using [COMPANY_NAME]’s [TECHNOLOGY_STACK, e.g., TailwindCSS, Pinia, or TypeScript]? Assume [PROJECT_SIZE, e.g., small, medium, or large] scale and prioritize [PERFORMANCE vs MAINTAINABILITY vs SIMPLICITY] depending on the context.
### VueUse Function Recommendation for [COMPANY_NAME]’s Dashboard
**Goal:** Implement reactive mouse position tracking in a Nuxt 3 dashboard component with TypeScript.
**Recommended VueUse Function:** `useMouse()`
#### Implementation Example
```typescript
<script setup lang="ts">
import { useMouse } from '@vueuse/core';
const { x, y } = useMouse();
</script>
<template>
<div class="h-screen w-full bg-gray-100">
<p class="text-lg font-semibold">
Mouse Position: X: {{ x }}, Y: {{ y }}
</p>
</div>
</template>
```
#### Why This Works
- **Reactivity:** Automatically updates on mouse movement without manual event listeners.
- **Performance:** Lightweight and optimized for Vue 3’s reactivity system.
- **Scalability:** Easily composable with other VueUse functions (e.g., `usePreferredDark` for theme switching).
#### Alternatives Considered
- `useEventListener`: More verbose, requires manual cleanup.
- `usePointer`: Overkill for simple mouse tracking.
**Next Steps:**
- Test in your Nuxt 3 environment with `npm install @vueuse/core`.
- Extend with `useStorage` to persist mouse position in localStorage.Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan