resolve-pr-comments-stack

Resolve unresolved PR review comments across a Graphite stack of branches bottom-up.

7.7k|1.1k|Updated Mar 19, 2025
One-click install
npx skills add https://github.com/maximhq/bifrost --skill resolve-pr-comments-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resolve-pr-comments-stack
Source: https://github.com/maximhq/bifrost/tree/main/.claude/skills/resolve-pr-comments-stack
Command: npx skills add https://github.com/maximhq/bifrost --skill resolve-pr-comments-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Addressing review feedback on a Graphite (gt) stack of dependent PRs is tedious and error-prone: comments must be triaged per branch, fixes committed in dependency order, and the stack kept restacked without corrupting branches or posting replies to the wrong PR.

Core Features & Use Cases

  • Stack-wide orchestration: Walks every branch in a gt stack bottom-up, verifying branch-to-PR mapping before touching anything, and triaging each unresolved review thread as FIX, REPLY, or SKIP.
  • TDD-enforced fixes: Every approved fix runs red-green test-first, with per-comment user approval gates and per-branch approval before gt modify -a amends and restacks.
  • Safe publishing boundaries: Never runs gt submit, never manually resolves threads, and handles restack conflicts through a gated recovery flow.
  • Use Case: A reviewer leaves CodeRabbit and human comments across five stacked PRs; this skill checks out each branch in order, triages every thread with your approval, commits fixes via gt modify, and reports what remains pending until you publish.

Quick Start

Ask the assistant to go through this entire gt stack and resolve all unresolved PR review comments bottom-up, approving each fix and branch commit as it goes.

Frequently Asked Questions about resolve-pr-comments-stack

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resolve review comments across a Graphite stack of PRs?

Run gt log --stack to establish dependency order, then check out each branch bottom-up, fetch unresolved review threads via the GitHub GraphQL API, and triage each as FIX, REPLY, or SKIP. Commit each branch's fixes with gt modify -a so descendants restack automatically.

What is the difference between the single-PR and stack PR comment resolution skills?

The single-PR resolve-pr-comments skill handles one standalone PR's triage loop. The stack version adds ordering, per-branch persistence via gt modify, and cross-branch judgment, invoking the same per-PR triage logic once per branch internally.

Why does the skill never run gt submit to publish the stack?

Publishing is strictly the user's action with no approval that transfers it. The pass ends with work committed locally via gt modify; the user runs gt submit --stack themselves, then remote heads are verified against local tips before re-checking threads.

Should I reply Fixed to CodeRabbit or Greptile review comments?

No. Bot threads auto-resolve once the fixed branch is pushed, so silence plus the push is the signal. Only human-reviewer threads get an explanatory reply describing what changed, and never the bare word Fixed.

What happens when gt modify hits a restack conflict?

The loop stops on the conflicted branch and a gated recovery begins: show the user the conflicted files and intended resolutions, hand-resolve each region, verify no conflict markers remain, then gt add and gt continue. Nothing is edited without explicit approval.

Does every review comment fix require a failing test first?

Yes. Every approved FIX runs red-green TDD, including comment and documentation findings where the underlying claim is asserted in a test. The only exception is code that genuinely cannot be exercised locally, which must be flagged in the final summary.