Guides Vue.js 3 development with Composition API, TypeScript, Pinia state management, and Nuxt 3 full-stack. Covers reactive patterns, composables, and the Vue ecosystem.
Ships in tjn-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Comprehensive guide for building modern Vue.js applications with the Composition API.
| Tool | Purpose | Version |
|---|---|---|
| Vue 3 | Core framework | 3.4+ |
| TypeScript | Type safety | 5.0+ |
| Vite | Build tool | 5.0+ |
| Pinia | State management | 2.1+ |
| Vue Router | Routing | 4.2+ |
| Nuxt 3 | Full-stack framework | 3.10+ |
| Vitest | Testing | 1.0+ |
<script setup lang="ts">
import { ref, computed, onMounted } from "vue";
// Props with TypeScript
interface Props {
title: string;
count?: number;
}
const props = withDefaults(defineProps<Props>(), {
count: 0,
});
// Emits with TypeScript
const emit = defineEmits<{
update: [value: number];
submit: [];
}>();
// Reactive state
const localCount = ref(props.count);
const items = ref<string[]>([]);
// Computed
const doubleCount = computed(() => localCount.value * 2);
// Methods
function increment() {
localCount.value++;
emit("update", localCount.value);
}
// Lifecycle
onMounted(() => {
console.log("Component mounted");
});
</script>
<template>
<div class="component">
<h1>{{ title }}</h1>
<p>Count: {{ localCount }} (Double: {{ doubleCount }})</p>
<button @click="increment">Increment</button>
</div>
</template>
<style scoped>
.component {
padding: 1rem;
}
</style>
import { ref, reactive, computed, watch, watchEffect } from "vue";
// Primitives: use ref()
const count = ref(0);
const name = ref("");
count.value++; // Access via .value
// Objects/Arrays: use reactive()
const state = reactive({
items: [] as Item[],
loading: false,
error: null as Error | null,
});
state.items.push(item); // Direct access, no .value
// Computed values
const total = computed(() => state.items.reduce((sum, i) => sum + i.price, 0));
// Watch specific values
watch(count, (newVal, oldVal) => {
console.log(`Count changed: ${oldVal} -> ${newVal}`);
});
// Watch with options
watch(
() => state.items,
(newItems) => saveToStorage(newItems),
{ deep: true, immediate: true },
);
// Automatic dependency tracking
watchEffect(() => {
console.log(`Count is now: ${count.value}`);
});
Detailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this SKILL.md (in the full toolkit install, ~/.claude/skills/vue-development/).
| Topic | File | Covers |
|---|---|---|
| Composables (Reusable Logic) | references/composables-reusable-logic.md | Naming & Structure; Creating Composables; Composable Best Practices |
| Pinia State Management | references/pinia-state-management.md | Store Definition (Composition Style); Using Stores in Components; Store with Persistence |
| Component Patterns | references/component-patterns.md | Provider/Inject Pattern; Smart/Dumb Components |
| Nuxt 3 (Full-Stack) | references/nuxt-3-full-stack.md | Project Structure; API Routes; Data Fetching |
| Testing with Vitest | references/testing-with-vitest.md | Setup; Component Testing; Composable Testing |
| Anti-Patterns to Avoid | references/anti-patterns-to-avoid.md | 13 lines |
references/anti-patterns-to-avoid.md (opens in a new tab)references/component-patterns.md (opens in a new tab)references/composables-reusable-logic.md (opens in a new tab)references/nuxt-3-full-stack.md (opens in a new tab)references/pinia-state-management.md (opens in a new tab)references/testing-with-vitest.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/tjn-skills:vue-developmentfrom tjn-skills
npx claudepluginhub travisjneuman/.claude --plugin tjn-skills183 skills in this plugin
/accessibility-a11yWCAG 2.2 compliance, ARIA patterns, keyboard navigation, screen readers, automated testing/agent-accessibility-expertSpecialist subagent: WCAG compliance, screen reader compatibility, and inclusive design patterns. Use when auditing accessibility, fixing a11y issues, or designing inclusive UIs./agent-android-developerSpecialist subagent: Expert Android developer specializing in Kotlin, Jetpack Compose, and modern Android architectureOther plugins' skills for the same job