wmlisted
Install: claude install-skill svyatov/agent-toolkit
Pull request: !`gh pr view --json number,title,url,isDraft,mergeable,mergeStateStatus 2>&1 || true`
1. No open pull request for this branch: say so and stop.
2. `gh pr checks --watch` until every check settles. It exits non-zero on failure, so allow that and
read the result rather than treating it as a crash.
3. Green: `gh pr merge --squash --delete-branch`. Red: stop, name the failing check and the reason,
and merge nothing. Do not retry, do not fix, do not merge past a failure.
4. A draft PR, a merge conflict, or a blocked merge state stops you too. Report which it is.
5. Report whether it merged, and the URL.