Back to skills
SKILL.md
Rtd Migrate
ASecurity实时 SQL 任务迁移(Codex 入口,等价于 /migrate)
- 8 stars
- 0 votes
- 0 copies
- 0 views
- Added December 5, 2026
Security analysis
100/100npx -y skills add MrSuiChuan/realtime-data-pipeline --skill rtd-migrate --agent claude-codeAre you the author of Rtd Migrate?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mrsuichuan-rtd-migrate)---
name: rtd-migrate
description: 实时 SQL 任务迁移(Codex 入口,等价于 /migrate)
---
# rtd-migrate(Codex 版 `/migrate`)
> 本文件由 `tools/build_codex_surface.py` 从 `commands/migrate.md` 生成,请勿手改。
> 改流程请改命令源文件后重跑生成器。
> 命令里的 `py -3` 是 Windows 写法;macOS/Linux 换成 `python3`。
# rtd-migrate — 实时 SQL 任务迁移
流程见 `workflows/runbook-migration.md`。默认**停在编译通过**。
> **强制前置**:先跑 `/rtd-start` 选择 `auto`/`manual` 并创建 Goal。
> `manual` 下每个阶段和启动三件套仍需人工确认;`auto` 下按 Goal 执行,但源任务停止与恢复点证据仍要留。
## 步骤
1. 定位源任务并预览(长内容分级读取,用总行数校验完整性);
2. 一次性确认三项参数:目标项目(默认同项目)、新名称(默认原名 + `_migrated`)、目录(用目录搜索,不用名称搜索反查);
3. 一条命令完成迁移到编译(执行器负责分片与写入,Skill 不自己拼内容);失败用返回的阶段与目标 ID 续查,不另起第二个目标;
4. 要提交/发布/启动,另外问。
## 启动门(最严)
```
py -3 .rtd/engine/rtd.py gate set --name source_stopped --user-confirm "<用户原话>"
py -3 .rtd/engine/rtd.py gate set --name reset_time --user-confirm "<用户原话>" --value "<用户给的时间>"
py -3 .rtd/engine/rtd.py gate set --name start_confirmed --user-confirm "<用户原话>"
```
三条缺一即停:源任务未确认停止 → 最多迁到编译成功;恢复点必须用户给,引擎会拒绝"看起来就是当前时间"的值。
跨会话重新启动时**重新确认**,不沿用上一会话的记忆。
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.