find-handoff
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Pre-computed context
Default-location handoffs (this repo): !ls -1t .work/handoffs/*-handoff-*.md 2>/dev/null | head -5 || echo "none at default .work/handoffs/"
Transcript project dirs (recent): !ls -1dt "$HOME/.claude/projects/"*/ 2>/dev/null | head -8 || echo "none"
Context — gather first
Collect these with individual Bash calls, one command per call:
- Claude session id —
printenv CLAUDE_CODE_SESSION_ID - Current branch —
git branch --show-current
Treat any failure as an unknown value and carry on. These are gathered here rather than pre-computed
because a worktree-isolated agent refuses any command carrying a $-expansion, which made this skill
fail at load — keep $-expansion out of the pre-compute block (#1687). Bare $HOME above is the one
form observed to survive that guard; anything else, including ${HOME}, is refused.