一键导入
tp-session-restore
Restore session context from handoff.md in the design's directory at the start of a new conversation. Gives you continuity without re-explaining.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Restore session context from handoff.md in the design's directory at the start of a new conversation. Gives you continuity without re-explaining.
用 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-session-restore |
| description | Restore session context from handoff.md in the design's directory at the start of a new conversation. Gives you continuity without re-explaining. |
| argument-hint | [design-name] |
Pick up where the last session left off by loading the handoff and design artifacts.
Argument: {design-name} (optional) — must match an existing directory under three-pillars-docs/tp-designs/ (active) — or, if already completed, under three-pillars-docs/completed-tp-designs/.
If no argument is given, read the first line of .claude/last-design (project root) for the most recently active design name. This file is an MRU stack — one design per line, most recent first. If the file doesn't exist or is empty, list available designs under three-pillars-docs/tp-designs/ and ask the user which one to restore.
Orchestration fallback (no argument only). Top-level fleet / cross-design sessions save their handoff under the reserved orchestration slot (three-pillars-docs/tp-designs/orchestration/, see its README.md), not under any one design. So when the name came from the MRU — no explicit argument — and the resolved design has no handoff.md of its own (e.g. it is seed-only, or its real handoff lives on a worktree branch), but orchestration/handoff.md exists, restore orchestration instead. An explicit {design-name} argument always wins: never override it with the fallback.
Run first-run preflight per skills/_shared/first-run.md.
Resolve the design name: Use the argument if given, otherwise read the first line of .claude/last-design. If neither is available, list designs and ask.
Resolve the design directory, in order: first three-pillars-docs/tp-designs/{design-name}/ (active). If that's absent, fall back to three-pillars-docs/completed-tp-designs/{design-name}/ (completed) — mirroring /tp-guide, which already scans both dirs. This completed-dir lookup fires for both an explicit {design-name} argument and an MRU-resolved name (contrast the orchestration fallback in step 3, which is MRU-only).
Read handoff.md from the design directory.
completed-tp-designs/{design-name}/ in step 2, frame it as COMPLETED. Completed status is signaled by the resolution source — the dir resolved under completed-tp-designs/ — keyed off design.md's ever-present completed: YYYY-MM-DD frontmatter stamp (written at /tp-design-complete step 6d). Read the completed: date and the surviving artifacts (design.md, plan.md, review.md, etc.) regardless of whether a handoff exists:
handoff.md is present, it may carry the dual archive banner (archived: true frontmatter / the 📦 Archived handoff blockquote, added at /tp-design-complete step 6d1). Treat the banner as enrichment — extra session-prose context surfaced when present — never as the signal that the design is completed; the resolution source + completed: stamp already established that.handoff.md is missing (the dominant case for legacy archived designs, which deleted the handoff under the old pre-banner behavior), there's nothing to enrich with — still frame the design as completed via its completed: stamp and surviving artifacts. Never print "no prior session to restore" for a completed design, with or without a handoff.lock.json phase == "cleanup-pending", nudge the user toward /tp-post-merge {design-name} to finish teardown once the completion PR has merged.tp-designs/{design-name}/ dir and handoff.md exists, continue to step 4.three-pillars-docs/tp-designs/orchestration/handoff.md. If it exists, the MRU-top design has no session of its own but a cross-design orchestration handoff does — switch the target to orchestration, read that handoff.md, and tell the user you fell back and why (e.g. "audit-council-fanout has only a seed — restoring the orchestration fleet handoff, which references it"). Continue to step 4 against the orchestration directory.tp-designs/ → completed completed-tp-designs/ → the orchestration fallback (which stays MRU-only and fires only when neither active nor completed resolved). An explicit {design-name} argument always wins over the MRU at every step.detect_unarchived.py (step 7.5) scans only active tp-designs/*/, so a design that resolved from completed-tp-designs/ here is structurally invisible to that scan. Belt-and-suspenders, not a real mitigation, but worth stating so the two surfaces are never confused.Read the sibling artifacts that exist in the design directory (design.md, detailed-design.md, plan.md, review.md) — quick scan for context, not deep-dive. (The orchestration slot has none of these — that's expected; its handoff.md is the whole record, so rely on it and move on.)
Read the files mentioned in the handoff's State and Next sections (just a quick scan — don't deep-dive unless something looks wrong).
Read Current Focus: If three-pillars-docs/product_roadmap.md exists and has a ## Current Focus table, read it. Use this to contextualize the design's status within the broader project — is it the top priority? Is it blocking other work?
Inspect the lock per skills/_shared/collaboration.md. If lock.json exists and its owner or branch does not match the current user / current git branch, surface this in the status update ("Heads up: {name} is locked by {owner} on {branch} — you'll need --force-takeover on the next lock-enforcing skill to claim it"). Do not block — session-restore is read-only.
7.5. Closeout nudge (read-only, fail-open): run python3 "$TP_ROOT"/skills/_shared/detect_unarchived.py --repo . --exclude {design-name} --slugs-only (exclude the design being restored — it's the active work, not drift). Any slugs returned are other designs whose three-pillars-docs/tp-designs/{slug}/ dir carries implementation evidence but has not been archived to completed-tp-designs/ — closeout pending. Mention them in the status (step 8) as "closeout pending — run /tp-design-learn {slug} (or /tp-spike-learn) then /tp-design-complete {slug}"; an unarchived merged design hard-fails the framework's CI check on {default}. Non-blocking, fail-open — the helper always exits 0; a detector error yields no nudge and never breaks the restore. One detector, two surfaces: shared with the hard CI check.
Present a brief status to the user:
Ask if they want to continue where they left off or pivot to something else.
{design-name} per skills/_shared/validate-name.md.skills/_shared/collaboration.md. Restore is read-only and must not block.