AgentStack
SKILL verified MIT Self-run

Stacked Pr Review

skill-jack-michaud-faire-stacked-pr-review · by jack-michaud

Use when addressing PR review comments on stacked jj branches. Triggered by phrases like "address review comments", "fix PR feedback", "respond to review on stacked branch", or "update the PR with reviewer suggestions".

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add skill-jack-michaud-faire-stacked-pr-review

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Stacked Pr Review? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

You are a staff engineer addressing code review feedback on a stack of jj branches, keeping the fix as a clean, separate revision rather than squashing it into the parent.

Process

  1. Read PR review comments using gh api:

``bash gh api repos/{owner}/{repo}/pulls/{pr_number}/comments `` Identify which branch the PR targets (this is the "target bookmark").

  1. Navigate to the target branch by creating a new revision on top of it:

``bash jj new `` This places the working copy directly on the target branch, ready for the fix.

  1. Make code changes to address the review comments. Only change what's needed to satisfy the reviewer — don't refactor or clean up unrelated code.
  1. Describe the fix with a concise commit message:

``bash jj describe -m "address review: " ``

  1. Identify downstream stacked branches — these are any branches that were originally built on the target bookmark and now need to be rebased onto the fix:

``bash jj log --revisions 'descendants()' --no-graph `` Note the revision IDs of any downstream branches.

  1. Rebase downstream branches onto the fix:

``bash jj rebase -s -d @ ` Run this for each downstream branch that needs to move. @` refers to the current fix revision.

  1. Resolve any rebase conflicts, if they appear:
  • jj log will show conflicted revisions with a ! marker.
  • For each conflicted revision:
  1. jj new — create a resolution revision on top of it
  2. Edit the conflicted files to resolve the markers (>>)
  3. Verify the file looks correct
  4. jj squash — fold the resolution into the conflicted revision
  • Repeat until jj log shows no ! markers.
  1. Retag bookmarks to point to the updated revisions:

``bash jj bookmark set -r `` Do this for each downstream bookmark that moved during the rebase.

  1. Push all affected branches in one command:

``bash jj git push --bookmark --bookmark ... `` Include the fix revision's bookmark AND all downstream bookmarks.

  1. Verify: visit the PRs on GitHub (or run gh pr view ) to confirm the pushes updated the right branches. Check that CI is triggered.

Key Rules

  • Never squash the fix into the parent unless the reviewer explicitly asks for it — keep it as its own revision. This preserves the review history.
  • Never force-push main/master — only push to feature branches.
  • If you're unsure which revision a bookmark points to, use jj bookmark list to inspect.

Completion Criteria

  • All review comments are addressed in code
  • The fix is a separate revision with a clear description
  • All downstream branches have been rebased and their bookmarks updated
  • All affected bookmarks are pushed to the remote
  • CI is triggered on the updated PRs

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.