Uniapp Vue2 Upgrade Skill logo

Uniapp Vue2 Upgrade Skill

Community
jiushiwon
uniapp-vue2-upgrade-skill

当用户要求把 uniapp Vue2 + Options API 项目升级到 Vue3 + Composition API + TypeScript + Pinia 时触发。本 skill 输出升级方案、迁移指南与差异清单,**不直接修改、不重构、不执行升级**。仅当用户确认方案后才执行迁移。

Overview

Publisherjiushiwon
Repositorywg-skills
Skill nameuniapp-vue2-upgrade-skill
Stars
123
Forks
38
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jiushiwon on GitHub. Read the source before you install it.

Installation

Install the Uniapp Vue2 Upgrade Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/frontend/uniapp/uniapp-vue2-upgrade-skill
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiushiwon/wg-skills.git /tmp/wg-skills
mkdir -p .claude/skills
cp -r /tmp/wg-skills/vibeCoding/frontend/uniapp/uniapp-vue2-upgrade-skill .claude/skills/uniapp-vue2-upgrade-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Uniapp Vue2 Upgrade Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Uniapp Vue2 Upgrade Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Uniapp Vue2 Upgrade Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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/beforeDestroyonMounted/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-cliVite + @dcloudio/vite-plugin-uni中

升级阻塞点(常见)

  1. 第三方 UI 库 / 组件库:未发布 Vue3 版本
  2. Vuex 模块:Vuex 4 仍可用但迁移 Pinia 收益更高
  3. uni-app 插件市场:部分插件只支持 Vue2
  4. sync 修饰符:Vue3 移除,需用 v-model:xxx 或事件替代
  5. $listeners:Vue3 移除,需用 $attrs + emits
  6. 过滤器 / filter 关键字:Vue3 移除
  7. keyCode 修饰符:Vue3 移除,需用按键名
  8. v-if / v-for 优先级:Vue3 中 v-if 优先级高于 v-for

风险等级

等级说明
P0必须先解决才能升级(如 uni-app 核心库版本)
P1需要评估兼容性,必要时寻找替代方案
P2迁移工作量大但可分批处理
P3小工作量,纯替换即可

输出文件

  • vue2-to-vue3-readiness-report.md — 升级就绪度报告
  • vue2-to-vue3-migration-plan.md — 迁移方案
  • vue2-to-vue3-diff-checklist.md — 差异清单(按文件)

本 skill 在 Phase 1-3 仅输出报告,Phase 4 才执行迁移(用户确认后)。

参考标准

可配合技能

配合 Skill场景
uniapp-code-audit-skill升级前后用同一审计 skill 对比
uniapp-app-generate-skill参考 Vue3 骨架标准
uniapp-standard-skill升级后规范符合性核查
uniapp-auth-skill鉴权相关代码迁移参考

自我审计

本 skill 升级后应核对:

  • 升级就绪度报告准确
  • 阻塞点清单完整
  • 不在用户确认前自动执行迁移
  • 风险等级标注正确

触发词

uniapp-vue2-upgrade、UniApp Vue2 → Vue3 Upgrade Skill

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Uniapp Vue2 Upgrade Skill AI skill do?

当用户要求把 uniapp Vue2 + Options API 项目升级到 Vue3 + Composition API + TypeScript + Pinia 时触发。本 skill 输出升级方案、迁移指南与差异清单,**不直接修改、不重构、不执行升级**。仅当用户确认方案后才执行迁移。

Why use Uniapp Vue2 Upgrade Skill on TypingMind?

Because you install it once and use it with any model. Uniapp Vue2 Upgrade Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Uniapp Vue2 Upgrade Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/frontend/uniapp/uniapp-vue2-upgrade-skill. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Uniapp Vue2 Upgrade Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Uniapp Vue2 Upgrade Skill?

As many as you like. As long as a model supports skills, you can use Uniapp Vue2 Upgrade Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Uniapp Vue2 Upgrade Skill AI skill free?

Yes. It is published on GitHub by jiushiwon under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇