← ClaudeAtlas

session-handofflisted

Cross-project session handoff via MCP dispatch (primary) or memory file (fallback). Creates a resumable Claude session in the target project seeded with context from the current conversation. If the agentibridge MCP is unavailable, falls back to writing a dated memory file into the target project's auto-memory directory. Use when the user says "hand off to <repo>", "save handoff for <repo>", "make <repo> aware of what we did", or "so next session knows where we left off".
the-cloud-clockwork/agentibridge · ★ 4 · AI & Automation · score 80
Install: claude install-skill the-cloud-clockwork/agentibridge
# session-handoff — Cross-Project Session Handoff Hand off context from the current session to another project. Two paths: 1. **MCP path (primary):** Call `agentibridge` `handoff` tool → spawns a Claude session in the target project seeded with the handoff content. Returns a `session_id` + `resume_command` the operator can use anytime. 2. **Memory-file path (fallback):** Write a dated memory file into the target project's auto-memory directory + index in MEMORY.md. Used when `agentibridge` MCP is not available in the current session. **When NOT to use**: this is for cross-project context handoff. If you just want to save notes inside the CURRENT project's memory, use normal auto-memory writes — not this skill. ## Script Resolution ```bash SKILL_DIR="$(dirname "$(readlink -f ~/.claude/skills/session-handoff/SKILL.md 2>/dev/null)" 2>/dev/null)" if [ -z "$SKILL_DIR" ] || [ ! -d "$SKILL_DIR" ]; then SKILL_DIR="$HOME/.claude/skills/session-handoff" fi ``` --- ## Step 1 — Parse arguments and resolve the target project The first argument is the **target repo path** (absolute or relative). Everything after it is an optional one-line headline hint. <!-- DETERMINISTIC: validate the target path and encode the auto-memory directory name --> ```bash TARGET_PATH=$("$SKILL_DIR"/scripts/01_resolve_target.sh "$1") MEMORY_DIR=$("$SKILL_DIR"/scripts/02_encode_memory_dir.sh "$TARGET_PATH") ``` If the target path is not a directory, stop and tell the user. --- ## Step 2