Skip to content
Skill

Vue3 composition

Guides an agent to write Vue 3 components and composables with the Composition API

Vue3 composition is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
20
Last commit
License
MIT
Listing updated

Similar skills

About Vue3 composition

This skill sets Vue 3 Composition API with script setup and TypeScript as the default style for new components. It lays out a decision flow for choosing between a reusable composable, provide and inject with typed keys, or local ref and reactive state inside a component.

The instructions also list reactivity pitfalls to avoid, such as losing reactivity when destructuring props without toRefs or storeToRefs, and prefer a ref over reactive for state that gets reassigned. It includes a short checklist the agent can run through before finishing: script setup with TypeScript, no prop mutation, composables returning a named object, and no Options API in new files.

It points to companion skills for Nuxt data fetching and Tailwind CSS styling. The skill is a single SKILL.md with no scripts, and it expects the agent to confirm the exact Vue version from the repository lockfile.

When your agent uses it

Use when writing Vue 3 components or composables, choosing Options vs Composition API, handling reactivity, provide/inject, or script setup patterns.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (2 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the nuxt-modern-dev plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add pstuart/pstuart
/plugin install nuxt-modern-dev@pstuart

Or copy only this skill to ~/.claude/skills/vue3-composition:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/vue3-composition &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/vue3-composition" ~/.claude/skills/vue3-composition &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/vue3-composition inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/vue3-composition to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/vue3-composition &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/vue3-composition" ~/.agents/skills/vue3-composition &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/vue3-composition inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/vue3-composition to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/vue3-composition &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/vue3-composition" ~/.cursor/skills/vue3-composition &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/vue3-composition inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/pstuart/pstuart.git --path plugins/nuxt-modern-dev/skills/vue3-composition

Or copy the folder to ~/.gemini/skills/vue3-composition yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/vue3-composition:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pstuart/pstuart.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/vue3-composition &&
cp -R "$tmp/plugins/nuxt-modern-dev/skills/vue3-composition" ~/.copilot/skills/vue3-composition &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/vue3-composition inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/pstuart/pstuart.git

Then copy pstuart/plugins/nuxt-modern-dev/skills/vue3-composition into your agent's skills folder as vue3-composition. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Script setup defaults
Standard component layout using script setup with TypeScript, typed props and emits.
Composable conventions
Naming and return-shape rules for reusable stateful logic in useXxx files.
Dependency injection guidance
When to use provide and inject with typed keys instead of passing props.
Reactivity pitfalls
Common mistakes with destructured props, reactive reassignment and async setup.
API style decision
Rules for choosing Composition API over Options API in new code.
Pre-finish checklist
A short review list covering props, composables and API style.

Good for

  • Write a new Vue 3 component in TypeScript with typed props
  • Extract shared stateful logic into a composable
  • Share state across a component tree with provide and inject
  • Fix a reactivity bug caused by destructuring props
  • Review a component for prop mutation or Options API usage

Vue3 composition FAQ

When does Vue3 composition trigger?

It is meant for writing Vue 3 components or composables, choosing between Options and Composition API, handling reactivity, provide and inject, or script setup patterns.

Which Vue version does Vue3 composition target?

It sets Vue 3 Composition API as the baseline and tells the agent to confirm the exact version from the repository lockfile.

Does Vue3 composition cover Nuxt data fetching?

No. For useFetch and useAsyncData it points to a separate nuxt4-frontend skill, and for styling to a tailwindcss4 skill.

How do I install Vue3 composition in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/vue3-composition to use it in all your projects, or to .claude/skills/vue3-composition in one project. Or install the nuxt-modern-dev plugin, which includes it: /plugin marketplace add pstuart/pstuart, then /plugin install nuxt-modern-dev@pstuart.

Does Vue3 composition run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Vue3 composition?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Vue3 composition?

The closest alternatives to Vue3 composition are Vue, Vue clean components, Nuxt4 frontend, Vue UI and Vue data.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from pstuart/pstuart

  1. Reports git state, activity and build evidence across every project in a folder

    • Open source
    • 20 GitHub stars
    • Developer tools
  2. Checks web pages against WCAG 2.1 AA contrast, labels, keyboard and ARIA rules

    • Open source
    • 20 GitHub stars
    • Developer tools
  3. Guides an AI agent through building and reviewing Nuxt 4 apps with the app/ layout

    • Open source
    • 20 GitHub stars
    • Developer tools
  4. Walks an agent through a web application security audit checklist and report

    • Open source
    • 20 GitHub stars
    • Security
  5. Guides an agent to style Nuxt and Vue UIs with Tailwind CSS 4 utilities and @theme tokens

    • Open source
    • 20 GitHub stars
    • Developer tools
  6. Guides an agent to write and review strict TypeScript in Vue, Nuxt and Node code

    • Open source
    • 20 GitHub stars
    • Developer tools