← ClaudeAtlas

handofflisted

Write a continuation prompt for a fresh session into tmp/docs/<date>-handoff-<slug>.md, save state, and print the prompt so the user can clear the context window and continue the work elsewhere.
brunob54/superpowers-orchestrator · ★ 3 · AI & Automation · score 79
Install: claude install-skill brunob54/superpowers-orchestrator
# Handoff The user is about to clear the context window. Produce a prompt that lets a fresh session, which starts with zero memory of this one, continue the work without re-deriving anything this session established. Today's date, time and time-zone offset: !`date +%FT%H:%M%z` Current branch and HEAD: !`git branch --show-current 2>/dev/null | grep . || echo none` at !`git rev-parse --short HEAD 2>/dev/null || echo none` Uncommitted files: !`git status --short 2>/dev/null | wc -l | tr -d ' '` Argument given by the user (may be empty): $ARGUMENTS ## Procedure 1. **Decide the slug.** If the user gave an argument, use it (lower-case, hyphens). Otherwise derive a short slug from the next work item (the row number or feature name the next session will work on). The file is `tmp/docs/<today>-handoff-<slug>.md`, where `<today>` is the date part (`YYYY-MM-DD`) of the date and time printed above. Create `tmp/docs/` if it does not exist. Never overwrite an existing file: if the name is taken, append `-2`. 2. **Collect the facts, mostly from files, not from memory.** Every source below is optional; use the ones the project has. Read `state.md` and the last two `[saved]` entries of `session-log.md` (written by the context-management skill in projects where state was saved); the previous handoff in `tmp/docs/` (the newest `*handoff*` file) for the conventions section, or the project's `CLAUDE.md` when there is no previous handoff; the version file and