Migrate logo

Migrate

Organization
lightpointventures
migrate

当用户想转换数据格式、CSV 转 JSON、迁移数据库、导入导出数据时使用 -- 在不同格式和系统之间迁移数据

Overview

Publisherlightpointventures
Repositoryclaude-code-starter
Skill namemigrate
Stars
36
Forks
6
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Migrate 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/lightpointventures/claude-code-starter/tree/main/skills/migrate
  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/lightpointventures/claude-code-starter.git /tmp/claude-code-starter
mkdir -p .claude/skills
cp -r /tmp/claude-code-starter/skills/migrate .claude/skills/migrate
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Migrate 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 Migrate 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 Migrate 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.

数据迁移

帮用户在不同数据格式之间转换,或从一个系统迁移数据到另一个系统。

步骤

0. 备份(强制)

在做任何迁移操作之前,必须先备份源数据:

  • 文件:cp source.csv source.csv.bak
  • 数据库:pg_dump / mysqldump / sqlite3 db.sqlite .dump > backup.sql
  • 告知用户备份位置,确认后再继续

1. 确定迁移类型

根据用户需求,走对应的子路径:

(a) 文件格式转换(CSV/JSON/Excel/Parquet 互转)

  • 推荐工具:pandas(Python 通用)、jq(JSON 处理)、csvkit(CSV 命令行工具)
  • 关键:先用 file 或 chardetect 确认源文件编码

(b) 数据库迁移(MySQL -> PostgreSQL、SQLite -> PostgreSQL 等)

  • 推荐工具:pgloader(MySQL/SQLite 到 PostgreSQL)、mysqldump + psql(手动)、Django/Alembic migrations(ORM 项目)
  • 关键:先对比源和目标的 schema 差异(字段类型、索引、约束)

(c) API 数据导入(从外部 API 拉数据存到本地)

  • 推荐:写 Python 脚本,包含分页处理 + rate limiting + 断点续传
  • 关键:先调一页确认数据结构,再跑全量

2. 分析源数据

  • 读取源数据,检查格式和结构
  • 统计数据量(行数、字段数、文件大小)
  • 发现潜在问题(编码、缺失值、格式不一致、重复数据)

3. Dry Run(试运行)

在正式迁移前,先用小样本测试:

试运行结果:从前 100 条数据中,成功转换 98 条,2 条有问题(原因:xxx)。 预计全量迁移 N 条记录,耗时约 X 分钟。 确认继续吗?

用户确认后再执行全量迁移。

4. 执行迁移 + 完整性校验

执行全量迁移,完成后做数据完整性检查:

  • 行数对比:源 vs 目标
  • 关键字段抽样对比(首行、末行、随机几行)
  • 数值型字段的 sum/count 对比

迁移完成。源数据 N 条,目标 N 条,校验通过。 备份文件在:xxx,确认无误后可删除。

遇到问题

  • 编码错误(UnicodeDecodeError / 乱码)? 用 chardetect file.csv 检测实际编码,常见的是 GBK/GB2312 被当成 UTF-8 读取。pandas 用 encoding='gbk' 参数。
  • 迁移中途失败了? 检查错误日志,找到失败的行号。修复问题后从断点继续,不要从头重跑。API 导入建议记录已处理的 offset/page。
  • 迁移后数据数量对不上? 检查:(1) 是否有重复数据被去重,(2) 是否有空行/非法行被跳过,(3) 数据库是否有 unique 约束拒绝了重复记录。
  • 数据库迁移后查询变慢? 检查索引是否迁移过来了,大部分工具不会自动迁移索引,需要手动创建。

Frequently asked questions

What does the Migrate AI skill do?

当用户想转换数据格式、CSV 转 JSON、迁移数据库、导入导出数据时使用 -- 在不同格式和系统之间迁移数据

Why use Migrate on TypingMind?

Because you install it once and use it with any model. Migrate 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 Migrate in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lightpointventures/claude-code-starter/tree/main/skills/migrate. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Migrate?

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 Migrate?

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

Is the Migrate AI skill free?

Yes. It is published on GitHub by lightpointventures under the MIT 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 👇