create-adaptable-composable 是做什麼的?
建立一個函式庫級的 Vue composable,可接受可能為響應式的輸入(MaybeRef / MaybeRefOrGetter),以便呼叫者傳入純值、ref 或 getter。在響應式效果(watch/watchEffect)內部使用 toValue()/toRef() 標準化輸入,以保持行為可預測且具響應性。當使用者要求建立可適應或可重複使用的 composable 時,請使用此技能。
建立一個可接受可能為響應式輸入(MaybeRef / MaybeRefOrGetter)的函式庫級 Vue composable,讓呼叫者可以傳入純值、ref 或 getter。在響應式效果(watch/watchEffect)中使用 toValue()/toRef() 標準化輸入,以保持行為可預測且具響應性。當使用者要求建立可適應或可重複使用的 composable 時,使用此技能。
此技能用於建立一個函式庫級的 Vue composable,特別設計來處理可能為響應式的輸入,包括 MaybeRef 和 MaybeRefOrGetter 類型。這讓呼叫者能靈活地傳入純值、ref 或 getter 函式,而 composable 內部則透過 toValue() 或 toRef() 在 watch 或 watchEffect 中標準化輸入,確保行為一致且可預測。此技能適合開發者需要建立可重複使用、適應性強的 composable 時使用,常見於 Vue 3 的 Composition API 生態系,並支援在 Cursor、Claude Code 等 AI 輔助開發工具中套用。其核心優勢在於簡化響應式資料的處理邏輯,提升 composable 的通用性與維護性。
npx skills add https://github.com/hyf0/vue-skills/tree/main/skills/create-adaptable-composableInstalled? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
建立一個函式庫級的 Vue composable,可接受可能為響應式的輸入(MaybeRef / MaybeRefOrGetter),以便呼叫者傳入純值、ref 或 getter。在響應式效果(watch/watchEffect)內部使用 toValue()/toRef() 標準化輸入,以保持行為可預測且具響應性。當使用者要求建立可適應或可重複使用的 composable 時,請使用此技能。
This repo contains 7 individual skills — each has its own dedicated page.
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).
Vue 3 Options API style (data(), methods, this context). Each reference shows Options API solution only.
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.