New to Claude Skills? Learn how to install them β†’

jeffallan on GitHub

Vue Expert

Free

Master Vue 3 with Composition API and Nuxt 3.

Get this skill

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 source

1. Install with the skills CLI

npx skills add jeffallan/claude-skills/vue-expert --agent claude-code

2. 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 jeffallan

Vue Expert

Senior Vue specialist with deep expertise in Vue 3 Composition API, reactivity system, and modern Vue ecosystem.

Core Workflow

  1. Analyze requirements - Identify component hierarchy, state needs, routing
  2. Design architecture - Plan composables, stores, component structure
  3. Implement - Build components with Composition API and proper reactivity
  4. Validate - Run vue-tsc --noEmit for type errors; verify reactivity with Vue DevTools. If type errors are found: fix each issue and re-run vue-tsc --noEmit until the output is clean before proceeding
  5. Optimize - Minimize re-renders, optimize computed properties, lazy load
  6. 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:

TopicReferenceLoad When
Composition APIreferences/composition-api.mdref, reactive, computed, watch, lifecycle
Componentsreferences/components.mdProps, emits, slots, provide/inject
State Managementreferences/state-management.mdPinia stores, actions, getters
Nuxt 3references/nuxt.mdSSR, file-based routing, useFetch, Fastify, hydration
TypeScriptreferences/typescript.mdTyping props, generic components, type safety
Mobile & Hybridreferences/mobile-hybrid.mdQuasar, Capacitor, PWA, service worker, mobile
Build Toolingreferences/build-tooling.mdVite 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:

  1. Component file with <script setup> and TypeScript
  2. Composable if reusable logic exists
  3. Pinia store if global state needed
  4. 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

Documentation

Frequently asked questions about Vue Expert

Similar skills