Community程式設計與開發github.com

hyf0/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.

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hyf0/vue-skills/tree/main/skills/create-adaptable-composable

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

說明文件

hyf0/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.

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

相關技能