About merge-pr
merge-pr is a skill for maintainers handling pull request merges and follow-up cleanup. It specifies the merge method and how to handle linked issues and branches.
Key features
- 01Use a merge commit
- 02Close linked open issues
- 03Update partially completed issue checklists
- 04Delete local and remote branches
Use cases
- 01Merge the current branch's PR as specified
- 02Close linked issues that remain open
- 03Mark issue items completed by a PR
- 04Clean up local and remote branches after merging
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ lwlee2608/ agent-skills --skill merge-prAfter installing, type/merge-prin Claude Code to confirm it loaded.
Details
From the project READMEMerge PR
Rules
- Merge with a merge commit, not squash or rebase. Default to the current branch's PR.
- Close linked issues still open. GitHub auto-closes them only for merges into the default branch. Skip if none.
- Update partially addressed issues. For issues the PR references without closing (e.g. "fixes from #125"), check off the items it completed in the issue body and keep the issue open. Skip if none.
- Delete the branch, remote and local.
Comments
Markdown supported