How this command is triggered — by the user, by Claude, or both
Slash command
/claude-feature-flow:merge <pr-number>This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /merge — PR comment resolution, squash merge Takes a PR number as argument (`$ARGUMENTS`). If no argument, list open PRs and ask which one to process. ## 0. Detect repo Use `$REPO` in all `gh api` calls below. ## 1. Check PR status Verify: - PR is open - Checks are passing - Review status (approved, changes requested, pending) If changes are requested, proceed to step 2. If approved and checks pass, skip to step 3. ## 2. Address comments Analyze inline comments from reviewers: For each comment: - Display the file, line, and comment body - Evaluate whether the comment is rel...
Takes a PR number as argument ($ARGUMENTS). If no argument, list open PRs and ask which one to process.
REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
Use $REPO in all gh api calls below.
gh pr view $ARGUMENTS --json state,reviewDecision,statusCheckRollup,title,body
Verify:
If changes are requested, proceed to step 2. If approved and checks pass, skip to step 3.
gh pr view $ARGUMENTS --comments
gh api repos/{REPO}/pulls/$ARGUMENTS/comments --paginate
Analyze inline comments from reviewers:
For each comment:
gh api repos/{REPO}/pulls/$ARGUMENTS/comments/{COMMENT_ID}/replies -f body="Fixed, thanks."
After all fixes:
git add {changed_files}
git commit -m "fix: address PR review feedback"
git push
Prepare a squash commit message:
feat(001): project scaffold (#5))Co-Authored-ByDisplay the proposed commit message and ask for validation before merging.
Once validated:
gh pr merge $ARGUMENTS --squash --delete-branch --subject "{TITLE}" --body "{BODY}"
git checkout main
git pull
Confirm the merge is done and main is up to date.
npx claudepluginhub allienna/claude-feature-flow --plugin claude-feature-flow/mergeValidates feature branch readiness for PRD, checks out branch, displays task merge review and consolidated diff to main, then creates final PR to main.
/mergeMerges a feature branch into the current branch using git worktrees for rebase, tmux for conflict resolution, and provides a tmux session for monitoring progress.
/mergeMerges a specified worktree branch into the current branch using merge (default) or rebase strategy. Validates worktree, checks uncommitted changes, previews commits and diffs, handles conflicts.
/mergeMerges a source branch into the current branch, defaulting to origin/main. Delegates to a guarded merge workflow shared between Claude Code and Codex.