handoff
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Generate a rich 5-slot session-snapshot entry so a fresh terminal can resume this session's work. Trigger at ~95% context as one of the three options offered by budget-monitor; also user-invokable any time.
195 other projects use a version of this.
Adopted by
Most recently taken up by
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- fmind/dottheir own version, first seen Oct 5, 2026
- michielvandermeer/skillstheir own version, first seen Oct 4, 2026
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- obie/auto-handofftheir own version, first seen Oct 4, 2026
- jesse-merhi/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use which-skill, wait-what and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
risadamsSkillwhich-skill
Router over this pack's skills and flows. Ask it "which skill fits X" when you don't remember what's available.
Also in 5 projects that use this
AWSSkillwait-what
Stop. That last message did not land: re-pitch it.
Also in 51 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 41 projects that use this
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 15 projects that use this
RoentekSkillwriting-beats
Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.
Also in 20 projects that use this
RoentekSkillwriting-fragments
Writing, explore — mine raw fragments, no structure yet.
Also in 20 projects that use this
- +5 more from aws
- +1 more from Roentek
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- mattpocock/skills★ 335ksame name
- ykdojo/claude-code-tips★ 10ksame name
- vinvcn/mattpocock-skills-zh-CN★ 4.6ksame name
- davidondrej/skills★ 4.1ksame name
- compozy/compozy★ 2.8ksame name
- feiskyer/claude-code-settings★ 1.7ksame name
- openclaw/agent-skills★ 1.1ksame name
- suboss87/FDEOps★ 950same name
- anombyte93/prd-taskmaster★ 604same name
- stevesolun/ctx★ 588same name
185 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- abandonSkill
- add-anti-flagSkill
- add-constitution-clauseSkill
- audit-specSkill
- commitSkill
- constitution-editSkill
- db-schemaSkill
- execution-planSkill
- feature-draftSkill
- harness-absorbSkill
- implementSkill
- initSkill
- nextSkill
- offloadSkill
- pickupSkill
- recallSkill
- rememberSkill
- spec-finalizeSkill
- test-fixSkill
- todolistSkill
- uninstallSkill
- workflow-templateSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 167 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 90
If $ARGUMENTS is non-empty, prepend it as extra context to focus.
- Very specific: line 129
If [2], ask which slot, accept edit, re-show.
- Very specific: line 173
If PREV_ID is set AND prior snapshot is <7 days old:
- Very specific: line 175
Read the prior snapshot's decisions[] and open_problems[].
- Very specific: line 199
Do NOT auto-invoke /clear — that's the CEO's choice.
- Distinctive: line 205
Never auto-clears the session (CEO's prerogative)
- Distinctive: line 206
Never writes if Step 2 is cancelled
“Common” is measured: kept by at least 6 in 10 of the 167 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/handoff
User-invoked session snapshot. Writes ONE structured entry to
.harness/memory/sessions/recall/snapshots.jsonl with kind session-snapshot.
Companion to the auto-snapshot path (
memory-snapshot.shPreCompaction hook). That fires automatically with limited context; this one is user-invoked when the user knows the session is about to end and wants a deliberate, rich snapshot.
When this skill is the right answer
- Context is at ~95% and you want a fresh terminal but don't want to lose state
- You're switching machines (e.g., laptop → desktop) and want resume on the other side
- You're about to step away for hours/days and want a clean handover note
- A long Stage 5 implementation needs to span 2+ sessions
When this skill is NOT the right answer
- Below ~75% context → just continue (no need)
- Working on a totally different unrelated task → that's not a handoff, that's a new feature
- Want to permanently capture a one-off decision → use
/rememberinstead
What this skill produces
A single new line appended to .harness/memory/sessions/recall/snapshots.jsonl:
{
"id": "SS-2026053018a",
"ts": "2026-05-30T18:30:00Z",
"kind": "session-snapshot",
"feature": "auth",
"focus": "Resolve OTP race condition in middleware",
"decisions": [
{"id": "d-001", "rule": "WHEN form submits with code, THE SYSTEM SHALL validate before navigation"}
],
"open_problems": [
{"id": "p-001", "what": "Concurrent submissions cause double-charge", "blocked_by": "need DB advisory lock"}
],
"next_intent": "Implement advisory lock in src/auth/middleware.ts",
"files_touched": [
{"path": "src/auth/middleware.ts", "why": "added validation hook"}
],
"prev_session_id": "SS-2026052801",
"source": "handoff"
}Step-by-step
Step 0 — Detect feature and prior snapshot
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")
# Derive FEATURE the same way memory-recall.sh does (feat/X-... → X)
# Find prior snapshot for same feature (for prev_session_id)
PREV_ID=$(jq -r 'select(.feature == "'"$FEATURE"'") | .id' \
.harness/memory/sessions/recall/snapshots.jsonl 2>/dev/null | tail -1)Step 1 — Draft each of the 5 slots
You (the AI) draft each slot based on:
- focus (≤200 chars, 1 line): What was THIS session about? Single sentence.
- decisions[] (0+ entries): Significant decisions made this session. Each entry has
id(d-001...) andrule(preferably EARS-form: WHEN/IF... THE SYSTEM SHALL ...). - open_problems[] (0+ entries): Things noticed but not solved. Each has
id(p-001...),what, andblocked_by. - next_intent (≤200 chars, 1 line): What does the next session need to do FIRST?
- files_touched[] (0+ entries): Files actually modified this session. Each:
{path, why}where why is ≤80 chars.
Pull source material from:
- TodoWrite state (if any active list)
git status --short(files in flight)git log -5 --oneline(recent commits this session)- Conversation memory of decisions made
If $ARGUMENTS is non-empty, prepend it as extra context to focus.
Step 2 — Show full draft to CEO for confirmation
Present in CEO's OS locale (per CLAUDE.md § Language Awareness):
─── Handoff Snapshot Draft ─────────────────────────────
feature : auth
focus : Resolve OTP race condition in middleware
decisions:
[d-001] WHEN form submits with code, THE SYSTEM SHALL validate before navigation
[d-002] WHEN code expired, THE SYSTEM SHALL surface error within 200ms
open_problems:
[p-001] Concurrent submissions cause double-charge
blocked_by: need DB advisory lock
next_intent : Implement advisory lock in src/auth/middleware.ts
files_touched:
src/auth/middleware.ts ← added validation hook
src/auth/types.ts ← OTP state enum
prev_session_id: SS-2026052801
Snapshot will be saved to:
.harness/memory/sessions/recall/snapshots.jsonl
Confirm?
[1] Yes, save and continue
[2] Edit slot: focus / decisions / open_problems / next_intent / files_touched
[3] Cancel (do not save)Wait for user response.
If [2], ask which slot, accept edit, re-show. Loop until [1] or [3].
Step 3 — Write the entry
On [1]:
mkdir -p .harness/memory/sessions/recall
TS=$(date -u +%Y-%m-%dT%H:%M:%SZ)
DATE_PART=$(echo "$TS" | cut -c1-10 | tr -d '-')
# Hash-based suffix avoids collisions when multiple snapshots same day
SUFFIX=$(echo "$TS$RANDOM" | shasum | cut -c1-3)
SS_ID="SS-${DATE_PART}${SUFFIX}"
ENTRY=$(jq -c -n \
--arg id "$SS_ID" \
--arg ts "$TS" \
--arg feature "$FEATURE" \
--arg focus "$FOCUS" \
--argjson decisions "$DECISIONS_JSON" \
--argjson open_problems "$OPEN_PROBLEMS_JSON" \
--arg next_intent "$NEXT_INTENT" \
--argjson files_touched "$FILES_TOUCHED_JSON" \
--arg prev_id "$PREV_ID" \
'{
id: $id,
ts: $ts,
kind: "session-snapshot",
feature: (if $feature=="" then null else $feature end),
focus: $focus,
decisions: $decisions,
open_problems: $open_problems,
next_intent: $next_intent,
files_touched: $files_touched,
prev_session_id: (if $prev_id=="" then null else $prev_id end),
source: "handoff"
}')
echo "$ENTRY" >> .harness/memory/sessions/recall/snapshots.jsonlStep 4 — Squash-merge against prior same-feature snapshot
If PREV_ID is set AND prior snapshot is <7 days old:
- Read the prior snapshot's
decisions[]andopen_problems[]. - Identify items in prior that are NOT contradicted/superseded by current snapshot's items.
- Append non-contradicted items to current snapshot's lists (preserving id, marking
from: <prev_id>). - Mark prior snapshot as
superseded_by: <current_id>by APPENDING a new override line (don't edit-in-place; jsonl is append-only).
This keeps chains bounded — a long-running feature accumulates current state in one rolling snapshot, not a growing chain.
Step 5 — Tell CEO next steps
In CEO's locale:
✓ Snapshot saved (id=SS-2026053018a)
Next:
→ /clear — clears current session, fresh start with this snapshot at top of manifest
→ Or open a new terminal — same effect, snapshot will be in the recall manifest
In the next session:
- SessionStart will show "[SS-2026053018a] feature=auth ..." in manifest
- If you (or AI) need the body: /recall SS-2026053018a
- The snapshot's next_intent is your starting pointDo NOT auto-invoke /clear — that's the CEO's choice.
Trust contract
- Writes to exactly one file:
.harness/memory/sessions/recall/snapshots.jsonl - Squash-merge (Step 4) only appends; never edits older lines in place
- Never auto-clears the session (CEO's prerogative)
- Never writes if Step 2 is cancelled
Completion criteria
- Snapshot entry appended (Step 3) and CEO has seen Step 5 next-steps message, OR
- CEO cancelled at Step 2 (nothing written)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

