/memex-claude:handofffrom memex-claude
Create a comprehensive continuation plan so a fresh session can pick up exactly where this one left off — with full operational detail, not summaries.
Ships in memex-claude. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Capture the full operational state of the current work so a completely fresh session can resume without losing any context. The next session has zero memory of this one — every detail that matters must be in the document.
Budget: Spare no necessary detail. A handoff that's too short forces the next session to re-discover context, wasting hours. A handoff that's comprehensive saves the user from repeating themselves. Err on the side of completeness.
Write a clear statement of what the user is trying to accomplish, with enough context that someone unfamiliar could understand the goal. Include:
For each PR merged or significant piece of work:
For decisions made during the session:
For investigations/research:
Capture the actual state of every system touched, with verification commands. Include the actual output, not just the commands. The next session should be able to verify state without re-running.
# Git state
git branch --show-current
git log --oneline -15
git status
git worktree list
# Open PRs
gh pr list --author @me --state open
# Service health (if applicable)
# Include actual JSON responses, not just "it's healthy"
For each remaining item, provide:
Order items by priority or logical sequence.
For each approach that was tried and abandoned:
This section prevents the most expensive waste: a fresh session re-discovering the same dead ends.
Everything that would be lost with the context window:
Write to: <cwd>/.claude/handoffs/<YYYYMMDD>-<kebab-case-title>.md
After the write succeeds, resolve that exact file to an absolute path and
retain it as <absolute-written-handoff-path>. Use the current worktree's
actual path (the platform-equivalent of resolving the written file with
realpath); do not reconstruct the path from a later cwd, substitute a main
checkout path, or assume the next session starts in this directory.
Use this structure:
# Handoff: <descriptive title>
**Date:** <ISO date>
**Branch:** <current branch>
**Working directory:** <cwd>
## Objective
<What we're trying to accomplish and why. 2-3 paragraphs of context.>
## Session Summary
<One paragraph narrative of what happened this session — the arc from start to finish.>
## Completed Work
### <PR or work item title>
**PR:** #NNN — <url>
**Problem:** <what was broken and why>
**Root cause:** <the actual bug/gap, with file:line references>
**Fix:** <what was changed, mechanically>
**Files:** <list of files changed with one-line description each>
**Tests:** <what tests were added/run>
**Review:** <findings and resolution>
**Deploy:** <operational commands needed after merge>
<Repeat for each significant work item>
### Key Decisions
| Decision | Rationale | Alternatives Rejected |
|----------|-----------|----------------------|
| <decision 1> | <why> | <what else was considered> |
### Investigations & Research
<For each research item: what was checked, findings with file:line refs, conclusion>
## Current State
### Git
\```
<actual git log output>
<actual git status output>
\```
### Services
\```
<actual health check output>
<actual registry/job/deployment state>
\```
### Deployed Versions
- <service 1>: <git hash>, <what's running>
- <service 2>: <git hash>, <what's running>
## Remaining Work
### 1. <Item title> [priority]
**What:** <concrete description>
**Where:** <file paths, function names, line numbers>
**Why:** <what breaks without it, what it unblocks>
**Blocked by:** <dependencies>
**Approach:** <suggested implementation>
**Pitfalls:** <things to watch out for>
**Verify:** <how to confirm it's done>
<Repeat for each item, ordered by priority>
## Failed Approaches & Dead Ends
### <What was tried>
**Error/Problem:** <exact error message or behavior>
**Root cause:** <why it failed>
**Lesson:** <what to do instead>
## Gotchas & Environment Notes
- <gotcha 1 with exact workaround command>
- <gotcha 2>
## To Resume
1. Read this file: `cat <absolute-written-handoff-path>`
2. <Verify state command>
3. <First concrete action>
Show the handoff document and ask:
Update the file with any corrections.
Handoff written to:
<absolute-written-handoff-path>
To continue in a fresh session:
/takeover <absolute-written-handoff-path>
<absolute-written-handoff-path> value in the completion and /takeover
command. This must remain valid from a different cwd, including when the
handoff was created inside a worktree.$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jim80net/memex-claude --plugin memex-claude9 skills in this plugin
/deep-sleepExtract learnings from past session transcripts and create appropriately-typed skills. Processes unreviewed sessions to find user preferences, recurring patterns, and troublesome workflows./doctorDiagnose and fix memex installation, setup, or runtime problems. Run checks on the binary, config, hooks, cache, model, and scan paths./helpShow how to use memex: what it does, how to create skills/rules/memories, available commands, current status, and troubleshooting./memory-creationInstructions for creating and managing memories in memex format (injected in takeover mode)/reflectExtract learnings from the current conversation and save them as memories, rules, or skills so future sessions benefit from what happened here./sleepManage the sleep cycle: migrate MEMORY.md, CLAUDE.md, and rules into semantically-searchable skills, and promote/demote entries based on match telemetry.