migrate-v1-to-v2

migrate-v1-to-v2 is a skill for Claude Code, Codex from wot-ui/open-wot. It costs 88 tokens per session (2,327 once invoked), scanned A, original, MIT.

A migration guide for moving a uni-app project from Wot UI v1 to Wot UI v2. The work includes replacing old package names, component interfaces, form validation, and icon names.

In plain words
What is it for?
Use it to migrate projects using wot-design-uni to @wot-ui/ui, or to fix errors after that upgrade. It covers imports, easycom settings, forms, icons, components, styles, and platform-specific issues.
Why use it?
A major UI-library upgrade can cause build errors, missing icons, and runtime failures because older code no longer matches the new version. The guide maps the affected parts and applies only compatibility changes.

Skill for Claude CodeCodex

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

not rated 34repo +1 13d ago A scan Socket: passSnyk: passSkillSpector: pass 88 tokens original MIT

Good fit Use it to migrate projects using wot-design-uni to @wot-ui/ui, or to fix errors after that upgrade. It covers imports, easycom settings, forms, icons, components, styles, and platform-specific issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wot-ui/open-wot/migrate-v1-to-v2
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 wot-ui/open-wot --skill migrate-v1-to-v2
Clone the repo
git clone --depth 1 https://github.com/wot-ui/open-wot

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-v1-to-v2

README.md
[![agentmods](https://agentmods.dev/badge/skills/wot-ui/open-wot/migrate-v1-to-v2/github.svg)](https://agentmods.dev/skills/wot-ui/open-wot/migrate-v1-to-v2)
Your own site
<a href="https://agentmods.dev/skills/wot-ui/open-wot/migrate-v1-to-v2"><img src="https://agentmods.dev/badge/skills/wot-ui/open-wot/migrate-v1-to-v2/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-v1-to-v2

Your own site · 80×15
<a href="https://agentmods.dev/skills/wot-ui/open-wot/migrate-v1-to-v2"><img src="https://agentmods.dev/badge/skills/wot-ui/open-wot/migrate-v1-to-v2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,327 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
  • Socket pass 12 May 2026
  • Snyk pass 12 May 2026
  • 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.00088 $0.02327
Opus 5 $0.00044 $0.01163
Sonnet 5 $0.00018 $0.00465
Haiku 4.5 $0.00009 $0.00233

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

Security

Grade A, and why

migrate-v1-to-v2 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 11d 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-v1-to-v2/SKILL.md · 144 lines

How it starts

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

从 v1 迁移到 v2 技能

本技能用于辅助用户将项目从 Wot UI v1 (wot-design-uni) 迁移到 Wot UI v2 (@wot-ui/ui)。

完整迁移指南:中文 / English


职责边界

  • 扫描 v1 用法、替换包名/路径、迁移组件 API、迁移表单校验体系与内置图标名称、修复不兼容变更。
  • 不负责新建业务页面或重构业务逻辑,仅做最小必要的兼容性替换。
  • 不负责安装依赖,由用户自行在终端执行。

首次交互确认

在开始任何操作前,先向用户确认以下三点(如果上下文已可推断则跳过对应问题):

  1. 安装方式:npm 还是 uni_modules?(影响导入路径和 easycom 配置)
  2. 目标
    • A. 全量迁移(项目尚未升级)→ 按阶段一~七执行
    • B. 升级后修错误(已升级但遇到编译/运行时报错)→ 先读 errors.md 定位问题
  3. 目标平台:H5 / 微信小程序 / 支付宝小程序?(影响样式隔离和 easycom 验证方式)

快速通道

根据用户描述的问题,直接加载对应子文件:

关键词 子文件
错误信息 / 编译报错 / 找不到模块 / is not defined / 升级后异常 errors.md
表单 / Form / schema / zodAdapter / FormRules / 校验 / 必填星号 form.md
包名 / easycom / Volar / vite 插件 / 国际化 / 路径替换 / uni_modules infra.md
Sass / 主题 / Design Token / CSS 变量 / 样式覆盖 / 深色模式 / ConfigProvider styles.md
Dialog / MessageBox / Empty / StatusTip / Cascader / ColPicker / Keyboard / NumberKeyboard / Button / Tag / Radio / Checkbox / Search / Grid / Fab / Badge / Slider / Tabs / Steps / Swiper / Tooltip / Popover / Collapse / Cell / Input / Textarea / PickerView / ImgCropper / CountTo / Segmented components.md
Icon / 图标 / wd-icon / icon / iconClass / activeIcon / inactiveIcon / prefixIcon / suffixIcon / 空图标 components.md 的“图标迁移”与 icons.json

核心变更速查表

类型 v1 v2
npm 包名 wot-design-uni @wot-ui/ui
uni_modules 目录 wot-design-uni wot-ui
弹框组件 wd-message-box wd-dialog
弹框 Hook useMessage useDialog
缺省提示 wd-status-tip wd-empty
多列选择器 wd-col-picker wd-cascader
数字键盘 wd-number-keyboard wd-keyboard
表单校验 rules / FormRules schema / FormSchema
按钮变体 plain / type="text" / type="icon" variant / 图标按钮
按钮危险色 type="error" type="danger"
标签变体 plain variant="plain"
单选/复选形态 shape / inline / cell type / direction / 手动组合 wd-cell
搜索框浅色样式 light variant="light"
GridItem 点击 @itemclick @click
工具函数路径 components/common/util common/util
内置图标名称 v1 图标集合 icons.json 中的人工审核结果迁移

Read the full file on GitHub · 144 lines

Files

What ships with it

6 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. 11d ago First seen · 144 lines · 88 tokens per session scan A 2934e40e877b

Subscribe to this mod's changes

migrate-v1-to-v2 is a skill published in the GitHub repository wot-ui/open-wot (34 stars, last pushed 13d ago), licensed MIT. It adds 88 tokens to every session and 2,327 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-08-30.

Related

Other skills, from other repositories

animate-expo

Build animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and…

emilkowalski/skills · 112 tokens

leanback-to-compose-tv-migration

Provides instructions and architectural patterns for migrating Android TV applications from legacy Leanback UI Toolkit, Android Views, or Support Fragments to Jetpack Compose for TV (androidx.tv). Use this skill for Leanback to Compose migrations, including browse screen, settings screen, authentication screen, login…

android/skills · 151 tokens

maui-data-binding

Guidance for .NET MAUI XAML and C# data bindings — compiled bindings, INotifyPropertyChanged / ObservableObject, value converters, binding modes, multi-binding, relative bindings, fallbacks, and MVVM best practices. USE FOR: setting up compiled bindings with x:DataType, implementing INotifyPropertyChanged or…

dotnet/skills · 180 tokens

expo-brownfield

Framework (OSS). Integrate Expo and React Native into an existing native iOS or Android app. Use for brownfield, embedding a React Native screen in SwiftUI/UIKit or Kotlin, or AAR/XCFramework packaging. Covers isolated and integrated approaches. For building or distributing a purely native app with EAS, use…

expo/skills · 74 tokens

migrate-xml-views-to-jetpack-compose

Provides a structured workflow for migrating an Android XML View to Jetpack Compose. This skill details the step-by-step process, from planning and dependency setup, to theming and layout migration, validation and XML cleanup. Use this skill when you need to migrate an XML View to Jetpack Compose in an Android…

android/skills · 98 tokens

web-haptics

Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.

lochie/web-haptics · 47 tokens