Migrate component doc

From wot-ui/wot-ui · View interactive version

Migrate component doc is an AI agent skill from the GitHub repository wot-ui/wot-ui. 迁移组件 Markdown 文档到新规范。用户明确要求迁移文档结构、重排 Demo 章节、合并 Attributes/Options 列、迁移最低版本标记或升级旧文档格式时调用;不用于仅做一致性核对。

How to use this skill

Skill file

组件文档迁移技能

本技能用于将组件文档迁移到统一新规范,覆盖 API 对齐、Demo 结构统一、Attributes/Options 表结构迁移与最低版本标记迁移。

默认遵循 wot-ui-component-baseline 中的共享约束。

何时使用

何时不要使用

以上场景应优先使用 check-doc-component-consistency。

目标输出

核心规则

1) API 一致性核对

2) Demo 顺序与分组规范

3) Attributes / Options 表迁移

执行步骤

  1. 识别目标组件与文档文件路径。
  2. 核对源码 API(props/emits/slots/methods)与文档章节差异。
  3. 以对应 demo 页面与组件源码能力为基准抽取示例,再保留组件介绍性章节,按 create-demo-page 基线与组件语义重排 Demo 章节顺序与命名,并按“vue/html + ts”成对补齐示例。
  4. 迁移 Attributes/Options 表:列合并、最低版本迁移到参数列。
  5. 应用版本标记约定(例如 ^(1.3.6))。
  6. 运行诊断与文档构建验证,输出剩余问题。

验收清单

示例触发语句

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.