← ClaudeAtlas

handofflisted

End-of-session ritual. Captures decisions, lessons, gotchas, and open threads. Writes a narrative session log to ~/.origin/sessions/ and stores granular memories via Origin MCP. Previews any unconfirmed captures from the current session before closing. Invoked as `/handoff`.
7xuanlu/origin · ★ 41 · AI & Automation · score 83
Install: claude install-skill 7xuanlu/origin
# /handoff End-of-session debrief. Three artifacts each pass: 1. **Granular MCP captures** — one per decision/lesson/gotcha (DB authoritative). 2. **Session log md** — narrative thread at `~/.origin/sessions/<YYYY-MM-DD-HHmm>-<slug>.md`. 3. **Project status md + json** — current goals + last-handoff timestamp at `~/.origin/sessions/_status/`. These are orthogonal: captures are queryable atoms, session log is the narrative thread, status file lets the next session see where we left off. ## Steps ### 1. Detect project + last handoff time ``` Bash: cd_repo=$(git -C "$PWD" rev-parse --show-toplevel 2>/dev/null); echo "${cd_repo:-no-git}" ``` - If output is a path → use the basename as `<project>` (e.g. `origin`). - If `no-git` → use the cwd basename. Skip git steps below; rely entirely on conversation context. Read `~/.origin/sessions/_status/handoff-<project>.json` for `lastHandoff` timestamp (ISO-8601). If file missing, default to "12 hours ago". ### 1.5 Pending-captures preview After establishing `<lastHandoff>`, call: ``` list_pending(limit=50) ``` The MCP returns memory rows with `source_id`, `content`, `created_at`, and other metadata. Convert `lastHandoff` (ISO-8601 string, e.g. `2026-05-13T22:50:00Z`) to a Unix epoch seconds integer before filtering: ``` Bash: date -j -f %Y-%m-%dT%H:%M:%SZ "$lastHandoff" +%s ``` Or in your scripting language of choice (Python's `datetime.fromisoformat`, JavaScript's `Date.parse`, etc.). Save the result as `lastHandoffEpoch