← ClaudeAtlas

mergelisted

Squash merge the current PR. Verifies merge gate and acceptance criteria before merging.
auerbachb/claude-code-config · ★ 5 · Code & Development · score 70
Install: claude install-skill auerbachb/claude-code-config
Squash merge the current PR. This is the "we're done here" command. ## Portable helper resolution Resolve all required helpers before Step 1. A missing helper blocks the merge rather than silently weakening its gate. ```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 } PR_AUTHORSHIP_SH=$(resolve_script pr-authorship.sh || true) MERGE_GATE_SH=$(resolve_script merge-gate.sh || true) AC_CHECKBOXES_SH=$(resolve_script ac-checkboxes.sh || true) CI_STATUS_SH=$(resolve_script ci-status.sh || true) MAIN_SYNC_SH=$(resolve_script main-sync.sh || true) [[ -n "$PR_AUTHORSHIP_SH" ]] || { echo "ERROR: pr-authorship.sh not found (checked all three paths) — merge authorship gate unavailable" >&2; exit 1; } [[ -n "$MERGE_GATE_SH" ]] || { echo "ERROR: merge-gate.sh not found (checked all three paths) — merge gate unavailable" >&2; exit 1; } [[ -n "$AC_CHECKBOXES_SH" ]] || { echo "ERROR: ac-checkboxes.sh not found (checked all three paths) — acceptance verification unavailable" >&2; exit 1; } ``` ## When to use /merge vs /wrap - Use **/merge** for a quick mid-session merge when you'll continue working in the same session. It handles AC verification, CI check, and squash-merge — nothing else. - Use **/wrap** for end-of-session cleanup. /wrap is a superset: