create-adaptable-composable
CommunityCreate adaptable Vue composables for any input.
System Documentation
What problem does it solve?
Developers often need composables that can accept both reactive and non-reactive inputs (MaybeRef / MaybeRefOrGetter) and normalize them inside reactive effects to keep behavior predictable. This Skill provides a reusable pattern for building library-grade Vue composables that gracefully handle plain values, refs, or getter functions.
Core Features & Use Cases
- Normalize inputs with toRef() or toValue() inside watch/watchEffect to ensure consistent reactivity.
- Support both one-way and two-way input scenarios via MaybeRef / MaybeRefOrGetter patterns.
- Real-world use: building a "useDocumentTitle" or "useCounter" style composable that remains API-friendly across different input types.
Quick Start
Create a new composable that accepts a parameter which can be a plain value, a Ref, or a getter function, and implement input normalization inside a watch or watchEffect using toRef() and toValue().
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: create-adaptable-composable Download link: https://github.com/NKDShinKu/NKDShinKu/archive/main.zip#create-adaptable-composable Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.