/claude-feature-flow:merge <pr-number>from claude-feature-flow
Processes a GitHub PR: reviews comments, applies fixes, squash merges with a clean commit message, and updates local main branch.
Ships in claude-feature-flow. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
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.
7-day visitors to each command page
15 commands in this plugin
/buildBuild — Automated Feature PipelineFull pipeline: implement all tasks → review → qa → ship. Use /build quick to skip review and skip ship./constitutionGenerate or update the project constitution from the PRD/designDesign — Project Design SystemCreate or update the project Design System document through guided discovery/implementImplement the next pending task. Auto-detects the feature if no argument given./planCreate a technical implementation plan from a spec. Auto-detects the feature if no argument given./prdPRD — Product Requirements DocumentCreate or update the Product Requirements Document through guided discoverynpx claudepluginhub allienna/claude-feature-flow --plugin claude-feature-flowOther plugins' commands for the same job