Vue Options API Best Practices

Vue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.

3,356 stars 199 forksSoftware Development Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add vuejs-ai/skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add vuejs-ai/skills --skill vue-options-api-best-practices
Manual install
git clone --depth 1 https://github.com/vuejs-ai/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/vue-options-api-best-practices ~/.claude/skills/vue-options-api-best-practices

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

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

### TypeScript
- Need to enable TypeScript type inference for component properties → See [ts-options-api-use-definecomponent](reference/ts-options-api-use-definecomponent.md)
- Enabling type safety for Options API this context → See [ts-strict-mode-options-api](reference/ts-strict-mode-options-api.md)
- Using old TypeScript versions with prop validators → See [ts-options-api-arrow-functions-validators](reference/ts-options-api-arrow-functions-validators.md)
- Event handler parameters need proper type safety → See [ts-options-api-type-event-handlers](reference/ts-options-api-type-event-handlers.md)
- Need to type object or array props with interfaces → See [ts-options-api-proptype-complex-types](reference/ts-options-api-proptype-complex-types.md)
- Injected properties missing TypeScript types completely → See [ts-options-api-provide-inject-limitations](reference/ts-options-api-provide-inject-limitations.md)
- Complex computed properties lack clear type documentation → See [ts-options-api-computed-return-types](reference/ts-options-api-computed-return-types.md)

### Methods & Lifecycle
- Methods aren't binding to component instance context → See [no-arrow-functions-in-methods](reference/no-arrow-functions-in-methods.md)
- Lifecycle hooks losing access to component data → See [no-arrow-functions-in-lifecycle-hooks](reference/no-arrow-functions-in-lifecycle-hooks.md)
Read the full skill on GitHub

Details

Skill name
vue-options-api-best-practices
Path
skills/vue-options-api-best-practices/SKILL.md
License
MIT
Repo updated
23 October 2026

FAQ

What does the Vue Options API Best Practices skill do?

Vue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.

How do I install the Vue Options API Best Practices skill?

Claude Code plugin: /plugin marketplace add vuejs-ai/skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Vue Options API Best Practices popular?

It lives in vuejs-ai/skills, which has 3,356 GitHub stars and 199 forks.

Related skills

Vue Best Practices

3.4k

vuejs-ai/skills

MUST be used for Vue.js tasks. Strongly recommends Composition API with `<script setup>` and TypeScript as the standard approach. Covers Vue 3, SSR, Volar, vue-tsc. Load for any Vue, .vue files, Vue Router, Pinia, or Vite with Vue work. ALWAYS use Composition API unless the project explicitly requires Options API.

Frontend & Design199

Vue Router Best Practices

3.4k

vuejs-ai/skills

Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.

Frontend & Design199

Vue Testing Best Practices

3.4k

vuejs-ai/skills

Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

Testing & QA199

Bb CLI

4.3k

davidondrej/skills

Use this when controlling bb. The bb CLI inspects and manages threads, environments, projects, machines, providers, skills, plugins, settings, terminals, and other BB services.

Software Development628

X Bookmark Quote Posts

7.7k

MengTo/Skills

Check a user's latest X/Twitter bookmarks and turn recent saved posts into source-backed quote-post drafts calibrated against the user's latest 100 authored posts. Use when asked to review X bookmarks, create quote posts from bookmarks, refresh a bookmark quote queue, run a bookmark quote automation, study a user's X voice, or write first-person quote posts from X sources.

Software Development885

Bb Plugins

4.3k

davidondrej/skills

Build, install, and debug bb plugins. Use when the user wants a bb plugin, a sidebar panel, a bb CLI subcommand, an agent tool, a theme, a provider, or to extend bb itself. For running threads and the core bb CLI, use bb-cli instead.

Software Development628

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.