Skip to content
SkillModel-led322 tokens in use

vue-options-api-best-practices

Guides an agent through Vue 3 Options API code: TypeScript typing for props, events and computed values, and this-binding mistakes in methods and hooks.

3,364 stars on the repository MIT Licensevuejs-ai/skills · skills/vue-options-api-best-practices
npx skills add vuejs-ai/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing vue-options-api-best-practices costs

29tokens idle
322tokens in use
9,700tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Fair
  • Frontmatter11/15
  • Structure6/25
  • Examples3/15
  • Output5/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Fair
  • Development activity68
  • Maintenance40
  • Community52
  • Maturity32
  • Momentum40

This skill is for Vue 3 projects written in the Options API style, with data(), methods and the this context. Its SKILL.md lists situations and links each to a reference with an Options API solution.

Topics are TypeScript support through defineComponent, strict mode for this, typed event handlers, complex prop types, injected properties and computed return types, plus arrow functions in methods and lifecycle hooks and debounced methods that share state across instances.

What You Get

  • Seven TypeScript guides for the Options API
  • Guides on why arrow functions break this in methods and lifecycle hooks
  • A note on debounced methods that share state between component instances
  • Each reference shows the Options API solution only

Common Use Cases

  • Adding TypeScript to an existing Options API component
  • Fixing methods or hooks that lose access to component data
  • Typing props that hold objects or arrays

What Makes It Unique

It stays within the Options API, and its description says each reference shows that style only. The main Vue skill points here when a project uses the Options API, so Composition API advice does not mix in.

Under The Hood

The agent loads a small Markdown index and reads the reference that matches the situation. There are no scripts. The skill does not tell the agent to fetch web pages, call APIs or run commands; changes are made by the agent editing your component files.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers