migrate-vue2

migrate-vue2 is a skill for Claude Code, Codex from Phaedra-Solutions/cursor-rules. It costs 149 tokens per session (1,447 once invoked), scanned A, original, MIT.

A step-by-step migration for applications built with Vue 2, a JavaScript framework for browser interfaces, to Vue 3. It uses Vue's compatibility layer so older and newer code can be moved in stages.

In plain words
What is it for?
Use it to update Vue and its libraries, replace incompatible plugins, fix changed features such as filters and event handling, and check key user flows.
Why use it?
It helps avoid a risky all-at-once rewrite and identifies libraries that block the move. Compatibility warnings, builds, unit tests and end-to-end checks show what still needs changing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to update Vue and its libraries, replace incompatible plugins, fix changed features such as filters and event handling, and check key user flows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phaedra-solutions/cursor-rules/migrate-vue2
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Phaedra-Solutions/cursor-rules --skill migrate-vue2
Clone the repo
git clone --depth 1 https://github.com/Phaedra-Solutions/cursor-rules

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for migrate-vue2

README.md
[![agentmods](https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/migrate-vue2/github.svg)](https://agentmods.dev/skills/phaedra-solutions/cursor-rules/migrate-vue2)
Your own site
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/migrate-vue2"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/migrate-vue2/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for migrate-vue2

Your own site · 80×15
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/migrate-vue2"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/migrate-vue2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 149 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,447 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00149 $0.01447
Opus 5.5 $0.00060 $0.00579
Sonnet 5.5 $0.00030 $0.00289
Haiku 4.5 $0.00015 $0.00145

Measured 3d ago against content hash ce5e5d6be4bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

migrate-vue2 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/migrate-vue2/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrate Vue 2 → Vue 3

When to use

  • The app runs Vue 2 (EOL 31 Dec 2023) and the user wants to move to Vue 3.
  • For Nuxt 2 apps, use the Nuxt path in legacy/vue2-nuxt2 instead (Nuxt Bridge or a rebuild); this skill covers Vue apps built with Vite, Vue CLI or webpack.

Before you start

  • Read vue, vue-template-compiler, vue-router, vuex, @vue/test-utils, the build tool (Vue CLI, webpack, Vite) and every Vue plugin and UI library from the lockfile.
  • For each library, find a Vue 3 version or a replacement (for example Vuetify 2 → 3, BootstrapVue → a Vue 3 alternative, vue-i18n 8 → 9+). Libraries without a Vue 3 path are the main blockers; list them for the user.
  • Working tree clean; new branch (chore/vue-3); a test suite and E2E smoke tests for main flows (add them first if missing).
  • Ask the user:
    • whether to migrate the build tool (Vue CLI → Vite) in the same project, as a separate step before or after;
    • Vuex → Pinia now, or Vuex 4 first;
    • whether network installs are approved (core/supply-chain cooldown applies).

Steps

  1. Baseline: install, lint, unit tests, E2E and a production build. Record failures.
  2. Move to Vue 2.7 ([email protected]), remove @vue/composition-api if present, and fix deprecation warnings. 2.7 lets you start writing <script setup> and Composition API code that also works in Vue 3.
  3. Remove patterns the compat build can't cover well while still on Vue 2: filters → methods or computed; event bus ($on/$off/$once) → a tiny emitter (mitt) or Pinia; $children → refs; .native modifiers → explicit emits; functional components with templates → plain components.
  4. Switch to Vue 3 + compat build:
    • install vue@^3.5 and @vue/compat@^3.5 (same version) and @vue/compiler-sfc (remove vue-template-compiler);
    • alias vue to @vue/compat in the bundler and set the compiler's compatConfig: { MODE: 2 } (Vite: resolve.alias plus @vitejs/plugin-vue template.compilerOptions.compatConfig; Vue CLI: chainWebpack alias and vue-loader options);
    • update vue-router to v4+ API (createRouter, createWebHistory) and Vuex to 4 (createStore) or Pinia;
    • replace new Vue({...}) with createApp(App).use(router).use(store).mount('#app').
  5. Run the app and fix compat warnings feature by feature. Each warning names a compat flag (for example COMPONENT_V_MODEL, INSTANCE_LISTENERS, RENDER_FUNCTION, ATTR_FALSE_VALUE, TRANSITION_CLASSES). Fix the code, then disable that flag per component (compatConfig: { COMPONENT_V_MODEL: false }) or globally (configureCompat). Typical fixes:
    • v-model on components: value/input → modelValue/update:modelValue (or defineModel);
    • $listeners merged into $attrs; inheritAttrs behavior with class/style;
    • v-if/v-for precedence changed; key on <template v-for>;
    • async components → defineAsyncComponent;
    • transition class renames (v-enter → v-enter-from);
    • global API (Vue.use, Vue.component, Vue.prototype) → app instance (app.use, app.component, app.config.globalProperties).
  6. Update tests: @vue/test-utils v2 (mount options changed: props, global.plugins, global.stubs).
  7. Remove the compat build when no warnings remain: drop the alias and @vue/compat, set MODE: 3 or remove compatConfig, and run everything again. Then switch to frontend/vue.
  8. Show the diff and results at each step and wait for approval; commit only when asked (git-commit skill).

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 69 lines · 149 tokens per session scan A ce5e5d6be4bc

Subscribe to this mod's changes

migrate-vue2 is a skill published in the GitHub repository Phaedra-Solutions/cursor-rules (4 stars, last pushed 2d ago), licensed MIT. It adds 149 tokens to every session and 1,447 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

Other skills, from other repositories

frontend-ux-engineer

Use for frontend features, Next.js/React/Vue/Svelte UI, accessibility, responsive layout, design polish, state handling, forms, visual QA, or product workflow improvements.

DominikTobureto/awesome-grok-build · 42 tokens

nuxt4-patterns

Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.

sjarmak/coding-agent-workflows · 37 tokens

grok-cli

Delegate bounded tasks to Grok Build from a supervising agent such as Codex. Use when the user asks Grok to investigate, review, implement, or provide another perspective, or when a distinct coding agent would materially help. Includes a background ACP client for progress, follow-up prompts, permissions, and…

scarletkc/agents · 66 tokens

agent-svelte-expert

Specialist subagent: Svelte 5 runes, SvelteKit routing, form actions, and compile-time reactivity specialist. Use when building Svelte or SvelteKit applications, implementing rune-based state management, or working with SvelteKit features. Trigger phrases: Svelte, SvelteKit, runes, $state, $derived, $effect, $props…

travisjneuman/.claude · 101 tokens

vue-idioms

Vue 3 Composition API patterns: syntax, reactive state with Pinia stores, reusable composables, and Vitest component testing. Use when developing or refactoring Vue 3 frontend applications.

irahardianto/awesome-agv · 47 tokens

talk-like-scarletkc

A writing guide that makes text sound like the developer scarletkc, including posts, comments, technical opinions, project documents, and translations.

scarletkc/agents · 118 tokens