π―
create-agnostic-composable
π―Skillfrom serkodev/vue-skills
What it does
Generates agnostic Vue composables that flexibly handle reactive and non-reactive inputs using Vue's reactivity utilities like toValue() and toRef().
Part of
serkodev/vue-skills(2 items)
create-agnostic-composable
Installation
Quick InstallInstall with npx
npx skills add serkodev/vue-skillsπ Extracted from docs: serkodev/vue-skills
1Installs
-
AddedFeb 4, 2026
Skill Details
SKILL.md
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 agnostic or reusable composables.