From 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/memex-claude:handoffThe summary Claude sees in its skill listing — used to decide when to auto-load this 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.
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
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 .claude/handoffs/<filename>.md`
2. <Verify state command>
3. <First concrete action>
Show the handoff document and ask:
Update the file with any corrections.
To continue, start a new session and say:
/takeover .claude/handoffs/<YYYYMMDD>-<title>.md
$ARGUMENTS
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub jim80net/memex-claude --plugin memex-claude