handoff
End-of-session handoff that captures current state for the next session. Use when ending a work session, switching context, or before a long break.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
End-of-session handoff that captures current state for the next session. Use when ending a work session, switching context, or before a long break.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Dispatch Codex to review all unreviewed repository work, then verify its correlated findings ticket or clean result. Use when requesting an independent Codex review, auditing all changes, checking work since the last review, or waiting for Codex findings. Trigger: dispatch codex review, independent review, review all changes, check codex findings, run review agent.
Always-on: when a project has tickets, work the frontier (first unblocked open ticket), mark done, update plan status.
Incremental and full-history repository review with resumable adoption batches. Use when reviewing new work, initializing review tracking, reviewing all work to date, resuming historical review, inspecting unreviewed commits, or reviewing changed tickets. Trigger: review new work, adopt repository, review all history, resume review, review marker, unreviewed commits.
Consolidate project artifacts — promote scratch to memory, deduplicate memory, process decisions, organize scripts, update steering/skills accuracy. Use periodically or when the project feels cluttered.
Run and interpret crew-research evals — run.sh flags, scores.jsonl fields, activation TPR/FPR verdicts, resuming interrupted runs. Use when running evals, reading eval results, diagnosing a failing definition, or resuming a dead run. Trigger: run the evals, eval results, scores.jsonl, activation test, TPR, delta threshold, resume the run, skip-completed, known gap.
Best practices for writing tool and helper scripts. Use when creating bash scripts, automation tools, CLI utilities, or any executable that will be run repeatedly by humans or agents.
| name | handoff |
| description | End-of-session handoff that captures current state for the next session. Use when ending a work session, switching context, or before a long break. |
| metadata | {"type":"process","invocation":"user-only","practice":null,"params":{"ephemeral_path":".scratch","handoff_file":"HANDOFF.md","glossary_path":".memory/CONTEXT.md"}} |
Write a handoff document that lets the next session continue without re-discovery.
{{params.ephemeral_path}}/{{params.handoff_file}}git rev-parse --short HEAD to get base_commit---
created_at: {ISO 8601 with offset}
base_commit: {short SHA}
handoff_key: {workstream-slug}
---
# Handoff
## Objective
## Constraints
## Prior Decisions
## Current State
## Next Steps
## Fog (if applicable)
## Evidence
Current State: Reference PLAN.md for work status rather than restating it. Capture only what the plan doesn't know: what you were mid-way through, what's in your head that isn't in a file yet. Never duplicate ticket status or task graph position — those live in the plan.
Fog section: If the project has a map (proposal-plan.md) or unresolved questions from a grill session, note what CANNOT yet be planned — decisions that surfaced but remain unclear. This tells the next session where the frontier is vs what's still in fog.
handoff_key: short slug for the workstream (e.g., auth-flow, eval-harness)handoff_keyVerify: (1) someone with NO context can continue, (2) next steps are actionable, (3) file paths are accurate.
Before finalizing, review the session for promotable artifacts:
.memory/adr/NNNN-slug.md.scratch/ artifacts future sessions need? → .memory/specs/.scratch/ files? Note for cleanup.tkt sync-plan --check to verify plan.md reflects reality.Scan the session for findings that should propagate. Nudge when:
.memory/specs/.tickets/ entryAdd a ## Recommended Updates section (after Next Steps) if applicable:
## Recommended Updates
- [ ] skill(foo): add X — we hit this gap during Y
- [ ] AGENTS.md: add `mise run bar` to Commands
- [ ] .tickets/NN-slug.md: new ticket for Z (out of scope this session)
Skip if the session produced no artifact-worthy findings.
If recall is on PATH, persist qualifying decisions:
recall add "decided X because Y" --room decisions --type decision
Qualifies if: hard-to-reverse OR matters beyond next session. Don't persist file paths or implementation details (those are in HANDOFF.md).