用途:把 .turbo/ 中遗留的 plan、shell 与 prompt plan 索引文件迁移到当前布局。未展开的 shell 放入 .turbo/shells/,frontmatter 使用 spec: 与 depends_on:;plan 放入 .turbo/plans/,使用必需的 status: 及可选的 spec: 表示来源。
主要能力:按五步执行。一是扫描分类旧文件,包括 .turbo/prompt-plans/.md、.turbo/prompts.md、.turbo/plans/.md 和 .turbo/shells/*.md,区分未展开 shell、已展开 plan、普通 plan 与已迁移文件。二是迁移 prompt plan 索引,内联提示转为 .turbo/plans/ 下的 plan,引用独立 shell 文件的按未展开或已展开分别迁移,并映射状态(done→done,pending/in-progress→ready)。三是处理 .turbo/plans/ 中剩余文件,把未展开 shell 移到 .turbo/shells/,就地规范化已展开 plan 和 shell 的 frontmatter。四是规范化剩余普通 plan,无 frontmatter 或旧 type: plan 的补上 status: done。五是清理 .turbo/prompt-plans/ 与 .turbo/prompts.md 并输出汇总报告。
规则与限制:不修改 .turbo/specs/ 下的 spec 文件;不覆盖已有正确 frontmatter 的目标文件;添加或规范化 frontmatter 时保留原有正文,不破坏内容;索引引用的 shell 缺失时报告并跳过;索引中的 spec 路径无法解析时仍迁移文件并在报告中注明;迁移文件不写入 type:,不向 plan 写入 depends_on:;迁移不产生 status: draft。