hyf0 avatar

Vue Options Api Best Practices

If you're still writing Vue components with the Options API (whether by choice or because you're maintaining an existing codebase), this skill covers the TypeScript integration points that actually matter. It tackles the specific pain points where `this` context goes sideways, prop validators lose type safety, and provide/inject becomes a typing nightmare. The references focus on real gotchas like why arrow functions break your methods and how debounced functions can bleed state between instances. It's not trying to convince you to use Options API over Composition API. It just assumes you already are and need the patterns that work.

skills.sh installs
2.1K
GitHub stars
2.7K
last updated
Jul 14, 2026

Install

$ npx -y skills add hyf0/vue-skills --skill vue-options-api-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Files

Vue.js Options API best practices, TypeScript integration, and common gotchas.

TypeScript

Sponsors

Details

Repository
github.com/hyf0/vue-skills
Categories
Frontend Development, Backend & APIs
First seen
May 16, 2026

More from hyf0/vue-skills

All 11
1hyf0 avatarvue-testing-best-practiceshyf0/vue-skillsvue testing best practices2.1Kskills.sh installs
2onmax avatarnuxt-better-authonmax/nuxt-skillsUse when implementing auth in Nuxt apps with @onmax/nuxt-better-auth - provides useUserSession composable, server auth helpers, route protection, and Better Aut2.1Kskills.sh installs
3vercel-labs avatarzustandvercel-labs/json-renderZustand adapter for json-render's StateStore interface. Use when integrating json-render with Zustand for state management via @json-render/zustand.1.9Kskills.sh installs
4affaan-m avatarfrontend-designaffaan-m/everything-claude-codefrontend design1.8Kskills.sh installs
5everyinc avatarce-frontend-designeveryinc/compound-engineering-pluginBuild web interfaces with genuine design quality, not AI slop. Use for any frontend work - landing pages, web apps, dashboards, admin panels, components, intera1.8Kskills.sh installs
6github avataroo-component-documentationgithub/awesome-copilotCreate or update standardized object-oriented component documentation using a shared template plus mode-specific guidance for new and existing docs.1.8Kskills.sh installs