handoff
Generate a session pickup prompt — summarizes current state so the next session can resume seamlessly
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-21
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- args
- notes
- name
- handoff
- description
- Generate a session pickup prompt — summarizes current state so the next session can resume seamlessly
02 资源文件 72
- 参考文档atdd-checklist-template.md9.9 KB
- 参考文档checklist.md13.9 KB
- 其他customize.toml1.5 KB
- 参考文档instructions.md1.2 KB
- 参考文档resources/knowledge/adr-quality-readiness-checklist.md24.8 KB
- 参考文档resources/knowledge/api-request.md16.7 KB
- 参考文档resources/knowledge/api-testing-patterns.md26.3 KB
- 参考文档resources/knowledge/auth-session.md15.8 KB
- 参考文档resources/knowledge/burn-in.md6.4 KB
- 参考文档resources/knowledge/ci-burn-in.md22.0 KB
- 参考文档resources/knowledge/component-tdd.md15.8 KB
- 参考文档resources/knowledge/contract-testing.md38.8 KB
- 参考文档resources/knowledge/data-factories.md15.0 KB
- 参考文档resources/knowledge/email-auth.md24.0 KB
- 参考文档resources/knowledge/error-handling.md22.4 KB
- 参考文档resources/knowledge/feature-flags.md22.7 KB
- 参考文档resources/knowledge/file-utils.md13.4 KB
- 参考文档resources/knowledge/fixture-architecture.md12.1 KB
- 参考文档resources/knowledge/fixtures-composition.md11.0 KB
- 参考文档resources/knowledge/intercept-network-call.md13.2 KB
- 参考文档resources/knowledge/log.md11.0 KB
- 参考文档resources/knowledge/network-error-monitor.md12.0 KB
- 参考文档resources/knowledge/network-first.md15.9 KB
- 参考文档resources/knowledge/network-recorder.md15.1 KB
- 参考文档resources/knowledge/nfr-criteria.md26.0 KB
- 参考文档resources/knowledge/overview.md9.4 KB
- 参考文档resources/knowledge/pact-broker-webhooks.md13.1 KB
- 参考文档resources/knowledge/pact-consumer-di.md11.7 KB
- 参考文档resources/knowledge/pact-consumer-framework-setup.md35.0 KB
- 参考文档resources/knowledge/pact-mcp.md8.8 KB
- 参考文档resources/knowledge/pactjs-utils-consumer-helpers.md15.7 KB
- 参考文档resources/knowledge/pactjs-utils-overview.md11.3 KB
- 参考文档resources/knowledge/pactjs-utils-provider-verifier.md17.8 KB
- 参考文档resources/knowledge/pactjs-utils-request-filter.md7.1 KB
- 参考文档resources/knowledge/pactjs-utils-zod-to-pact.md11.5 KB
- 参考文档resources/knowledge/playwright-cli.md14.6 KB
- 参考文档resources/knowledge/playwright-config.md21.0 KB
- 参考文档resources/knowledge/probability-impact.md18.8 KB
- 参考文档resources/knowledge/recurse.md12.6 KB
- 参考文档resources/knowledge/risk-governance.md20.5 KB
- 参考文档resources/knowledge/selective-testing.md21.3 KB
- 参考文档resources/knowledge/selector-resilience.md19.3 KB
- 参考文档resources/knowledge/test-healing-patterns.md20.9 KB
- 参考文档resources/knowledge/test-levels-framework.md14.4 KB
- 参考文档resources/knowledge/test-priorities-matrix.md11.2 KB
- 参考文档resources/knowledge/test-quality.md24.0 KB
- 参考文档resources/knowledge/timing-debugging.md13.7 KB
- 参考文档resources/knowledge/visual-debugging.md17.1 KB
- 参考文档resources/knowledge/webhook-module-setup.md5.7 KB
- 参考文档resources/knowledge/webhook-providers.md6.3 KB
- 参考文档resources/knowledge/webhook-risk-guidance.md6.3 KB
- 参考文档resources/knowledge/webhook-template-matchers.md5.9 KB
- 参考文档resources/knowledge/webhook-testing-fundamentals.md3.1 KB
- 参考文档resources/knowledge/webhook-timeout-error.md5.6 KB
- 参考文档resources/knowledge/webhook-waiting-querying.md6.9 KB
- 资产文件resources/tea-index.csv11.0 KB
- 参考文档steps-c/step-01-preflight-and-context.md8.4 KB
- 参考文档steps-c/step-01b-resume.md2.9 KB
- 参考文档steps-c/step-02-generation-mode.md3.5 KB
- 参考文档steps-c/step-03-test-strategy.md2.8 KB
- 参考文档steps-c/step-04-generate-tests.md10.1 KB
- 参考文档steps-c/step-04a-subagent-api-failing.md11.1 KB
- 参考文档steps-c/step-04b-subagent-e2e-failing.md8.0 KB
- 参考文档steps-c/step-04c-aggregate.md10.7 KB
- 参考文档steps-c/step-05-validate-and-complete.md3.6 KB
- 参考文档steps-e/step-01-assess.md1.2 KB
- 参考文档steps-e/step-02-apply-edit.md1.4 KB
- 参考文档steps-v/step-01-validate.md1.8 KB
- 参考文档validation-report-20260127-095021.md2.0 KB
- 参考文档validation-report-20260127-102401.md3.7 KB
- 参考文档workflow-plan.md483 B
- 参考文档workflow.yaml1.4 KB
03 SKILL.md 正文
Generate a handoff summary for the next session. The optional notes argument lets the user add specific context (e.g., "was debugging the auth flow" or "next step is PR review").
See
.claude/team/lifecycle.md§ Session Lifecycle for the canonical skill order and preconditions.
Note: all repo paths in bash blocks below are rooted at
$REPO_ROOTto avoid cwd drift when the skill is invoked from a worktree or child-repo subdirectory (#149).
Instructions
1. Gather current state
Collect the following in parallel:
Git state:
REPO_ROOT="$(git rev-parse --show-toplevel)"
git -C "$REPO_ROOT" status
git -C "$REPO_ROOT" log --oneline -10
git -C "$REPO_ROOT" branch --show-current
Open PRs across all repos:
for repo in noorinalabs-main noorinalabs-isnad-graph noorinalabs-user-service noorinalabs-deploy noorinalabs-design-system noorinalabs-landing-page noorinalabs-data-acquisition; do
echo "--- $repo ---"
gh pr list --repo "noorinalabs/$repo" --state open --json number,title,author,headRefName --limit 5 2>/dev/null
done
Wave/phase status:
- Read
cross-repo-status.jsonif it exists - Check for active wave labels on open issues
Ontology staleness:
- Read
ontology/checksums.json— count dirty files
Recent issues:
gh issue list --repo noorinalabs/noorinalabs-main --state open --limit 10 --json number,title,labels
2. Summarize the conversation
Review what was accomplished in this session:
- What tasks were completed
- What decisions were made
- What was discussed but not acted on
- Any blockers or open questions
3. Write the handoff
Write the handoff to two locations so it's available regardless of how the next session starts:
Location 1: Project memory (auto-loaded at session start)
Write to the project memory directory as session_handoff.md:
---
name: Session handoff
description: Pickup prompt from previous session — read this first to resume work
type: project
---
## Last session: {date}
### What was done
- {bullet list of completed work}
### Decisions made
- {key decisions and their rationale}
### Current state
- **Branch:** {current branch}
- **Wave/phase:** {active wave and phase}
- **Open PRs:** {count and key PRs}
- **Ontology:** {current or N files behind}
- **Open issues:** {count, highlight any blockers}
### What's next
- {prioritized list of next steps}
- {any open questions for the user}
### User notes
{notes argument if provided, or "None"}
Location 2: Console output
Also print the full handoff summary to the conversation so the user can copy/paste it into a different session or machine if needed.
4. Update memory index
Add or update the handoff entry in MEMORY.md:
- [Session handoff](session_handoff.md) — Pickup from {date}: {one-line summary}
If a previous handoff entry exists, replace it (there should only ever be one).
5. Confirm
Tell the user:
- The handoff is saved and will be auto-loaded in the next session on this machine
- If they're switching machines, they can paste the console output into the new session
- The handoff will be overwritten next time
/handoffruns
What remains manual
- The user must invoke
/handoffbefore ending a session — it does not run automatically - Cross-machine handoff requires copy/paste of the console output
04 同仓库更多 Skills
wave-wrapup
Finalize a wave — PR review, merge sequencing, issue cleanup, worktree cleanup, and handoff to retro
wave-start
Initialize a new wave — worktree cleanup, branch creation, label setup, status file update
wave-scope
Reconcile declared-vs-labeled wave scope between /wave-retro and /wave-kickoff — collect dispositions, fold in retro carry-forwards and memory must-includes, and refresh the meta-issue
wave-retro
Automated wave retrospective — PR analysis, assessments, trust matrix updates, feedback log, charter change proposals
wave-kickoff
Automated wave planning — branch creation, label management, issue labeling, kickoff comments, and execution plan
wave-audit
Audit open issues against merged PRs — find and close orphaned issues with proper comments