vue-options-api-best-practices 是做什么的?
Vue 3 Options API 风格(data()、methods、this 上下文)。每个参考仅展示 Options API 的解决方案。
Vue 3 Options API 风格指南(data()、methods、this 上下文)。每个参考仅展示 Options API 的解决方案。
该技能专注于 Vue 3 的 Options API,提供了关于如何使用 data()、methods 以及 this 上下文的详细指南。它仅以 Options API 的形式呈现解决方案,非常适合偏好传统 Vue 开发模式的开发者。该技能确保所有示例和描述与 Vue 3 的 Options API 保持严格一致。它支持在 AI 代理环境中(如 Cursor 或 Codex)快速引用最佳实践,帮助用户编写符合 Vue 3 规范且可维护的代码。基于其文档 SKILL.md,该技能为用户提供了即用型的参考,省去了在 Composition API 和 Options API 之间切换的困扰。
npx skills add https://github.com/hyf0/vue-skills/tree/main/skills/vue-options-api-best-practicesInstalled? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
Vue 3 Options API 风格(data()、methods、this 上下文)。每个参考仅展示 Options API 的解决方案。
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.
Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Create, search, and manage Bear notes via grizzly CLI.
Capture frames or clips from RTSP/ONVIF cameras.
Search GIF providers with CLI/TUI, download results, and extract stills/sheets.