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,681 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,681 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.01681
Opus 5.5 $0.00031 $0.00672
Sonnet 5.5 $0.00015 $0.00336
Haiku 4.5 $0.00008 $0.00168

Measured 1mo ago against content hash 234bea4953ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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

How it starts

The opening of the file, as written. The whole thing — 134 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 · 134 lines

Files

What ships with it

2 files 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. 1mo ago Changed 234bea4953ee
  2. 1mo ago Changed · +4 lines e193ca458eca
  3. 2mo ago Changed aa3c0b30dba7
  4. 2mo 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 (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 77 tokens to every session and 1,681 once invoked, about $0.0003 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-09-03.

Related

uniapp-vue2-upgrade-skill compared with skills from other repositories

uniapp-vue2-upgrade-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
uniapp-vue2-upgrade-skilljiushiwon/wg-skillsSkill1546d agoApache-2.0A77Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code