From superpowers-plus
Surfaces commits on remote-tracking refs from last 24 hours not yet on any local branch. Helps catch sibling machine pushes between sessions. Read-only advisory.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-plus:session-handoffThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Wrong skill?** Resuming an explicit prior context -> `branch-sync-gate` (fetches + checks behind/diverged). Per-branch budget doc -> `hotfix-charter`. Per-commit LOC ceiling -> `pre-push-loc-gate`. Cumulative branch vs ticket estimate -> `scope-tripwire`.
Wrong skill? Resuming an explicit prior context ->
branch-sync-gate(fetches + checks behind/diverged). Per-branch budget doc ->hotfix-charter. Per-commit LOC ceiling ->pre-push-loc-gate. Cumulative branch vs ticket estimate ->scope-tripwire.
A first-touch advisory that asks: what landed in this repo since I last looked? Lists commits on remote-tracking refs from the last 24 hours that are NOT yet reachable from any local branch -- the actionable handoff set. Run it BEFORE editing on a cold start.
branch-sync-gate)| Verb / phrase | Skill | Why |
|---|---|---|
| "let me check this repo" / "starting work on..." / "what's new in..." | session-handoff | Cold start; engineer needs to see what landed |
| "continuing work on..." / "resuming where I left off..." | branch-sync-gate | Explicit resume; fetch + behind/diverged check |
/sp-session-handoff (explicit) | session-handoff | Manual invocation |
/sp-sync (explicit) | branch-sync-gate | Manual invocation |
Both should run when both verbs are present. Session-handoff runs first (order: -1), reports the sibling-activity summary, then branch-sync-gate handles the fetch + alignment workflow.
# Manually, from the repo root
tools/session-handoff-check.sh
# With assurance line when no activity found
tools/session-handoff-check.sh --verbose
# Wider window (default: "24 hours ago")
SESSION_HANDOFF_WINDOW="7 days ago" tools/session-handoff-check.sh
# Skip the git fetch (offline or hostile network)
SESSION_HANDOFF_NO_FETCH=1 tools/session-handoff-check.sh
Output (stderr; nothing on stdout):
session-handoff: sibling activity detected (window: 24 hours ago)
(Read these commits before editing -- they may overlap your planned work.)
origin/fix/incident-2026-1507-intro-protection
2026-06-09T14:32 [email protected] fix: greeting registration race
2026-06-09T15:14 [email protected] test: add ceiling-hit case
origin/main
2026-06-10T11:22 [email protected] Merge commit message
Tip: `git log <ref> --since="24 hours ago"` for full detail.
Silent when no commits match (unless --verbose).
| Env var | Default | Purpose |
|---|---|---|
SESSION_HANDOFF_WINDOW | 24 hours ago | Any git log --since= expression |
SESSION_HANDOFF_VERBOSE | 0 | 1: print assurance line when no activity |
SESSION_HANDOFF_NO_FETCH | 0 | 1: skip git fetch (uses stale local refs) |
SESSION_HANDOFF_FETCH_TIMEOUT | 10 | Wall-clock budget for fetch (seconds) |
| Exit | Meaning |
|---|---|
| 0 | Activity surfaced; OR no activity; OR fetch failed (advisory only -- never blocks) |
| 2 | Not in a git repo, OR invalid env var, OR git log error |
session-handoff is the COLD-START half of the session-orientation pair:
+-- session-start group --------------------+
| |
| [order: -1] session-handoff | <-- "what landed since I left?"
| | |
| v produces: sibling-activity |
| |
| [order: 0] branch-sync-gate | <-- "now fetch + reconcile"
| |
+--------------------------------------------+
Both skills running back-to-back is intended ergonomics. The incident-2026-1507 pattern would have been caught by this skill firing on cold-start verbs.
The 2026-06-10 incident-2026-1507 involved two machines doing parallel work on the same hotfix branch. Branch-sync-gate did not fire because the engineer never said "continuing" or "resuming" -- it was a cold start with edit verbs ("let me look at..."). The sibling commits sat invisible on the feature branch while the engineer started a second parallel implementation. Hours of fork-merge confusion followed.
npx claudepluginhub bordenet/superpowers-plus --plugin superpowers-plusGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.