Skip to main content
skill CX Codex

vueuse-core-skilld — Claude Code skill: VueUse 15.0.0 API

vueuse-core-skilld — a skill with the full @vueuse/core 15.0.0 API: new composables, v14 migration rules, deprecated functions and environment requirements.

MIT 219 installs ★ 186 updated 2026-10-10

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add skilld-dev/vue-ecosystem-skills --skill vueuse-core-skilld -a claude-code
Open on GitHub

What vueuse-core-skilld does

Gives the agent a reference for @vueuse/core 15.0.0 and @vueuse/shared: all exports, v14 migration rules (templateRef removed, timer options replaced with scheduler, useThrottleFn now fires trailing calls by default), new composables like useWebMCP for registering browser agent tools, useTemporalNow, useLiveAnnouncer and useElementOverflow. Lists deprecated functions — computedEager, watchPausable, executeTransition, breakpointsVuetify — with replacements. Examples cover reactive getter arguments, storage with mergeDefaults, throttling and WebMCP tool registration.

Requires Vue ^3.5.0 and Node.js >= 22. ESM-only, require() fails. Includes debugging notes on v15 fixes for useFetch, useWebSocket and useResizeObserver that may explain behavior changes.

What it helps with

  • add reactive storage with auto-fill for new keys
  • register a WebMCP tool for a browser agent
  • migrate VueUse code from v14 to v15 without breaking
  • check which composables are deprecated and what replaces them
  • configure throttling without a trailing call

Example prompts for the agent

  • Migrate this code to VueUse 15
  • Add reactive dark mode with useDark and save the choice to localStorage
  • Register a WebMCP tool get-user-preferences that returns current settings from settings.value

How to install vueuse-core-skilld

1Skills CLI (Vercel)

npx skills add skilld-dev/vue-ecosystem-skills --skill vueuse-core-skilld -a claude-code

2Manually: put the files in place

~/.claude/skills/vueuse-core-skilld/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/vueuse-core-skilld/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about vueuse-core-skilld

How to install vueuse-core-skilld in Claude Code?

Run npx skills add skilld-dev/vue-ecosystem-skills --skill vueuse-core-skilld -a claude-code, the skill lands in ~/.claude/skills/vueuse-core-skilld/SKILL.md.

What does vueuse-core-skilld do?

Gives the agent the full VueUse 15.0.0 API, v14 migration rules, a list of deprecated functions and examples for new composables like useWebMCP.

What are the requirements for VueUse 15.0.0?

Vue ^3.5.0, Node.js >= 22, ESM only. Node 20 support dropped in v15.0.0, require() does not work.

Source text

SKILL.md · MIT
---
name: vueuse-core-skilld
description: Collection of essential Vue Composition Utilities. ALWAYS use when writing code that imports "@vueuse/core" or "@vueuse/shared" (VueUse). Provides the v15.0.0 API surface, v14 to v15 migration rules, new composables (useWebMCP, useTemporalNow, useLiveAnnouncer, useElementOverflow), deprecations, and configuration best practices.
license: MIT
---

# @vueuse/core 15.0.0

Prepared source: `@vueuse/[email protected]` (`package.json:4`). File citations below use
paths relative to that package root. Docs citations are absolute URLs.

## Environment limits

- ESM-only since v13 (`"type": "module"`, `package.json:3`). `require()` fails.
- Requires Vue `^3.5.0` (`package.json:42`).
- Requires Node.js `>= 22` (`package.json:39`); Node 20 support dropped in v15.0.0
  ([release](https://github.com/vueuse/vueuse/releases/tag/v15.0.0)).
- Exports: `.` and `./metadata` (`package.json:24-28`). Everything ships from `dist/`.
- `@vueuse/[email protected]` is a dependency and fully re-exported
  (`dist/index.d.ts:3`), so `import { useToggle } from '@vueuse/core'` works; see
  [shared API](./references/shared-api.md).

## v15 rules that change generated code

1. **No `templateRef`.** Removed in v15.0.0
   ([release](https://github.com/vueuse/vueuse/releases/tag/v15.0.0)). Use Vue's
   built-in `useTemplateRef()` instead.
2. **Timer options are gone; pass `scheduler`.** The deprecated per-composable
   `interval` / `immediate` options were removed from `ConfigurableScheduler`
   composables in v15.0.0 ([release](https://github.com/vueuse/vueuse/releases/tag/v15.0.0)).
   Affected options interfaces extend or intersect `ConfigurableScheduler`
   (`dist/index.d.ts:212-217`): `useCountdown`, `useNow`, `useTimestamp`,
   `useTimeAgo`, `useTimeAgoIntl`, `useTemporalNow`, `useElementByPoint`,
   `useMemory`, `useVibrate`, and `useWebSocket`'s `heartbeat` option.
   `scheduler` is `(cb: Fn) => Pausable`, so `useRafFn` plugs in directly.
3. **`useThrottleFn` now fires trailing calls by default** (`trailing` default
   changed false to true, v15.0.0
   ([release](https://github.com/vueuse/vueuse/releases/tag/v15.0.0))). Pass
   `trailing = false` (3rd argument) to keep v14 behavior.
4. **`useEventSource` handles SSE `message` events** and triggers both
   `onmessage` and `addEventListener` handlers (v15.0.0
   ([release](https://github.com/vueuse/vueuse/releases/tag/v15.0.0))). Do not
   add manual duplicate listeners for unnamed events.
5. **`deepRefs` default flips next major.** It defaults to `true` today with an
   explicit warning that the next major changes it to `false`
   (`dist/index.d.ts:204-211`). Pass `deepRefs` explicitly where the value
   matters.

## Do not use (deprecated or replaced)

| Export | Replacement | Evidence |
| --- | --- | --- |
| `computedEager` | `computed()` (Vue 3.4+ no longer re-triggers on unchanged values) | [docs](https://vueuse.org/shared/computedEager/) "will be removed in future version" |
| `watchPausable` | Vue 3.5 native `watch()` returns `{ stop, pause, resume }` | [docs](https://vueuse.org/shared/watchPausable/) |
| `executeTransition` | `transition(source, from, to, options)` | deprecated at `dist/index.d.ts:5114-5121` |
| `UseTransitionOptions.transition` | `easing` option | same deprecation block |
| `breakpointsVuetify` | `breakpointsVuetifyV2` or `breakpointsVuetifyV3` | deprecated at `dist/index.d.ts:758-762` |
| `asyncComputed` | `computedAsync` (alias remains, `dist/index.d.ts:46`) | alias of `computedAsync` |

## Common tasks

```ts
import { useLocalStorage, useDark, useTitle, useThrottleFn } from '@vueuse/core'

// Reactive getter args enable derived values without computed()
const isDark = useDark()
const title = useTitle(() => isDark.value ? 'Night' : 'Day')

// Storage with schema evolution: mergeDefaults fills new keys
const settings = useLocalStorage('settings', { theme: 'light', density: 'comfortable' }, { mergeDefaults: true })

// v15 throttle fires a trailing call by default; 3rd arg is `trailing`
const onResize = useThrottleFn(handler, 200, false, true) // trailing=false, leading=true
```

```ts
import { useWebMCP } from '@vueuse/core'

// Register a WebMCP tool for browser agents (new in v15)
const { isSupported, isRegistered, error } = useWebMCP({
  name: 'get-current-user',
  description: 'Returns the signed-in user id',
  inputSchema: { type: 'object' },
  execute: () => ({ userId: user.value?.id ?? null }),
})
```

More patterns: [best practices](./references/best-practice.md).

## References

- [API surface](./references/api-surface.md): complete v15 export inventory, grouped.
- [Shared API](./references/shared-api.md): the `@vueuse/shared` functions re-exported by core.
- [Migration v14 to v15](./references/migration-v15.md): every breaking change, feature, and notable fix since v14.3.0, cited.
- [New functions in v15](./references/new-functions-v15.md): `useWebMCP`, `useTemporalNow`, `useLiveAnnouncer`, `useElementOverflow` usage.
- [Best practices](./references/best-practice.md): getters, event filters, storage serializers, schedulers, SSR, scoping.

## Debugging notes (v15 fixes that may explain behavior changes)

- `useFetch` ignores a stale success response after a newer request starts, and
  ignores stale abort errors after a refetch succeeds
  ([v15](https://github.com/vueuse/vueuse/releases/tag/v15.0.0),
  [v14.4](https://github.com/vueuse/vueuse/releases/tag/v14.4.0)).
- `useWebSocket` ignores messages from a superseded socket and syncs status to
  `CLOSED` after explicit `close()` (same releases).
- `useResizeObserver` guards `observe()` with `instanceof Element`, so Vue
  comment nodes no longer crash it ([v15](https://github.com/vueuse/vueuse/releases/tag/v15.0.0)).
- Pointer handling: `useDraggable` and `usePointerSwipe` end on `pointercancel`,
  `usePointer` resets `isInside`, `onLongPress` clears pending presses
  ([v15](https://github.com/vueuse/vueuse/releases/tag/v15.0.0),
  [v14.4](https://github.com/vueuse/vueuse/releases/tag/v14.4.0)).

© skilld-dev · MIT · skilld-dev/vue-ecosystem-skills

Similar skills

All skills for Frontend and UI →

From the same set32

The whole set →
pinia-skilld pinia-skilld — a skill that feeds your coding agent the correct Pinia 4.x APIs: stores, getters, actions, SSR hydration, testing and v2/v3 migration notes. CX Codex +1 349installs vue-router-skilld vue-router-skilld guides AI coding agents through [email protected] conventions. Covers typed routes, experimental data loaders, and file-based routing without deprecated patterns. CX Codex +1 324installs pinia-colada-skilld pinia-colada-skilld gives coding assistants patterns and rules for @pinia/colada in Vue. Helps write queries, handle mutations, invalidate cache, and set up SSR. CX Codex +1 240installs tanstack-vue-query-skilld tanstack-vue-query-skilld guides AI assistants on @tanstack/vue-query v5 conventions. It prevents reactivity bugs with query keys and SSR setup in Vue projects. CX Codex +1 223installs vee-validate-skilld vee-validate-skilld — a skill for writing, reviewing, and debugging Vue 3 forms with vee-validate 4.15.x. Covers Composition API, validation schema patterns, typed-schema integration, version-specific changes since 4.9, and common pitfalls. CX Codex +1 188installs primevue-skilld primevue-skilld is a Claude Code skill that guides PrimeVue v5 setup, current component APIs, and theming in Vue 3 projects. CX Codex +1 187installs shadcn-vue-skilld shadcn-vue-skilld — a skill for Claude Code, Codex, Cursor and other agents covering shadcn-vue 2.8.2 CLI in Vue and Nuxt projects. Carries exact flags for every command and the full components.json schema. CX Codex +1 174installs vue-test-utils-skilld The vue-test-utils-skilld skill guides Vue 3 tests with @vue/test-utils 2.5.1, including mounting, wrapper queries, async work, and v1 migration. CX Codex +1 168installs

Project sponsors

Companies that keep this analytics open