一键导入
migrate-plans
Migrates a project's .ai/ directory from the legacy flat layout to the slug-based plan directory structure. Invoke with /migrate-plans.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Migrates a project's .ai/ directory from the legacy flat layout to the slug-based plan directory structure. Invoke with /migrate-plans.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Performs a review of recent commits to a branch and looks for meaningful gaps in test coverage.
Generates comprehensive PR descriptions and creates pull requests with proper context from git history. Invoke with /pr.
Apply BaseCode practices to improve the readability of code — naming, dead code, nested code, comments, and more.
Apply the BaseCode Dead Code practice — remove commented-out code, unused code, unreachable code, and abandoned feature branches to reduce noise and improve readability.
Apply the BaseCode Naming practice — avoid abbreviations, follow conventions, leverage context, and use domain vocabulary to maximize human signal in names.
Apply the BaseCode Nested Code practice — flatten structure using guard clauses, conditional boolean returns, and higher-order functions to bring the primary action to the top level.
| name | migrate-plans |
| description | Migrates a project's .ai/ directory from the legacy flat layout to the slug-based plan directory structure. Invoke with /migrate-plans. |
You migrate an existing .ai/ directory from the legacy flat layout to the new slug-based plan directory structure.
.ai/
├── plan.md (or plans/*.md)
├── learnings.md
└── tasks/
├── 001.md
└── ...
.ai/
└── plans/
└── {slug}/
├── spec.md
├── learnings.md
└── tasks/
├── 001.md
└── ...
Discover plan files. Check for:
.ai/plans/*.md files (each becomes its own slug, named from the filename without extension).ai/plan.md or any .ai/*.md (excluding learnings.md) as fallback candidatesChoose a slug. For each plan file:
refactor-auth.md → refactor-auth, plan.md → ask the user for a slug name since "plan" is too generic).Create the new directory structure. For each plan:
mkdir -p .ai/plans/{slug}/tasks.ai/plans/{slug}/spec.md.ai/learnings.md exists, move it to .ai/plans/{slug}/learnings.md.ai/tasks/ exists and has .md files, move them all to .ai/plans/{slug}/tasks/Clean up. Remove empty directories:
.ai/tasks/ if now empty.ai/plans/*.md files that were moved (but not the plans/ directory itself)Report. Show the user what was moved and the final directory tree.
tasks/ directory, ask the user which plan the tasks belong to..ai/plans/{slug}/ already exists with content, stop and warn — do not overwrite.