
create-adaptable-composable
Create a library-grade Vue composable that accepts maybe-reactive inputs
by vuejs-aiFree
Description
create-adaptable-composable is an agent skill that teaches an AI coding assistant to write Vue composables that accept maybe-reactive inputs. Such a composable can be called with a plain value, a ref or a getter, so the caller does not need to think about reactivity. The skill sets out the steps: confirm the purpose, API and expected inputs and outputs, identify which parameters should be MaybeRef or MaybeRefOrGetter, normalise them with toValue or toRef inside reactive effects, and then implement the core logic with Vue's reactivity APIs. It includes the core type concepts, such as MaybeRef, which covers a value, a writable ref, a shallow ref or a writable computed. The guidance is aimed at library-grade composables that other people will reuse in different contexts. The skill is published by the Vue AI team in its skills repository on GitHub.…
Highlights
- Composables that accept refs, values or getters
- MaybeRef and MaybeRefOrGetter guidance
- toValue and toRef normalisation steps
- Library-grade composable design
- Install with npx skills add
Ratings & Reviews
No ratings yet
Be the first to rate create-adaptable-composable.
People also visit
create-adaptable-composable FAQ
What does this skill do?
It helps an AI assistant write Vue composables whose inputs can be a plain value, a ref or a getter.
What are the steps?
Confirm the API, mark the inputs that should be reactive, normalise them with toValue or toRef, then implement the logic.
How do I install it?
Run npx skills add https://github.com/vuejs-ai/skills --skill create-adaptable-composable.
What do the security audits say?
The skill page lists Gen Agent Trust Hub as Pass, Socket as Pass and Snyk as Pass.
What are the best create-adaptable-composable alternatives?
Popular alternatives to create-adaptable-composable include vueuse-functions, vue-expert and vueuse-functions. See all create-adaptable-composable alternatives



















