# 迁移代码文档 · Doc Migrator

> 把旧格式代码文档安全迁移到新仓库/新平台:盘点引用、改写路径与版本标注,带回滚方案与遗漏检查。 Migrate legacy docs safely to a new repo or platform: inventory references, rewrite paths, tag versions, and get a rollback plan plus a gap-check list.

迁移代码文档 · Doc Migrator is a paid AI agent skill on Agensi by 才下啦, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [才下啦](https://www.agensi.io/creators/caixiala)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Version: 1.0
- Last updated: 2026-09-04
- Security: scan passed (2026-09-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/doc-migrator
- Tags: documentation, technical-writing, code-migration, system-analysis

## About this skill

### 它解决什么问题 · The problem

代码文档散落在旧 wiki、旧仓库和本地笔记里，换平台时最容易丢链接、丢图。这个技能把迁移做成可回滚的流程，先盘点再搬运，避免文档断链和版本错乱。

Docs scattered across old wikis, repos, and local notes lose links and images when platforms change. This skill turns migration into a rollback-safe process: inventory first, then move, so nothing breaks or gets lost.

### 这个技能做什么 · What it does

它先收集旧文档的位置、格式与引用关系，再输出分步迁移方案：哪些直接搬、哪些要改写链接、哪些需要人工确认，并附迁移后抽查清单与回滚步骤。

It collects locations, formats, and reference links first, then outputs a step-by-step plan: what to move as-is, what needs link rewrites, and what needs human review — plus a post-migration spot-check list and rollback steps.

### 为什么比裸提示词强 · Why it beats raw prompts

- 先盘点引用关系再动手，减少断链 / Inventory references before moving to cut broken links
- 每一步都有验收标准，搬没搬对一目了然 / Every step has an acceptance check, so mistakes are visible
- 自动标出图片、代码块等高风险内容 / Auto-flags high-risk content like images and code blocks
- 带回滚方案，失败时能退回原状 / Includes a rollback plan to restore the original state

### 典型用例 · Typical use cases

- 团队 wiki 迁移到 Git 仓库文档 / Migrating team wikis into Git-based docs
- README 等文档从老仓库迁到新仓库 / Moving READMEs and docs between repositories
- 本地笔记批量转成项目文档 / Converting local notes into project documentation
- 文档站换域名后的路径批量改写 / Rewriting paths in bulk after a domain change

### 局限 · Limitations

输出迁移方案与检查清单，不执行实际的服务器或仓库操作；批量移动文件仍需你在工具中完成。

It delivers plans and checklists but does not run server or repository operations; bulk file moves still need to be done in your tools.

## Known limitations

Requires specific user input for target audience and format. Works best in interactive chat sessions to resolve missing data points.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the 迁移代码文档 · Doc Migrator skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### 为什么使用这个技能比手动复制粘贴文档更安全？

它专注于识别和维护文档间的引用关系。该技能会先扫描旧文档的链接、图片引用和代码块依赖，生成一份详细的“引用地图”，确保在迁移过程中路径能得到正确改写，防止出现常见的 404 错误。

### 这个技能支持哪些 AI 平台或 Agent 工具？

该技能旨在提供逻辑支持，与主流 AI 助手（如 ChatGPT, Claude, Gemini）兼容。只需将你的文档结构信息或内容片段输入给助手，它即可根据预设逻辑输出迁移方案和检查清单。

### 购买后我会获得哪些具体内容？

购买后，你将获得该技能的专用配置指令集、结构化的迁移工作流模板以及一份包含回滚策略的验收清单，帮助你从零开始管理整个文档迁移生命周期。

### 它会自动帮我修改并提交代码仓库里的文件吗？

出于安全性考虑，该技能不直接访问你的服务器或私有仓库。它通过分析你提供的信息生成执行方案和脚本建议，最终的物理移动操作需由你在本地或受控环境中执行。

### 我的文档目前在旧版 Wiki 里，能用它迁移到 GitHub/GitLab 的 Markdown 文档吗？

非常适合。该技能特别擅长处理从非结构化 wiki 到结构化 Git 文档的转换，它会指导你如何重新组织目录结构，并自动标出需要特别标注的版本信息。

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
