vue-frontend
БесплатноЗапускает вложенные скриптыНе проверенComposition API vs Options API
Об этом скилле
Vue.js Frontend Development Skill
Level 1: Quick Reference (~700-900 tokens)
Core Concepts
Composition API vs Options API
// Composition API (recommended for new projects)
import { ref, computed } from 'vue';
const count = ref(0);
const doubled = computed(() => count.value * 2);
// Options API (traditional)
export default {
data() { return { count: 0 }; },
computed: { doubled() { return this.count * 2; } }
};
Reactivity Fundamentals
// ref - for primitives and single values
const count = ref(0);
count.value++; // access with .value
// reactive - for objects
const state = reactive({ count: 0, name: 'Vue' });
state.count++; // direct access
// computed - derived state
const doubled = computed(() => count.value * 2);
// watch - side effects
watch(count, (newVal, oldVal) => {
console.log(`Count changed from ${oldVal} to ${newVal}`);
});
Component Communication
// Props (parent → child)
defineProps<{ message: string }>();
// Emits (child → parent)
const emit = defineEmits<{ submit: [data: FormData] }>();
emit('submit', formData);
// Provide/Inject (ancestor → descendant)
// Parent
provide('theme', ref('dark'));
// Child
const theme = inject<Ref<string>>('theme');
Essential Checklist
Setup & Configuration
- Vue 3 with Vite or Vue CLI
- TypeScript integration
- ESLint + Prettier configured
- Vue Router installed
- Pinia for state management
- Vitest + Vue Test Utils for testing
Component Development
- Use Composition API with
<script setup> - Define props with TypeScript types
- Emit typed events
- Implement proper lifecycle hooks
- Use composables for reusable logic
Routing & Navigation
- Define routes with lazy loading
- Implement route guards (auth, permissions)
- Handle 404 and error pages
- Use typed router with generics
State Management
- Define Pinia stores with TypeScript
- Use composition stores for complex logic
- Implement persistence for user preferences
- Handle async actions properly
Performance
- Use
v-oncefor static content - Implement virtual scrolling for large lists
- Lazy load routes and components
- Use
v-memofor expensive renders - Configure proper build optimization
Accessibility (WCAG 2.1 AA)
- Semantic HTML elements
- ARIA labels and roles
- Keyboard navigation support
- Focus management
- Screen reader testing
Security
- Sanitize user input (DOMPurify)
- Configure CSP headers
- Avoid
v-htmlwith untrusted content - Implement proper authentication
- Secure API communication
Level 2:
📚 Full Examples: See REFERENCE.md for complete code samples, detailed configurations, and production-ready implementations.
Implementation Guide (~4000-5000 tokens)
1. Vue 3 Composition API
Setup Function & Script Setup
The Composition API provides better TypeScript support and code organization:
See REFERENCE.md for complete implementation.
Reactive Primitives
ref vs reactive:
ref: Primitives, single values, needs.valuein scriptreactive: Objects, arrays, no.valueneeded
See REFERENCE.md for complete implementation.
Computed Properties
See REFERENCE.md for complete implementation.
Watchers
See REFERENCE.md for complete implementation.
2. Component Architecture
Props & Emits
See REFERENCE.md for complete implementation.
Slots
See REFERENCE.md for complete implementation.
Provide/Inject
See REFERENCE.md for complete implementation.
3. Vue Router
Route Configuration
See REFERENCE.md for complete implementation.
Navigation Guards
See REFERENCE.md for complete implementation.
Typed Routes
See REFERENCE.md for complete implementation.
4. State Management with Pinia
Store Definition
See REFERENCE.md for complete implementation.
Store Composition
See REFERENCE.md for complete implementation.
Store Persistence
See REFERENCE.md for complete implementation.
5. Performance Optimization
Virtual Scrolling
See REFERENCE.md for complete implementation.
Lazy Loading
See REFERENCE.md for complete implementation.
Memoization
See REFERENCE.md for complete implementation.
Build Optimization
*See REFERENCE.md f
Установить vue-frontend в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл vue-frontend?
Composition API vs Options API
Как установить скилл vue-frontend?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vue-frontend запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic