address-pr-feedback
Use gh for GitHub operations. Edit, amend, push, reply, resolve threads, and minimize all eligible bot comments unless the user limits scope or requests a checkpoint.
Locate the Work
Check gh auth status and record gh api user --jq .login to identify your own replies. Inspect the worktree and branch; preserve unrelated changes.
Use the supplied target or the checked-out branch's PR. Stop if none exists.
gh pr view <PR> --json number,title,url,body,baseRefName,headRefName,headRefOid,state,isCrossRepository,maintainerCanModify,headRepository,headRepositoryOwner
gh pr diff <PR>
Before editing, verify the head is writable and check out the owning branch with gh pr checkout <PR>. Cross-repository PRs require maintainerCanModify and successful checkout.
Stack Scope
For a supplied PR in a stack, announce "Addressing stack feedback starting with [PR]" and work from that PR through its descendants to the tip; ancestors are context only. Without a supplied target, include the whole connected stack. Inspect ancestor and descendant diffs for behavior, fix ownership, and changes already made later in the stack.