create-adaptable-composable 是做什麼的?
建立一個符合函式庫等級的 Vue 組合式函式,接受可能為響應式的輸入(MaybeRef / MaybeRefOrGetter)以便呼叫端可以傳入純值、ref 或 getter。在響應式效果(watch/watchEffect)內部使用 toValue()/toRef() 來標準化輸入,保持行為可預測且維持響應式。當使用者要求建立可適應或可重複使用的組合式函式時,即可使用此技能。
建立一個符合函式庫等級的 Vue 組合式函式,接受可能為響應式的輸入(MaybeRef / MaybeRefOrGetter),讓呼叫端可以傳入純值、ref 或 getter。
此技能用於建立符合函式庫等級的 Vue 組合式函式(composable),重點是讓它能夠處理「可能為響應式」的輸入型別(MaybeRef 或 MaybeRefOrGetter)。這意味著呼叫端可以自由傳入一個純值(plain value)、一個 ref、或一個 getter 函式,而不必擔心響應式不一致的問題。內部實作會透過 toValue() 與 toRef() 在響應式效果(如 watch、watchEffect)中正確地標準化輸入,確保行為可預測且維持響應式更新。此技能主要支援 Vue 3 生態系,適用於任何需要撰寫可重複使用、可適應多種輸入形式的組合式函式場景。當使用者要求建立「可適應的」或「可重複使用的」組合式函式時,即可呼叫此技能,它會依據標準模式生成程式碼結構、說明最佳實踐,並提供整合到專案的指引。
npx skills add https://github.com/vuejs-ai/skills/tree/main/skills/create-adaptable-composableInstalled? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →
建立一個符合函式庫等級的 Vue 組合式函式,接受可能為響應式的輸入(MaybeRef / MaybeRefOrGetter)以便呼叫端可以傳入純值、ref 或 getter。在響應式效果(watch/watchEffect)內部使用 toValue()/toRef() 來標準化輸入,保持行為可預測且維持響應式。當使用者要求建立可適應或可重複使用的組合式函式時,即可使用此技能。
This repo contains 5 individual skills — each has its own dedicated page.
Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues. Use when diagnosing or fixing Vue issues.
A collection of best practices and tips for developing applications using Vue.js. This skill MUST be apply when developing, refactoring or reviewing Vue.js or Nuxt projects.
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.
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.