uniapp-vue2-upgrade-skill

uniapp-vue2-upgrade-skill is a skill for Claude Code, Codex from jiushiwon/wg-skills. It costs 77 tokens per session (1,672 once invoked), scanned A, original, Apache-2.0.

A planning and migration guide for moving a uni-app project from Vue 2 and its older coding style to Vue 3, TypeScript, and Pinia. Vue is a frontend framework, while Pinia stores shared app data.

In plain words
What is it for?
Use it to assess a Vue 2 project, compare full or gradual migration paths, and plan changes from Vuex, mixins, and JavaScript.
Why use it?
It identifies compatibility problems and migration risks before code is changed, and waits for approval before carrying out the upgrade.

Skill for Claude CodeCodex

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

Good fit Use it to assess a Vue 2 project, compare full or gradual migration paths, and plan changes from Vuex, mixins, and JavaScript.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiushiwon/wg-skills/uniapp-vue2-upgrade-skill
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 jiushiwon/wg-skills --skill uniapp-vue2-upgrade-skill
Clone the repo
git clone --depth 1 https://github.com/jiushiwon/wg-skills

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 uniapp-vue2-upgrade-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-vue2-upgrade-skill/github.svg)](https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-vue2-upgrade-skill)
Your own site
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-vue2-upgrade-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-vue2-upgrade-skill/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 uniapp-vue2-upgrade-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/uniapp-vue2-upgrade-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/uniapp-vue2-upgrade-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,672 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00077 $0.01672
Opus 5 $0.00039 $0.00836
Sonnet 5 $0.00015 $0.00334
Haiku 4.5 $0.00008 $0.00167

Measured 9d ago against content hash afb5bbeeee1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

uniapp-vue2-upgrade-skill 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 9d 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.

vibeCoding/frontend/uniapp/uniapp-vue2-upgrade-skill/SKILL.md · 130 lines

How it starts

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

UniApp Vue2 → Vue3 Upgrade Skill

定位

本 skill 专门协助把 Vue2 + Options API 的 uniapp 项目平滑升级到 Vue3 + Composition API + TypeScript + Pinia,识别升级阻塞点、给出迁移方案、生成差异清单,仅在用户明确同意后才执行升级

Vue2 项目可以继续被 uniapp-code-audit-skill 审计(Vue3 专属检查项标注为"不适用"),无需先升级。本 skill 是"主动升级"场景的方案输出工具,不是"强制迁移"。

When to Use

触发此 skill 时使用:

  • "vue2 升级 vue3"
  • "uniapp 迁移"
  • "小程序升级"
  • "Options API 转 Composition API"
  • "Vuex 迁移到 Pinia"
  • "把 vue2 项目升级到 vue3"

不触发场景

  • "审计这个 vue2 项目" — 应用 uniapp-code-audit-skill,本 skill 不参与
  • "生成新项目" — 应用 uniapp-app-generate-skill,默认生成 Vue3 项目
  • "在 vue2 中加新功能" — 继续在 Vue2 中开发

Workflow

Phase 1: 现状评估
  → 扫描项目结构、技术栈、Options API 使用情况
  → 评估升级阻塞点(依赖兼容性、第三方库、自研组件库)
  → 输出"升级就绪度报告"

Phase 2: 方案设计
  → 选择升级策略:
     A. 全量升级(一键全替换)
     B. 渐进式升级(先 Vue2.7 过渡,再升级 Vue3)
     C. 双轨并行(新功能 Vue3,老代码逐步迁移)
  → 输出"升级方案 + 风险清单 + 工时估算"

Phase 3: 用户确认
  → 用户 review 方案
  → 确认后才执行迁移

Phase 4: 迁移执行
  → 按方案逐步替换
  → Options API → Composition API
  → Vuex → Pinia
  → mixins → composables
  → JS → TS(可选)

Phase 5: 验证交付
  → npm run lint
  → npm run type-check
  → npm run build:mp-weixin
  → 三端真机/模拟器回归测试

升级范围(典型 Vue2 → Vue3 差异)

维度 Vue2 写法 Vue3 写法 难度
API 风格 Options API(data/methods/computed/watch Composition API(ref/reactive/computed/watch
组件定义 export default { name, props, data, ... } <script setup> + defineProps/defineEmits/defineExpose
生命周期 created/mounted/beforeDestroy onMounted/onUnmounted(无 beforeDestroy
状态管理 Vuex(state/mutations/actions/getters Pinia(defineStore setup 风格)
类型系统 可选 TypeScript 默认 TypeScript 严格模式
混入 mixins: [...] 自定义 composables + useXxx()
过滤器 {{ value | filter }} 计算属性或方法
插槽语法 slot="foo" slot-scope="scope" #foo v-slot:foo="scope"
路由 uni-app 自带路由 不变
构建 HBuilderX / vue-cli Vite + @dcloudio/vite-plugin-uni

Read the full file on GitHub · 130 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 130 lines · 77 tokens per session scan A afb5bbeeee1e

Subscribe to this mod's changes

uniapp-vue2-upgrade-skill is a skill published in the GitHub repository jiushiwon/wg-skills (100 stars, last pushed 2d ago), licensed Apache-2.0. It adds 77 tokens to every session and 1,672 once invoked, about $0.0004 per session on Opus 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-09-03.

Related

Other skills, from other repositories

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

debug-optimize-lcp

Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

repro-admin

Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.

emdash-cms/emdash · 48 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

menu-transitions-rtl

Animate react-horizontal-scrolling-menu scrolling and build right-to-left menus: noPolyfill defaults to true since v8, so transitionDuration (default 500), a custom-easing-function transitionBehavior, and per-call ScrollOptions { duration, boundary } on scrollToItem/scrollNext/scrollPrev are silently ignored unless…

asmyshlyaev177/react-horizontal-scrolling-menu · 137 tokens