vue

Guide Vue 3 component development with Composition API patterns and Vitest testing.

1|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Kurrawong/prez-lite --skill vue-kurrawong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue
Source: https://github.com/Kurrawong/prez-lite/tree/main/.claude/skills/vue
Command: npx skills add https://github.com/Kurrawong/prez-lite --skill vue-kurrawong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for building robust and maintainable Vue 3 applications using the Composition API, ensuring efficient component development and effective testing.

Core Features & Use Cases

  • Composition API Patterns: Learn advanced patterns for creating composables, managing state, and handling reactivity.
  • Component Best Practices: Implement props, emits, slots, and defineModel correctly for reusable and type-safe components.
  • Testing Strategies: Understand how to effectively test Vue components and composables with Vitest.
  • Use Case: When developing a complex form with multiple custom input components and validation logic, this Skill helps structure the code using composables for shared logic and ensures components communicate effectively via props and emits.

Quick Start

Use the vue skill to write a new Vue 3 component in components/UserProfile.vue that accepts a user prop and displays their name and email.

Frequently Asked Questions about vue

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create composables for shared logic in Vue 3?

To create composables in Vue 3, use the Composition API to extract reactive state and methods into reusable functions. This pattern manages shared logic efficiently, ensuring components remain maintainable and logic is easily imported across your application.

How do I test Vue components with Vitest?

You can test Vue components with Vitest by writing unit tests that mount components and assert their behavior. This Skill provides testing strategies to validate component rendering, interactions, and composable outputs effectively within your development workflow.

What is the best way to define props and emits in Vue 3?

The best way to define props and emits in Vue 3 is using the Composition API's type-safe patterns. This Skill covers implementing props, emits, and slots correctly, ensuring reusable components communicate effectively and maintain strict TypeScript integration.

How do I integrate TypeScript with Vue 3 components?

You integrate TypeScript with Vue 3 components by applying Composition API patterns that enforce type safety. This Skill guides you through defining typed props, emits, and composables, ensuring robust and maintainable application code.

How does defineModel work for two-way binding in Vue 3?

The defineModel macro in Vue 3 simplifies two-way binding by creating a reactive reference that automatically syncs with a parent component's v-model. This Skill explains implementing defineModel correctly for reusable and type-safe components.

Why does my Vue 3 component reactivity break when updating objects?

Vue 3 reactivity breaks when you fail to follow mutation patterns or lose proxy references. This Skill addresses common pitfalls in reactivity management and provides Composition API best practices to ensure state updates correctly.