一键导入
tp-migrate
Migrate a three-pillars repo from the legacy docs/tdd-* layout to the current three-pillars-docs/tp-* layout. Wraps skills/_shared/migrate.py.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Migrate a three-pillars repo from the legacy docs/tdd-* layout to the current three-pillars-docs/tp-* layout. Wraps skills/_shared/migrate.py.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Convene the Council of High Intelligence — multi-persona deliberation with historical thinkers for deeper analysis of complex problems.
Design Audit — multi-angle review of a detailed design against the actual codebase before implementation.
Mark a TDD design as complete — stamp completion, archive handoff.md, archive to three-pillars-docs/completed-tp-designs/, and optionally commit + open a PR merging the design branch back to the base branch.
Scaffold architecture.md, product_roadmap.md, and known_issues.md in three-pillars-docs/ from codebase analysis. Creates the three project docs that the TDD pipeline reads for context. Assumes three-pillars-docs/vision.md already exists — if missing, recommends /tp-setup first.
Read project docs and propose what to do next. Surfaces highest-impact work from roadmap, known issues, and in-flight designs.
Final audit of a completed plan — verify the full implementation against both design.md and detailed-design.md.
| name | tp-migrate |
| description | Migrate a three-pillars repo from the legacy docs/tdd-* layout to the current three-pillars-docs/tp-* layout. Wraps skills/_shared/migrate.py. |
| argument-hint | [--repo {path}] |
Move a repo from the legacy docs/tdd-* layout to the current three-pillars-docs/tp-* layout. This skill is a thin wrapper around skills/_shared/migrate.py — it handles the dry-run preview and user confirmation, then delegates the actual work to migrate.py --apply.
Argument: --repo {path} (optional) — defaults to current working directory.
migrate.py --apply refuses to proceed otherwise.release.sh).Run first-run preflight per skills/_shared/first-run.md. Exception: this skill is the explicit exception to first-run's old-layout-detected refusal — the refusal does NOT apply when the calling skill is tp-migrate, since the whole point of this skill is to migrate. Branch-protection and release checks still apply normally.
Show the plan: run python3 "$TP_ROOT"/skills/_shared/migrate.py --dry-run --repo {repo} and print its output verbatim.
Branch on the dry-run output:
Confirm with the user: ask "Apply this migration plan? (yes/no)". Stop on no.
Apply the migration: run python3 "$TP_ROOT"/skills/_shared/migrate.py --apply --repo {repo}. This delegates everything to migrate.py — moves, rewrites, the new commit, and the config stamp. This skill itself must not stamp the migration field; ownership of that field belongs to migrate.py alone.
Read back and report:
.three-pillars/config.json and confirm migration.completed_at is non-null and migration.from_layout is "docs+tdd"."Migrated repo in commit {sha}. Run /tp-guide to see what's next."tp-* skills, this one operates on the whole repo, not a single design directory, so the skills/_shared/validate-name.md convention does not apply here.migrate.py --apply is the sole authority for the migration completion field. This skill never touches it directly — it only reads back to confirm.tdd/{name} git branches or rewrites lock.json branch fields. Those stay as historical record until each design completes. This skill does not override that behavior.--auto is passed.