finalize-pr

Automate PR merging, code review, and worktree cleanup via GitHub CLI.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/usadamasa/claude-config --skill finalize-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: finalize-pr
Source: https://github.com/usadamasa/claude-config/tree/main/dotclaude/skills/finalize-pr
Command: npx skills add https://github.com/usadamasa/claude-config --skill finalize-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the entire Pull Request lifecycle, from automated review and merging to post-merge cleanup and session handover, reducing manual intervention and accelerating development cycles.

Core Features & Use Cases

  • Automated PR Merging: Merges PRs automatically once CI checks pass and no critical issues are found.
  • Intelligent Review: Leverages multiple review agents to identify critical issues, important suggestions, and minor improvements.
  • Worktree Cleanup: Manages worktree environments post-merge.
  • Session Handoff: Seamlessly transfers context to the next session.
  • Use Case: After pushing a new feature branch, you can trigger this skill to automatically handle the PR review, merge it if conditions are met, clean up the worktree, and prepare for the next development task.

Quick Start

Use the finalize-pr skill to review, merge, and clean up the current pull request.

Frequently Asked Questions about finalize-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate pull request merging when CI checks pass?

Automated PR merging verifies CI status and checks for critical issues before proceeding with the merge and subsequent cleanup. It integrates with GitHub CLI to ensure code quality and efficient workflow management.

Can I use multi-agent code review to identify critical issues before a GitHub PR merge?

Multi-agent code review leverages multiple review agents to identify critical issues, important suggestions, and minor improvements. This ensures code quality before proceeding with conditional merging.

What is the best way to automate worktree cleanup after a pull request is merged?

Worktree cleanup is handled automatically as part of the end-to-end Pull Request lifecycle. After verifying CI status and merging, the workflow manages worktree environments and prepares context for the next session.

Does this PR workflow require GitHub CLI and Task tools to function?

The PR workflow integrates with GitHub CLI and Task tools to automate the end-to-end Pull Request lifecycle. These dependencies ensure code quality verification and efficient workflow management.

What happens if CI checks fail during automated PR finalization?

Automated PR finalization handles PRs ready for merge by verifying CI status and identifying critical issues before proceeding. If CI checks fail or critical issues are found, the conditional merge is prevented.