← ClaudeAtlas

pm-handofflisted

Generate a PM handoff prompt for context-window turnover. Captures static config, live GitHub state, in-flight thread state, and memory summary into a self-contained prompt for a fresh PM thread. Bootstraps `.claude/pm-config.md` on first run. Triggers on "pm-handoff", "handoff", "context turnover", "new pm thread", "thread turnover".
auerbachb/claude-code-config · ★ 5 · AI & Automation · score 73
Install: claude install-skill auerbachb/claude-code-config
Generate a PM handoff prompt for starting or continuing a PM orchestration thread. This prompt is self-contained — paste it into a new Claude Code session (web or CLI) and the new thread becomes the project manager for this repo, with full awareness of what the previous PM thread was doing. Resolve the config parser before Step 1: ```bash resolve_script() { local name="$1" candidate for candidate in \ "$HOME/.claude/skills-worktree/.claude/scripts/$name" \ "$HOME/.claude/scripts/$name" \ ".claude/scripts/$name"; do if [[ -x "$candidate" ]]; then echo "$candidate"; return 0; fi done return 1 } PM_CONFIG_GET_SH=$(resolve_script pm-config-get.sh || true) [[ -n "$PM_CONFIG_GET_SH" ]] || { echo "ERROR: pm-config-get.sh not found (checked all three paths) — PM handoff config capture unavailable" >&2; exit 1; } ``` Parse `$ARGUMENTS`: - If `$ARGUMENTS` contains "copy" or "clipboard", copy the final output to clipboard via `pbcopy` in addition to stdout. - If empty, output to stdout only. ## Step 1: Detect mode (bootstrap vs. standard) Probe for the config file via the shared parser. `pm-config-get.sh` returns rc=2 for two distinct conditions it does not itself distinguish — "file missing" and "file exists but unreadable" (see its EXIT STATUS contract) — so disambiguate here with a plain existence check before dispatching. Skipping this check means a permissions glitch or transient filesystem issue on an *existing* config would be silently overwritten by