Agent skill

Create Adaptable Composable

by logue in logue/vite-vuetify-ts-starter

Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter.

MITAuto-check passedFrontend & Design

Install Create Adaptable Composable

skills CLI
$ npx skills add logue/vite-vuetify-ts-starter --skill create-adaptable-composable -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install logue/vite-vuetify-ts-starter create-adaptable-composable --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/logue/vite-vuetify-ts-starter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/create-adaptable-composable .claude/skills/create-adaptable-composable && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-adaptable-composable
GitHub stars
181
Used in
1 other repo
Token cost
~668 tokens
SKILL.md length
171 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter.

  • Works in 4 steps: Confirm the composable's purpose and API… → Identify inputs params that should be… → Use toValue() or toRef() to normalize… → …
  • User asks for creating adaptable
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Reusable composables

What it does

Create Adaptable Composable is an agent skill from logue/vite-vuetify-ts-starter. 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.

Its SKILL.md is about 670 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires Vue 3 (or above) or Nuxt 3 (or above) project

It sits in Frontend & Design. It works with Vue.js and TypeScript. The repository describes itself as: @vitejs + @vuejs 3+@Vuetifyjs 3. The licence is MIT.

When your agent uses it

  • User asks for creating adaptable
  • Reusable composables

Example prompts

  • “/create-adaptable-composable”

Requirements

  • Compatibility (from SKILL.md): Requires Vue 3 (or above) or Nuxt 3 (or above) project

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Confirm the composable's purpose and API design and expected inputs/outputs.
  2. Identify inputs params that should be reactive (MaybeRef / MaybeRefOrGetter).
  3. Use toValue() or toRef() to normalize inputs inside reactive effects.
  4. Implement the core logic of the composable using Vue's reactivity APIs.

What it can do on your machine

Read from SKILL.md and the folder at commit 693b10a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Vue 3 (or above) or Nuxt 3 (or above) project

    From compatibility in the SKILL.md frontmatter.

Context cost

Create Adaptable Composable loads about 668 tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 171 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~97
When it runs · the whole SKILL.md, loaded when a task matches
~668

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from logue/vite-vuetify-ts-starter at commit 693b10a, republished under its MIT licence (© logue). 171 words, ~668 tokens.

Download SKILL.mdSave it as .claude/skills/create-adaptable-composable/SKILL.md (or your agent's skills folder).
name
create-adaptable-composable
description
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.
compatibility
Requires Vue 3 (or above) or Nuxt 3 (or above) project
license
MIT
metadata.author
github.com/vuejs-ai
metadata.version
17.0.0

Create Adaptable Composable

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:

  1. Confirm the composable's purpose and API design and expected inputs/outputs.
  2. Identify inputs params that should be reactive (MaybeRef / MaybeRefOrGetter).
  3. Use toValue() or toRef() to normalize inputs inside reactive effects.
  4. Implement the core logic of the composable using Vue's reactivity APIs.

Core Type Concepts

Type Utilities
ts
/**
 * value or writable ref (value/ref/shallowRef/writable computed)
 */
export type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;

/**
 * MaybeRef<T> + ComputedRef<T> + () => T
 */
export type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
Policy and Rules
  • 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.

When MaybeRefOrGetter or MaybeRef is used:

  • resolve reactive value using toRef() (e.g. watcher source)
  • resolve non-reactive value using toValue()
Examples

Adaptable useDocumentTitle Composable: read-only title parameter

ts
import { watch, toRef } from 'vue'
import type { MaybeRefOrGetter } from 'vue'

export function useDocumentTitle(title: MaybeRefOrGetter<string>) {
  watch(toRef(title), (t) => {
    document.title = t
  }, { immediate: true })
}

Adaptable useCounter Composable: two-way writable count parameter

ts
import { watch, toRef } from 'vue'
import type { MaybeRef } from 'vue'

function useCounter(count: MaybeRef<number>) {
  const countRef = toRef(count)
  function add() {
    countRef.value++
  }
  return { add }
}

© logue, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/create-adaptable-composable of logue/vite-vuetify-ts-starter.

Open the folder on GitHubat commit 693b10a

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in logue/vite-vuetify-ts-starter, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Create Adaptable Composable next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create Adaptable Composable compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Adaptable Composable this skilllogue/vite-vuetify-ts-starter1811 repos~668Automated safety check: PassMIT
Create Docsvictorgarciaesgi/nuxt-typed-router4132 repos~2.8kAutomated safety check: PassMIT
Uni Appsonofmagic/uni-app-tailwindcss-template3362 repos~1kAutomated safety check: PassMIT
QR Codes with qrcode.vuescopewu/qrcode.vue826—~1.3kAutomated safety check: PassMIT
Cross Platform Tauri UIifer47/markeron1.2k—~2kAutomated safety check: PassMIT
Tauri Config Ipcifer47/markeron1.2k—~1kAutomated safety check: PassMIT

Similar skills

  • Create Docs

    victorgarciaesgi/nuxt-typed-router

    Create complete documentation sites for projects. An agent skill from victorgarciaesgi/nuxt-typed-router.

    413 GitHub starsUsed in 2 repos~2.8k tokens
    Frontend & DesignAuto-check passed
  • Uni App

    sonofmagic/uni-app-tailwindcss-template

    Comprehensive skill reference for uni-app cross-platform development framework

    336 GitHub starsUsed in 2 repos~1k tokens
    Frontend & DesignAuto-check passed
  • QR Codes with qrcode.vue

    scopewu/qrcode.vue

    Renders, styles and downloads QR codes in Vue 3 apps with the qrcode.vue component, covering canvas versus SVG output, embedded logos, gradients and rounded modules.

    826 GitHub stars~1.3k tokensUpdated 23 days ago
    Frontend & DesignAuto-check passed
  • Cross-platform UI styling for MarkerOn Tauri app (macOS WKWebView vs Windows WebView2).

    1.2k GitHub stars~2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Tauri Config Ipc

    ifer47/markeron

    Extend MarkerOn settings, persisted config, or Tauri IPC commands.

    1.2k GitHub stars~1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Frontend Crud

    mfish-qf/mfish-nocode

    为 mfish-nocode-pro 项目前端(Vue3 + TypeScript)生成标准增删改查页面代码,包括 Model、API、data、index.vue、Modal、ViewModal 六个文件。当用户说"帮我生成前端增删改查"、"新增前端页面"、"生成前端CRUD"时使用此 skill。

    747 GitHub stars~3.8k tokensUpdated 23 days ago
    Frontend & DesignAuto-check passed

More from logue/vite-vuetify-ts-starter

  • Vuetify Skilld

    logue/vite-vuetify-ts-starter

    Vue Material Component Framework. An agent skill from logue/vite-vuetify-ts-starter.

    181 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Vue Debug Guides

    logue/vite-vuetify-ts-starter

    Vue 3 debugging and error handling for runtime errors, warnings, async failures, and SSR/hydration issues.

    181 GitHub starsUsed in 2 repos~5.1k tokens
    Auto-check passed
  • Vue Pinia Best Practices

    logue/vite-vuetify-ts-starter

    Pinia stores, state management patterns, store setup, and reactivity with stores.

    181 GitHub starsUsed in 2 repos~290 tokens
    Auto-check passed

Questions about Create Adaptable Composable

What does Create Adaptable Composable do?

Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Create Adaptable Composable is an agent skill from logue/vite-vuetify-ts-starter. Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter.

When should I use Create Adaptable Composable?

Create Adaptable Composable fits situations like: user asks for creating adaptable; reusable composables.

How do I install Create Adaptable Composable in Claude Code?

Run `npx skills add logue/vite-vuetify-ts-starter --skill create-adaptable-composable -a claude-code`. Or copy the skill folder (.agents/skills/create-adaptable-composable in logue/vite-vuetify-ts-starter) into .claude/skills/create-adaptable-composable in your project. Claude Code loads it when a task matches its description.

How do I install Create Adaptable Composable in Codex?

Run `npx skills add logue/vite-vuetify-ts-starter --skill create-adaptable-composable -a codex`. Or copy the skill folder (.agents/skills/create-adaptable-composable in logue/vite-vuetify-ts-starter) into .agents/skills/create-adaptable-composable in your project. Codex loads it when a task matches its description.

Can I use Create Adaptable Composable in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add logue/vite-vuetify-ts-starter --skill create-adaptable-composable -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-adaptable-composable, .gemini/skills/create-adaptable-composable, .github/skills/create-adaptable-composable and .opencode/skills/create-adaptable-composable in your project.

What does Create Adaptable Composable need to run?

SKILL.md names no scripts, command-line tools or credentials: Create Adaptable Composable is instructions for the agent only. Compatibility (from SKILL.md): Requires Vue 3 (or above) or Nuxt 3 (or above) project.

Does Create Adaptable Composable access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Create Adaptable Composable safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create Adaptable Composable use?

Create Adaptable Composable is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create Adaptable Composable use?

About 668 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create Adaptable Composable?

Skills that share tags, products or a category with Create Adaptable Composable: Create Docs (victorgarciaesgi/nuxt-typed-router, 413 stars), Uni App (sonofmagic/uni-app-tailwindcss-template, 336 stars), QR Codes with qrcode.vue (scopewu/qrcode.vue, 826 stars) and Cross Platform Tauri UI (ifer47/markeron, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create Adaptable Composable?

logue (a GitHub user) maintains it in logue/vite-vuetify-ts-starter, which has 181 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 2, 2026.

Source: logue/vite-vuetify-ts-starter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.