SKILL13.9K installs3.2K

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.

Type
Skill
Author
vuejs-ai
Category
Frontend
GitHub stars
3.2K
Installs
13.9K
Last updated
October 23, 2026

Install

npx skills add https://github.com/vuejs-ai/skills --skill create-adaptable-composable

Use cases


Frequently Asked Questions

What input types can the composable accept?

Plain values, refs, or getters, expressed through the MaybeRef and MaybeRefOrGetter types.

How are maybe-reactive inputs normalized?

With toValue() and toRef() inside watch or watchEffect, so behavior stays predictable.

When should I use this skill?

When you are asked to create an adaptable or reusable Vue composable.


About this skill

Creates library-grade Vue composables that accept maybe-reactive inputs — plain values, refs, or getters via MaybeRef and MaybeRefOrGetter. It normalizes inputs with toValue() and toRef() inside watch and watchEffect so behavior stays predictable and reactive. Use it when asked to build an adaptable or reusable composable.

Summary written with AI assistance from the project's public description.


Categories


More from vuejs-ai


Similar Skills