SKILL23.4K installs6.0K

Vue Best Practices

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.

Type
Skill
Author
antfu
Category
Frontend
GitHub stars
6.0K
Installs
23.4K
Last updated
October 30, 2026

Install

npx skills add https://github.com/antfu/skills --skill vue-best-practices

Use cases


Frequently Asked Questions

Does it ever recommend Options API?

Only when a project explicitly requires Options API; otherwise it insists on Composition API.

Which Vue version does it target?

It covers Vue 3, including SSR, Volar, and vue-tsc.

When should this skill be loaded?

For any Vue work, including .vue files, Vue Router, Pinia, or Vite with Vue.


About this skill

A prescriptive Vue.js skill that recommends Composition API with <script setup> and TypeScript as the standard approach, covering Vue 3, SSR, Volar, and vue-tsc. Load it for any work involving .vue files, Vue Router, Pinia, or Vite with Vue. It insists on Composition API unless a project explicitly requires Options API.

Summary written with AI assistance from the project's public description.


Categories


More from antfu


Similar Skills