Skip to main content
Back to registry

create-adaptable-composable

vuejs-ai/skills

Adaptable composables are reusable functions that can accept both reactive and non-reactive inputs. This allows developers to use the composable in a variety of contexts without worrying about the reactivity of the inputs.

Installs3
Install command
npx skills add https://github.com/vuejs-ai/skills --skill create-adaptable-composable
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Adaptable composables are reusable functions that can accept both reactive and non-reactive inputs. This allows developers to use the composable in a variety of contexts without worrying about the reactivity of the inputs. Steps to design an adaptable composable in Vue.js: When MaybeRefOrGetter or MaybeRef is used: Adaptable useDocumentTitle Composable: read-only title parameter Adaptable useCounter Composable: two-way writable count parameter - Confirm the composable's purpose and API design and expected inputs/outputs. - Identify inputs params that should be reactive (MaybeRef / MaybeRefOrGetter). - Use toValue() or toRef() to normalize inputs inside reactive effects. - Implement the core logic of the composable using Vue's reactivity APIs. - Read-only, computed-friendly input: use MaybeRefOrGetter - Needs to be writable / two-way input: use MaybeRef - Parameter might be a function value (callback/predicate/comparator): do not use MaybeRefOrGetter , or you may accidentally invoke it as a getter. - DOM/Element targets: if you want computed/derived targets, use MaybeRefOrGetter .

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does create-adaptable-composable do?

Adaptable composables are reusable functions that can accept both reactive and non-reactive inputs. This allows developers to use the composable in a variety of contexts without worrying about the reactivity of the inputs.

Is create-adaptable-composable good?

create-adaptable-composable does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does create-adaptable-composable work with?

create-adaptable-composable currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to create-adaptable-composable?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install create-adaptable-composable?

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

Related skills

More from vuejs-ai/skills

Related skills

Alternatives in Software Engineering