session-handofflisted
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