
Vue Expert
FreeMaster Vue 3 with Composition API and Nuxt 3.
Free Β· Opens the source repo
What Vue Expert does
Vue Expert is designed for developers who want to leverage the full capabilities of Vue 3, particularly through the Composition API. This skill provides a structured workflow for building Vue components, managing state with Pinia, and configuring modern applications using Nuxt 3. It emphasizes best practices in component design, state management, and performance optimization, making it an essential tool for any Vue developer looking to enhance their skills.
The core workflow begins with analyzing project requirements to outline component hierarchies and state management needs. It then guides users through designing the architecture, implementing components with the Composition API, and validating the implementation with type-checking using TypeScript. The skill encourages optimization techniques to minimize re-renders and improve application performance, ensuring that users can build efficient and maintainable applications.
In addition to component development, Vue Expert covers essential topics such as state management with Pinia, server-side rendering with Nuxt 3, and mobile app development with Quasar and Capacitor. It also includes references for integrating TypeScript, optimizing Vite configurations, and implementing Progressive Web App (PWA) features. This comprehensive approach makes it suitable for both novice and experienced developers who are working with Vue 3 and its ecosystem.
When to use it
Use Vue Expert when starting new Vue 3 projects, especially those requiring Composition API patterns, state management, or mobile app development.
When not to use it
This skill may not be suitable for projects that rely on the Options API or legacy Vue 2 codebases.
What you can build with it
Building a New Vue 3 Application
When starting a new project, use Vue Expert to set up the architecture, components, and state management from the ground up.
Creating a Mobile App with Quasar
Utilize this skill to scaffold a mobile application using Quasar and Capacitor, ensuring best practices in mobile development.
Implementing PWA Features
Leverage Vue Expert to configure service workers and PWA features in your Vue 3 applications, enhancing user experience.
How to install Vue Expert
View source1. Install with the skills CLI
npx skills add jeffallan/claude-skills/vue-expert --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by jeffallanVue Expert
Senior Vue specialist with deep expertise in Vue 3 Composition API, reactivity system, and modern Vue ecosystem.
Core Workflow
- Analyze requirements - Identify component hierarchy, state needs, routing
- Design architecture - Plan composables, stores, component structure
- Implement - Build components with Composition API and proper reactivity
- Validate - Run
vue-tsc --noEmitfor type errors; verify reactivity with Vue DevTools. If type errors are found: fix each issue and re-runvue-tsc --noEmituntil the output is clean before proceeding - Optimize - Minimize re-renders, optimize computed properties, lazy load
- Test - Write component tests with Vue Test Utils and Vitest. If tests fail: inspect failure output, identify whether the root cause is a component bug or an incorrect test assertion, fix accordingly, and re-run until all tests pass
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Composition API | references/composition-api.md | ref, reactive, computed, watch, lifecycle |
| Components | references/components.md | Props, emits, slots, provide/inject |
| State Management | references/state-management.md | Pinia stores, actions, getters |
| Nuxt 3 | references/nuxt.md | SSR, file-based routing, useFetch, Fastify, hydration |
| TypeScript | references/typescript.md | Typing props, generic components, type safety |
| Mobile & Hybrid | references/mobile-hybrid.md | Quasar, Capacitor, PWA, service worker, mobile |
| Build Tooling | references/build-tooling.md | Vite config, sourcemaps, optimization, bundling |
Quick Example
Minimal component demonstrating preferred patterns:
<script setup lang="ts">
import { ref, computed } from 'vue'
const props = defineProps<{ initialCount?: number }>()
const count = ref(props.initialCount ?? 0)
const doubled = computed(() => count.value * 2)
function increment() {
count.value++
}
</script>
<template>
<button @click="increment">Count: {{ count }} (doubled: {{ doubled }})</button>
</template>
Constraints
MUST DO
- Use Composition API (NOT Options API)
- Use
<script setup>syntax for components - Use type-safe props with TypeScript
- Use
ref()for primitives,reactive()for objects - Use
computed()for derived state - Use proper lifecycle hooks (onMounted, onUnmounted, etc.)
- Implement proper cleanup in composables
- Use Pinia for global state management
MUST NOT DO
- Use Options API (data, methods, computed as object)
- Mix Composition API with Options API
- Mutate props directly
- Create reactive objects unnecessarily
- Use watch when computed is sufficient
- Forget to cleanup watchers and effects
- Access DOM before onMounted
- Use Vuex (deprecated in favor of Pinia)
Output Templates
When implementing Vue features, provide:
- Component file with
<script setup>and TypeScript - Composable if reusable logic exists
- Pinia store if global state needed
- Brief explanation of reactivity decisions
Knowledge Reference
Vue 3 Composition API, Pinia, Nuxt 3, Vue Router 4, Vite, VueUse, TypeScript, Vitest, Vue Test Utils, SSR/SSG, reactive programming, performance optimization
Frequently asked questions about Vue Expert
Similar skills
Playwright Component Testing
Test React and Vue components in isolation with Playwright.
Fluent UI Blazor
Integrate Fluent UI components in Blazor applications effortlessly.
Build MCP App
Create interactive UI widgets for MCP servers.
Web Design Reviewer
Identify and fix design issues in websites efficiently.
Markstream Install
Seamlessly integrate Markstream for Markdown rendering.
GSAP & Framer Scroll Animation
Create advanced scroll animations effortlessly.
