hyf0/vue-options-api-best-practices
Vue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.
Vue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.
npx skills add https://github.com/hyf0/vue-skills/tree/main/skills/vue-options-api-best-practicesVue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.
This repo contains 7 individual skills — each has its own dedicated page.
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.
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.
Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues. Use when diagnosing or fixing Vue issues.
JSX syntax in Vue (e.g., class vs className, JSX plugin config).
Pinia stores, state management patterns, store setup, and reactivity with stores.
Vue Router 4 patterns, navigation guards, route params, and route-component lifecycle interactions.
Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.
Design stable, compatible public APIs using extend-only design principles. Manage API compatibility, wire compatibility, and versioning for NuGet packages and distributed systems.
Template repository for teams to establish standardized agentic coding practices with centralized context, knowledge, and skills management
My personal dev tools
This is a collection of my claude-skills
Safely sync upstream changes from any Git repository into your customized fork — without breaking your custom code
基于 Ink + AI SDK 的终端 AI Agent 客户端,支持文件读写、代码搜索、网页搜索、Skill 扩展等工具调用