← ClaudeAtlas

finalize-prlisted

Automatically finalize pull requests for merge by resolving CodeQL violations, review threads, merge conflicts, and CI failures. Handles single PR (current branch or by number), all open PRs in the repo, or all open PRs across the org. Includes bot-authored PRs in all modes.
JacobPEvans/claude-code-plugins · ★ 3 · AI & Automation · score 72
Install: claude install-skill JacobPEvans/claude-code-plugins
# Finalize PR **FULLY AUTOMATIC** - Fully automates PR finalization: monitor, fix, prepare for merge. Assumes PR already exists. No manual intervention required. For manual review-focused workflows, use `/review-pr`. > **State warning**: Automated reviewers (CodeQL, Copilot, AI reviews) post > asynchronously. CI may have re-run. Merge conflicts may have appeared. > Re-fetch live PR state from Step 1. ## Critical Rules 1. **Wait for user approval to merge** - Report ready status, then pause for user merge command 2. **Verify all checks pass via Phase 3 gate** - Re-run Phase 3 against live API on every invocation; "mergeable" means git-conflict-free only, not fully unblocked. 3. **Resolve all conversations** - Automatically invoke `/resolve-pr-threads` for review threads 4. **Fix all CodeQL violations** - Check repository and automatically fix using `/resolve-codeql` 5. **Simplify all code changes** - Invoke /simplify at Step 2.3.5 (after all fixes). Pre-push simplification is handled by `/ship`. 6. **Validate locally before pushing** - Run project linters and tests 7. **Monitor CI early, block last** - Start CI monitoring in background immediately, but fix other issues while it runs 8. **Update PR metadata automatically** - Before reporting ready, update title, description, and linked issues via haiku subagent 9. **Take direct action** - Identify issues and fix them automatically (except merge decisions) 10. **Include bot PRs** - Never filter by author. All modes includ