用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill resume-handoff命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
LLM token logprobs and calibration. Per-decision confidence, ECE, Brier, reliability diagrams, low-confidence triage.
Analyze LLM token logprobs and calibration. Use for per-decision confidence, ECE, Brier scores, reliability diagrams, and low-confidence triage.
回顾最近 N 天的 Claude Code 使用记录——扫描原始会话数据,按主题分组汇总"我都做了什么",并从个人操作系统视角输出模式、风险与增删建议。当用户说 /recap、"看看我这几天做了什么"、"回顾一下我最近的会话"、"这两天我用 claude 干了啥"、"活动回顾" 时使用。
基于 SOC 职业分类
正在显示 SKILL.md
| name | resume-handoff |
| description | Resume work from a handoff, checkpoint, or finalize artifact |
Resume work from a previous session's artifact (handoff, checkpoint, or finalize). These artifacts are YAML files in thoughts/shared/handoffs/ created by /handoff, /checkpoint, or /finalize commands.
Artifacts are YAML files with frontmatter:
---
schema_version: "1.0.0"
mode: handoff | checkpoint | finalize
date: 2026-01-14T01:23:45.678Z
session: session-folder-name
outcome: SUCCEEDED | PARTIAL_PLUS | PARTIAL_MINUS | FAILED
primary_bead: bead-id # required for handoff/finalize
---
goal: What the session accomplished
now: Current focus / what to do next
next:
- Step 1
- Step 2
done_this_session:
- task: Description
files: [path1, path2]
continuation_prompt: |
Instructions for resuming
/resume-handoff <path-to-artifact.yaml>Read the artifact immediately. Skip discovery.
/resume-handoff <bead-id>Find artifacts related to that bead. First search filenames and directory names:
find "thoughts/shared/handoffs" -name "*.yaml" 2>/dev/null | grep -i "<bead-id>" | sort -r | head -20
If no match by filename/directory, search inside YAML frontmatter:
grep -rl "primary_bead.*<bead-id>" "thoughts/shared/handoffs/" 2>/dev/null
Use the most recent match (by date prefix in filename, e.g. 2026-01-21).
/resume-handoffDiscover and list available artifacts. Do NOT just ask the user for a path.
Run this discovery script:
python3 - <<'PYEOF'
import os, re, pathlib
project = os.environ.get("CLAUDE_PROJECT_DIR") or os.environ.get("CODEX_PROJECT_DIR") or os.getcwd()
root = pathlib.Path(project) / "thoughts" / "shared" / "handoffs"
if not root.exists():
print("NO_HANDOFFS_DIR")
raise SystemExit
artifacts = []
for yaml_file in root.rglob("*.yaml"):
# Skip events/ subdirectory
if "events" in yaml_file.parts:
continue
try:
text = yaml_file.read_text()
# Parse frontmatter
match = re.search(r"^---\n(.*?)\n---", text, re.DOTALL)
if not match:
continue
front = {}
for line in match.group(1).splitlines():
if ":" in line and not line.startswith(" "):
key, _, val = line.partition(":")
front[key.strip()] = val.strip().strip('"')
# Mode fallback: frontmatter → status field → filename → unknown
mode = front.get("mode") or front.get("status", "")
if not mode:
fname = yaml_file.stem.lower()
for m in ("handoff", "checkpoint", "finalize"):
if m in fname:
mode = m
break
:
mode =
= front.get(, )
bead = front.get(, )
outcome = front.get(, )
body = text[match.end():]
goal_match = re.search(r, body, re.MULTILINE)
goal = goal_match.group(1).strip() goal_match
artifacts.append({
: str(yaml_file),
: mode,
: [:16],
: bead,
: outcome,
: goal[:80],
})
except Exception:
not artifacts:
()
raise SystemExit
artifacts.sort(key=lambda a: a[] or , reverse=True)
i, a enumerate(artifacts[:10]):
bead_str = f a[]
(f)
(f)
(f)
()
PYEOF
Present the results and ask which one to resume from (even if only one — let the user confirm).
Tip for user: "You can also invoke directly: /resume-handoff thoughts/shared/handoffs/<session>/<filename>.yaml"
Note: Discovery only finds .yaml artifacts. Older .md format artifacts are not listed but can be opened by direct path.
mode — handoff, checkpoint, or finalizeprimary_bead — the bead this work is tied tooutcome — how the previous session endeddate — when it was createdgoal — what the session was working onnow — what the next session should focus onnext — ordered list of next stepsdone_this_session — what was completed (with file references)blockers — anything blocking progressquestions — unresolved questionsdecisions — decisions made and rationaleworked / failed — what worked and what didn'tcontinuation_prompt — specific instructions for resumingfiles_to_review — files worth examining with notesgit — branch, commit, remote infobd show <primary_bead>
Check bead status. If the bead is closed, note that — the user may want to reopen it or create a new bead.
If the bead is open but not in_progress:
bd update <primary_bead> --status=in_progress
Check git state:
Check referenced files:
done_this_session and files_to_review still exist?Check for related specs (if the goal references a feature):
specs/ for related spec/plan/tasks filesRead critical files mentioned in:
files_to_review (with their notes)continuation_prompt referencesdone_this_session file lists (skim for context)Do NOT use sub-agents for reading these files — read them directly to maintain context.
Present a clear summary to the user:
## Resuming from [mode] artifact
**Date:** [date]
**Bead:** [primary_bead] — [bead status]
**Previous outcome:** [outcome]
**Goal:** [goal]
### What was done
- [done_this_session items]
### What to do next
[now field, plus next items]
### Current state
- Branch: [current branch vs artifact branch]
- Files: [verified / changed / missing]
- Bead: [status]
### Blockers / Questions (if any)
- [blockers]
- [questions]
### Decisions from previous session
- [decisions with rationale]
### What worked / What didn't
- Worked: [worked items]
- Failed: [failed items — avoid repeating these]
**Recommended first action:** [most logical next step]
Shall I proceed?
Wait for user confirmation, then begin working on the next steps.
If the artifact has a continuation_prompt, follow those specific instructions as the starting point.
If the artifact mode is finalize, the work was marked as done. Tell the user:
"This is a finalize artifact — the previous session marked this work as complete with outcome [outcome]. Are you looking to continue related work, or review what was done?"
If the artifact is more than 7 days old, warn: "This artifact is from [date] ([N days ago]). The codebase may have changed significantly. I'll verify the current state carefully before proceeding."
If primary_bead is set but bd show fails, warn and offer concrete recovery:
"The bead [id] referenced in this artifact was not found. It may have been closed or deleted. Options:
bd create --title="[goal from artifact]" --type=taskbd list --status=open"If discovery finds nothing:
"No handoff artifacts found in thoughts/shared/handoffs/. This could mean no previous sessions created handoffs, or the directory doesn't exist yet. Would you like to start fresh?"
User: /resume-handoff
Assistant: [runs discovery script]
I found 3 recent artifacts:
1. [handoff] 2026-01-21T19:08 [Continuous-Claude-v3-sx8] PARTIAL_PLUS
Fix continuity lifecycle
thoughts/shared/handoffs/Continuous-Claude-v3-sx8-continuity/2026-01-21_19-08_continuity_handoff.yaml
2. [checkpoint] 2026-01-17T17:01 [Continuous-Claude-v3-7x6] PARTIAL_PLUS
Restore CC3 setup
thoughts/shared/handoffs/Continuous-Claude-v3-7x6-restore-cc3-setup/2026-01-17_17-01_restore-cc3-setup_checkpoint.yaml
3. [finalize] 2026-01-14T21:35 [Continuous-Claude-v3-xsp] SUCCEEDED
CC artifact non-interactive flow
thoughts/shared/handoffs/Continuous-Claude-v3-xsp-cc-artifact-non-interactive-flow/2026-01-14_21-35_cc-artifact-non-interactive-flow_finalize.yaml
Which one would you like to resume from?
User: /resume-handoff thoughts/shared/handoffs/memory-hooks-investigation/2026-01-21_19-08_memory-hooks-investigation_checkpoint.yaml
Assistant: [reads the YAML artifact, loads bead context, verifies git state, presents analysis]
User: /resume-handoff Continuous-Claude-v3-7x6
Assistant: [searches for artifacts containing that bead ID, finds the most recent one, proceeds]