From Claude Harness
Merges all open PRs in dependency order, closes linked issues, deletes feature branches, and cleans up local/remote refs. Use when completing features or finalizing a release cycle.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-harness:mergeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Merge all open PRs and close related issues. Requires the `gh` CLI to be authenticated (`gh auth status`).
Merge all open PRs and close related issues. Requires the gh CLI to be authenticated (gh auth status).
git remote get-url origin (SSH: [email protected]:owner/repo.git, HTTPS: https://github.com/owner/repo.git). Use the owner/repo for ALL GitHub calls in this command.gh pr list --json number,title,headRefName,baseRefName,url,bodygh issue list --label feature --label bugfix --json number,title.claude-harness/features/active.json:
features array for linked issue/PR numbersfixes array for linked issue/PR numbersgh pr view {number} --json state,mergeable,reviewDecision,statusCheckRollup):
gh pr merge {number} --squash --delete-branch
(--delete-branch removes the remote branch and, when the repo is checked out on it, moves you back to the default branch).claude-harness/features/active.json for linked issues; close stragglers with gh issue close {number}gh issue comment {number} --body "Related fix merged: #{fix-issue} - {description}"git branch -d {branch} (safe delete).claude-harness/features/active.json:
git fetch --prunegit pullNote: Version tagging and GitHub releases should be managed separately using git commands or GitHub's release UI directly.
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-agent-framework --plugin panayiotism-claude-harnessReviews open PRs targeting the default branch, merges approved ones, and prunes merged branches and stale worktrees. Confirmation-gated with optional review-only and no-prune modes.
Merges reviewed PRs when triggered by /pr-merge or merge commands. Handles squash/rebase, worktrees, integration branches, and auto-merge for CI gating.
Closes or merges a pull request with a load-bearing 4-step hygiene sequence: comment, squash-merge, branch delete, close linked issues. Prevents dangling branches and unresolved issues.