vue-options-api-best-practices
π―Skillfrom hyf0/vue-skills
Vue 3 Options API best practices covering TypeScript integration, method binding, lifecycle hooks, computed properties, and common gotchas like arrow function pitfalls and stateful method lifecycle management.
Overview
vue-options-api-best-practices is a Claude Code skill that provides guidance for Vue 3 development using the Options API style. It focuses exclusively on the Options API approach with data(), methods, computed, and this context patterns, ensuring all references and examples use Options API solutions rather than the Composition API.
Key Features
- Options API exclusive focus: Every example and reference uses Vue 3 Options API patterns (data(), methods, computed, watch) rather than the Composition API.
- Vue 3 compatibility: Targets modern Vue 3 while maintaining the familiar Options API style that many developers prefer.
thiscontext patterns: Provides guidance on proper use of thethiscontext within Options API components.- Consistent code style: Ensures AI-generated Vue code follows Options API conventions throughout, avoiding mixed API styles.
Who is this for?
This skill is designed for Vue.js developers who prefer or need to use the Options API style in their Vue 3 projects. It is particularly valuable for teams maintaining existing Options API codebases or developers who find the Options API more intuitive than the Composition API.
Same repository
hyf0/vue-skills(11 items)
Installation
npx vibeindex add hyf0/vue-skills --skill vue-options-api-best-practicesnpx skills add hyf0/vue-skills --skill vue-options-api-best-practices~/.claude/skills/vue-options-api-best-practices/SKILL.mdSKILL.md
More from this repository10
A Vue 3 skill for AI agents providing Composition API and TypeScript best practices, common gotcha prevention, SSR guidance, and performance patterns for Claude Code and Cursor.
Diagnoses and resolves Vue 3 runtime errors, async failures, hydration issues, and common component debugging challenges.
Agent skills for Vue 3 development, derived from real-world issues and providing specialized patterns for AI agents to enhance Vue development workflows.
Agent skills for Vue 3 development, derived from real-world issues and providing specialized patterns for AI agents to enhance Vue development workflows.
Agent skills for Vue 3 development, derived from real-world issues and providing specialized patterns for AI agents to enhance Vue development workflows.
Agent skills for Vue 3 development, derived from real-world issues and providing specialized patterns for AI agents to enhance Vue development workflows.
Agent skills for Vue 3 development, derived from real-world issues and providing specialized patterns for AI agents to enhance Vue development workflows.
Provides comprehensive Vue.js development guidelines and best practices for creating, refactoring, and reviewing Vue and Nuxt projects with a focus on code quality
Provides Pinia state management best practices for Vue.js applications including store patterns, code organization, and performance optimization
Provides VueUse composable best practices for efficiently leveraging utility functions and reactive patterns in Vue.js applications