From rpi
Capture in-flight conversation context to a deterministic per-project temp file at the end of a session, so the next session in the same project can be told to read and consume it. Use when user says 'handoff', 'end of session', 'save session context for next time', 'wrap this up for the next session', or 'hand off to the next session'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rpi:rpi-handoff [focus for next session][focus for next session]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Capture in-flight conversation context — current task, open questions, files touched, suggested next steps — to a deterministic per-project temp file at the end of a session, so the next session in the same project can pick up the thread without re-discovery.
Capture in-flight conversation context — current task, open questions, files touched, suggested next steps — to a deterministic per-project temp file at the end of a session, so the next session in the same project can pick up the thread without re-discovery.
This skill writes only. The SessionStart hook installed by project setup is what nudges the next session to read and remove the file (consume-once). There is no separate pickup-side skill — the hook plus existing read and shell tools are sufficient.
claude-handoff hook entry in cmd/rpi/init_cmd.go; the test TestSessionHandoffHookRecipePinned enforces this):
/tmp/claude-handoff-$(echo -n "$PWD" | shasum -a 256 | cut -c1-12).md
shasum -a 256 is available on macOS and most Linux distros out of the box. The first 12 hex chars give a 2⁴⁸ namespace — collision risk between distinct project paths on one machine is effectively zero.Existing handoff at <path> will be overwritten — proceeding
The warning is user-visible by design — the user can interrupt before the write.rpi resume to capture the current RPI-derived session state, and embed its output verbatim under the ## RPI session state section of the handoff body. Embedding (not just referencing the command) is required so the next session sees the snapshot the previous session signed off on, even if .rpi/ artifacts drift between capture and pickup..rpi/ artifacts (plans, designs, specs, research) by path under ## References — never duplicate their bodies. The next session reads them itself.Handoff written to <path>
No tail summary, no ceremony.Compose the handoff body in this order. Omit ## Focus for next session when $ARGUMENTS is empty; omit ## Pending uncommitted work when the working tree is clean.
## Focus for next session — populated from $ARGUMENTS when invoked with a focus argument; the rest of the body is framed around this.## Current task — one paragraph: what the session was doing and where it stopped.## Open questions / unresolved decisions — bullets the user still needs to resolve.## Files touched — paths plus key line refs from recent edits, so the next session resumes without re-discovery.## Pending uncommitted work — only when the working tree is dirty. Flag it and suggest the commit skill for the next session.## References — .rpi/ artifact paths mentioned in the session, by path only.## Suggested skills for next session — e.g. plan, implement, verify, based on what was in flight.## RPI session state — the embedded rpi resume output, verbatim.This skill writes only. Pickup is handled automatically by the SessionStart hook entry that project setup installs in .claude/settings.json (marker claude-handoff). The hook checks for the file at the same per-$PWD path and, if present, emits a one-line nudge telling the next session to read the file and remove it after reading. The cleanup is allowlisted via Bash(rm /tmp/claude-handoff-*.md), so it runs without a permission prompt.
If the next-session pickup ever stops working, first check that the path recipe in this skill matches the recipe in the claude-handoff hook entry — they must stay byte-identical.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub a-ngj/rpi --plugin rpi