do-mergelisted
Install: claude install-skill tomcounsell/ai
# Do-Merge (Deterministic Merge Gate)
You perform the **terminal SDLC merge gate**: verify a PR is genuinely finished,
authorize the merge through the merge-guard hook, squash-merge it, and clean up.
This skill is portable — it runs in any repo, not just `~/src/ai`.
The gate is deterministic: every precondition is a checkable fact (PR state, CI
rollup, review verdict, issue link). If any precondition fails, the skill
refuses to merge, surfaces a clear reason, and does NOT call the merge command.
## Repo Context Probe
If `docs/sdlc/do-merge.md` exists, read it and honor its declarations; otherwise use the generic defaults described below.
This addendum is where a repo layers SDLC automation onto the generic `git`/`gh`
gate: a stage/verdict substrate (stage markers, recorded REVIEW verdicts), a
merge-authorization hook, extra deterministic gates (lint, lockfile, full
suite), plan migration, and post-merge cleanup/restart. When the file is absent
(the common case in a foreign repo), this skill runs entirely on `git` and `gh`
— no repo-specific tooling required.
If the addendum declares a **shared deterministic merge predicate** (a single
command that evaluates the whole gate and returns structured pass/fail legs),
run that command and honor its result in place of hand-assembling the
equivalent checks — it is the same predicate the repo's merge-guard hook
enforces, so evaluating anything else invites drift. The repo-specific command
lives in the addendum, never in this body