vue-development — скилл для Claude Code: что делает и как установить
Скилл vue-development для Claude Code помогает писать код на Vue 3 с синтаксисом Composition API и Script Setup. Подключается при настройке Pinia, создании композаблов и разработке на Nuxt 3.
MIT 143 установок ★ 114 обновлён 2026-11-10
npx skills add travisjneuman/.claude --skill vue-development -a claude-codeЧто делает vue-development
Скилл передаёт агенту стандарты разработки на стеке Vue 3.4+, TypeScript 5.0+ и Vite 5.0+. Инструкции задают типизацию входных параметров через defineProps, эмит событий с типами, работу с ref, reactive и watch, а также правила изоляции состояния.
В состав входят отдельные справочники по хранилищам Pinia 2.1+, паттернам Provide/Inject, архитектуре Nuxt 3.10+ с API-роутами и модульным тестам на Vitest 1.0+. Дополнительно разобран список из 13 строк с частыми антипаттернами.
Какие задачи решает
- написать компонент Vue 3 на Composition API с TypeScript
- настроить стор Pinia с сохранением данных
- собрать переиспользуемый композабл
- покрыть компоненты тестами через Vitest
Примеры запросов агенту
- Создай компонент списка задач с типизированными пропсами и эмитами через script setup
- Напиши композабл для отслеживания статуса сети и сохрани логику в Pinia
- Покрой тестами Vitest форму авторизации на Nuxt 3
Как установить vue-development
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill vue-development -a claude-code2Вручную: положить файлы
~/.claude/skills/vue-development/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/vue-development/
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill vue-development -a codex2Вручную: положить файлы
.agents/skills/vue-development/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill vue-development -a cursor2Вручную: положить файлы
.cursor/skills/vue-development/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install travisjneuman/.claude skills/vue-development2Вручную: положить файлы
.github/skills/vue-development/SKILL.md1Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill vue-development -a gemini-cli2Командой платформы
gemini skills install https://github.com/travisjneuman/.claude --path skills/vue-developmentВручную: положить файлы
.devin/skills/vue-development/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add travisjneuman/.claude --skill vue-development -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о vue-development
Как установить vue-development в Claude Code?
Запустите команду npx skills add travisjneuman/.claude --skill vue-development -a claude-code. Файлы скилла сохранятся в ~/.claude/skills/vue-development/SKILL.md.
Что делает скилл vue-development?
Он задаёт агенту правила написания кода на Vue 3 с синтаксисом Script Setup, TypeScript и реактивными примитивами. Внутри есть шаблоны для сторов Pinia, роутинга и тестов на Vitest.
Какие технологии и версии поддерживает vue-development?
Скилл рассчитан на Vue 3.4+, TypeScript 5.0+, Vite 5.0+, Pinia 2.1+, Vue Router 4.2+, Nuxt 3.10+ и Vitest 1.0+.
Исходный текст
SKILL.md · MIT
---
name: vue-development
description: Vue.js 3 development with Composition API, TypeScript, Pinia state management, and Nuxt 3 full-stack. Use when building Vue applications, implementing reactive patterns, creating composables, or working with the Vue ecosystem.
---
# Vue.js 3 Development
Comprehensive guide for building modern Vue.js applications with the Composition API.
## Stack Overview
| 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+ |
---
## Composition API with Script Setup
### Basic Component Structure
```vue
<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>
```
### Reactivity Patterns
```typescript
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}`);
});
```
---
## Reference files
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`](references/composables-reusable-logic.md) | Naming & Structure; Creating Composables; Composable Best Practices |
| Pinia State Management | [`references/pinia-state-management.md`](references/pinia-state-management.md) | Store Definition (Composition Style); Using Stores in Components; Store with Persistence |
| Component Patterns | [`references/component-patterns.md`](references/component-patterns.md) | Provider/Inject Pattern; Smart/Dumb Components |
| Nuxt 3 (Full-Stack) | [`references/nuxt-3-full-stack.md`](references/nuxt-3-full-stack.md) | Project Structure; API Routes; Data Fetching |
| Testing with Vitest | [`references/testing-with-vitest.md`](references/testing-with-vitest.md) | Setup; Component Testing; Composable Testing |
| Anti-Patterns to Avoid | [`references/anti-patterns-to-avoid.md`](references/anti-patterns-to-avoid.md) | 13 lines |
## Related Resources
- [Vue.js Official Docs](https://vuejs.org/)
- [Pinia Documentation](https://pinia.vuejs.org/)
- [Nuxt 3 Documentation](https://nuxt.com/)
- [VueUse Composables](https://vueuse.org/)
- [Vue Test Utils](https://test-utils.vuejs.org/)
---
## When to Use This Skill
- Building new Vue.js 3 applications
- Migrating from Vue 2 Options API to Composition API
- Implementing Pinia state management
- Creating reusable composables
- Full-stack development with Nuxt 3
- Testing Vue components with Vitest
© travisjneuman · MIT · travisjneuman/.claude