Skills from hyf0/vue-skills

8 skills available

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.
Verified
6,345 installs
vue-pinia-best-practices
Pinia stores, state management patterns, store setup, and reactivity with stores.
Verified
638 installs
vue-router-best-practices
Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.
Verified
626 installs
create-adaptable-composable
Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()/toRef() inside reactive effects (watch/watchEffect) to keep behavior predictable and reactive. Use this skill when user asks for creating adaptable or reusable composables.
Verified
580 installs
vue-options-api-best-practices
Provides Vue 3 Options API best-practices and TypeScript guidance. Contains explicit shell commands like `npx tsc --version` and a network example `fetch('/api/data')`, both purpose-aligned and security-relevant.
Verified
534 installs
vue-jsx-best-practices
JSX syntax in Vue (e.g., class vs className, JSX plugin config).
Verified
508 installs
vue-testing-best-practices
This skill documents Vue.js testing best practices for Vitest, Vue Test Utils, and Playwright. It includes explicit local shell commands like `npm init playwright@latest` and `npx playwright test` for running test tooling.
Verified
502 installs
vue-debug-guides
This skill is a comprehensive collection of Vue 3 debugging guides and code examples for runtime, SSR, reactivity, and performance issues. It includes example network requests such as `fetch('/api/user')` and a shell command `npm update vue` in code samples.
Verified
130 installs