From git
Use when the user wants to squash-merge a GitHub PR — /git:merge, "PR 머지", "squash merge", or any request to merge a pull request into main
How this skill is triggered — by the user, by Claude, or both
Slash command
/git:mergeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Check PR status → user confirmation → squash merge → delete remote and local branches.
Check PR status → user confirmation → squash merge → delete remote and local branches.
CONFLICTING state--force, --admin, or --auto flags to gh pr mergeIf a PR number is provided as an argument, use it. Otherwise detect from current branch:
git branch --show-current
gh pr view <FEATURE_BRANCH> --json number,title,state
gh pr view <PR_NUMBER> --json number,title,state,headRefName,baseRefName,mergeable,url,additions,deletions,files
gh pr checks <PR_NUMBER>
state != OPEN → abort, display current statemergeable == CONFLICTING → abort, guide user to resolve conflictsPR #<NUMBER>: <TITLE>
Branch: <HEAD> → <BASE>
Changes: +<ADD> -<DEL> (<FILES> files)
CI: <PASS/FAIL/PENDING>
If CI is failing, show an additional warning:
⚠️ CI checks are failing. Do you really want to merge?
⚠️ After squash merge, the remote branch (<FEATURE_BRANCH>) and local branch will be deleted.
Proceed? (y/N)
Any input other than y is treated as abort.
If CI is failing, ask for confirmation one more time.
gh pr merge <PR_NUMBER> --squash --delete-branch
Verify merge:
gh pr view <PR_NUMBER> --json state,mergedAt
git fetch origin --prune
# Delete local branch if it exists
git branch -d <FEATURE_BRANCH> 2>/dev/null || true
✅ PR #<NUMBER> squash merged
merged at: <TIMESTAMP>
Deleted remote branch: <FEATURE_BRANCH>
Deleted local branch: <FEATURE_BRANCH> (or "-" if not present)
| Situation | Action |
|---|---|
| PR not found | Abort, ask user for PR number |
| PR already merged/closed | Abort, display current state |
| Merge conflict | Abort, display conflicting files |
| CI failing | Show warning + ask user to reconfirm |
| Local branch delete fails | Show warning only, do not abort the overall flow |
/git:merge
/git:merge 42
PR 머지해줘
squash merge
npx claudepluginhub ppzxc/engineering-guidelines --plugin gitMerges reviewed PRs when triggered by /pr-merge or merge commands. Handles squash/rebase, worktrees, integration branches, and auto-merge for CI gating.
Verifies CI status, local tests, and repo safety before merging a PR, with post-merge health monitoring. Use when landing a completed implementation.
Runs a 4-step PR close sequence: reviewer-summary comment, squash-merge with PR title as commit subject, delete remote branch, close linked tracker issues. Use when merging or closing a PR.