.claude/skills/merge-pr/SKILL.md
Squash-merge the current PR, delete the branch, and switch back to main.
npx skillsauth add poitch/Ciel merge-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Squash-merge the current pull request, delete the remote and local branch, and switch back to main.
If the user provided a PR number as $ARGUMENTS, use that. Otherwise, detect the PR for the current branch:
gh pr view --json number,title,url,headRefName,state
If no PR is found or the PR is already merged/closed, inform the user and stop.
Squash-merge the PR and delete the remote branch in one step:
gh pr merge {number} --squash --delete-branch
If the merge fails (e.g. due to merge conflicts or failing checks), inform the user and stop.
git checkout main && git pull
If the local branch still exists (it may already have been removed by --delete-branch), delete it:
git branch -d {branch_name}
Ignore errors if the branch was already deleted.
Let the user know the PR was merged, the branch is cleaned up, and they are on main.
development
Wait for Copilot code review to complete, then address any review comments.
development
Pull all file comments from the current GitHub pull request and address them by making code changes.
data-ai
Create a new branch from main, commit all changes, push, and open a pull request.
tools
Stage all changes, commit with an auto-generated message, and push to the remote.