mcpField
V
vue-options-api-best-practices

vue-options-api-best-practices

github.com/vuejs-aiDevelopment3.2k11.9k installsUpdated 5d ago
Repository

About vue-options-api-best-practices

A Vue.js skill covering Options API practices, TypeScript typing, and common pitfalls. It is intended for developers maintaining or writing Options API components.

Key features

  1. 01Type inference for component properties
  2. 02Type safety for Options API this
  3. 03Typed props and event handlers
  4. 04Computed property return types
  5. 05Lifecycle and method binding practices

Use cases

  1. 01Add TypeScript typing to Options API components
  2. 02Diagnose typing issues with props or injections
  3. 03Prevent incorrect method and lifecycle hook binding

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/vuejs-ai/skills --skill vue-options-api-best-practices

After installing, type/vue-options-api-best-practicesin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

reference/
no-arrow-functions-in-lifecycle-hooks.md
no-arrow-functions-in-methods.md
stateful-methods-lifecycle.md
ts-options-api-arrow-functions-validators.md
ts-options-api-computed-return-types.md
ts-options-api-proptype-complex-types.md
ts-options-api-provide-inject-limitations.md
ts-options-api-type-event-handlers.md
ts-options-api-use-definecomponent.md
ts-strict-mode-options-api.md

Details

From the project README

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

TypeScript
Methods & Lifecycle

Comments

Markdown supported