Pular para o conteúdo
Kitbay
Skill

vue-best-practices

MITAtualizado em 13 de nov. de 202651.383Estrelas no GitHub

A copy, kept in the AIRI repository, of the vuejs-ai vue-best-practices skill for any work on Vue.js code, including .vue files, Vue Router, Pinia and Vite projects.

O que a skill ensina

A copy, kept in the AIRI repository, of the vuejs-ai vue-best-practices skill for any work on Vue.js code, including .vue files, Vue Router, Pinia and Vite projects. It sets Vue 3 with the Composition API, script setup and TypeScript as the default, using the Options API only when a project requires it, and covers server-side rendering and the Volar and vue-tsc tooling. The agent plans component boundaries before coding, splits large components into smaller ones with clear props and events, keeps state minimal and derives the rest with computed values, moves reusable logic into composables and uses slots, Teleport or Suspense only when needed. Performance work comes after behaviour is correct.

O que faz

  • Write Vue 3 components with script setup and TypeScript
  • Split large components by props and events
  • Derive state with computed values and composables