This handles the full PR merge ceremony so you don't skip steps. It validates that all review comments have replies (blocks the merge if they don't), runs tests and lint, checks CI status, and warns if you forgot to assign a milestone. Always shows you a checklist summary before merging, uses merge commits instead of squash, auto-deletes the feature branch, and checks if the milestone is done afterward. The merge message format is refreshingly terse, just bullets for changes plus one-liners for review stats and test coverage. Good for teams that want enforcement on the boring pre-merge stuff without writing the same bash incantations every time.

skills.sh installs
281
GitHub stars
72
last updated
Aug 21, 2026

Install

$ npx -y skills add fvadicamo/dev-agent-skills --skill github-pr-merge --agent claude-code

Installs into .claude/skills of the current project.

Files

GitHub PR merge

Merges Pull Requests after validating pre-merge checklist and handling post-merge cleanup.

Current PR

!gh pr view --json number,title,state -q '"PR #\(.number): \(.title) (\(.state))"' 2>/dev/null

Core workflow

1. Check comments status

Verify all review comments have at least one reply:

REPO=$(gh repo view --json nameWithOwner -q '.nameWithOwner')
PR=$(gh pr view --json number -q '.number')

# Find unreplied comment IDs
gh api repos/$REPO/pulls/$PR/comments --jq '
  [.[] | select(.in_reply_to_id) | .in_reply_to_id] as $replied |
  [.[] | select(.in_reply_to_id == null) | select(.id | IN($replied[]) | not) | .id]
'

If unreplied comments exist:

  • STOP the merge process
  • Inform user: "Found unreplied comments: [IDs]. Run github-pr-review first."
  • NEVER reply to comments from this skill

2. Check milestone

gh pr view $PR --json milestone -q '.milestone.title // "none"'
  • If milestone is assigned: include it in the checklist summary (step 5)
  • If no milestone: check for open milestones and warn the user
gh api repos/$REPO/milestones --jq '[.[] | select(.state=="open")] | length'

Sponsors

Details

Repository
github.com/fvadicamo/dev-agent-skills
Categories
Git & Pull Requests, Code Review & Quality, AI & Agent Building, Sales & Marketing
First seen
Jun 3, 2026

More from fvadicamo/dev-agent-skills

All 5
1fvadicamo avatargithub-pr-reviewfvadicamo/dev-agent-skillsHandles PR review comments and feedback resolution. Use when user wants to resolve PR comments, handle review feedback, fix review comments, address PR review, 579skills.sh installs
2github avatargit-commitgithub/awesome-copilotExecute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git co48.4Kskills.sh installs
3github avatargit-flow-branch-creatorgithub/awesome-copilotIntelligent Git Flow branch creator that analyzes git status/diff and creates appropriate branches following the nvie Git Flow branching model.9.9Kskills.sh installs
4giuseppe-trisciuoglio avatarcreate-pr-from-specgiuseppe-trisciuoglio/developer-kitCreate GitHub Pull Request from specification using pull_request_template.md. Use when: spec needs to be converted to PR, spec is ready for review/merge, need t1.5Kskills.sh installs
5pedronauck avatargit-rebasepedronauck/skillsIntelligently handle git rebase operations and resolve merge conflicts while preserving features and maintaining code quality. Use when rebasing feature branche395skills.sh installs
6onewave-ai avatargit-pr-revieweronewave-ai/claude-skillsReview pull requests for code quality, security issues, and best practices. Use when reviewing PRs, checking code changes, or analyzing diffs before merge.334skills.sh installs