Skip to content
SkillModel-led533 tokens in use

create-adaptable-composable

Teaches your agent to write Vue 3 composables that accept a literal value, a ref or a getter for each input.

3,364 stars on the repository MIT Licensevuejs-ai/skills · skills/create-adaptable-composable
npx skills add vuejs-ai/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing create-adaptable-composable costs

80tokens idle
533tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter15/15
  • Structure16/25
  • Examples15/15
  • Output10/15
  • Size15/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Fair
  • Development activity68
  • Maintenance40
  • Community52
  • Maturity32
  • Momentum40

This skill guides an agent through designing a Vue composable whose inputs can be a literal value, a ref or a getter. It sets out which parameters should be reactive, when to type them as MaybeRef and when as MaybeRefOrGetter, and how to resolve them with toRef() or toValue().

It applies when you ask for a reusable or adaptable composable in a Vue 3 or Nuxt 3 project. The skill is one short instruction file with two worked examples, useDocumentTitle and useCounter.

What You Get

  • Four design steps for a composable, from API shape to implementation
  • Type rules: MaybeRefOrGetter for read-only inputs, MaybeRef for two-way writable inputs
  • A warning to avoid MaybeRefOrGetter for callback parameters, which could be called as getters by mistake
  • Two worked examples: useDocumentTitle and useCounter

Common Use Cases

  • Writing a composable that works with a literal, a ref or a computed value
  • Turning an existing composable’s fixed arguments into reactive ones
  • Building a small library of shared composables for a Vue or Nuxt app

What Makes It Unique

The skill covers one narrow topic, how composable inputs are typed and resolved, and states the pitfalls around function-valued parameters and DOM targets. Broader Vue skills in the same repository cover project structure and debugging, so this one stays focused on the input contract.

Under The Hood

The skill is a single Markdown file the agent loads when you ask for an adaptable composable. It contains no scripts. It does not run commands, call the network or write files by itself; any code is written by the agent in your project as part of your request.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers