Claude Code Plugins

Community-maintained marketplace

Feedback

graphite-stack-updater

@Uniswap/ai-toolkit
9
0

Update Graphite PR stacks by addressing review comments and syncing PRs. Use when user says "update my graphite stack", "address the review comments on my stack", "sync my PR stack after these changes", "submit my entire stack to Graphite", or "I need to update all the PRs in my stack".

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name graphite-stack-updater
description Update Graphite PR stacks by addressing review comments and syncing PRs. Use when user says "update my graphite stack", "address the review comments on my stack", "sync my PR stack after these changes", "submit my entire stack to Graphite", or "I need to update all the PRs in my stack".
allowed-tools Bash(gt:*), Bash(gh:*), Bash(git:*), Read, Write, Edit, Task(subagent_type:pr-reviewer)
model opus

Graphite Stack Updater

Automate Graphite PR stack updates by resolving comments and syncing PRs.

When to Activate

  • User has a Graphite stack with comments
  • Multiple PRs need updating
  • Stack sync needed after changes
  • Review comments to address
  • User mentions "gt stack" or "update stack"

What It Does

  1. Analyze Stack: Check structure with gt stack
  2. Find Comments: Identify PRs with unresolved feedback
  3. Address Feedback: Help resolve comments
  4. Update Stack: Use Graphite commands to sync
  5. Verify: Ensure all upstack PRs remain in sync

Execution Flow

For each PR with comments (bottom to top):

  1. Review the feedback
  2. Make necessary changes
  3. Run gt modify --no-verify to amend
  4. Execute gt submit --stack --update-only to sync upstack
  5. Continue until all PRs updated

Key Graphite Commands Used

gt stack           # View current stack
gt modify          # Amend current commit
gt submit --stack  # Update all PRs in stack

Options

  • Process entire stack or specific PR range
  • Filter by comment type (style, logic, performance)
  • Dry-run mode to preview changes
  • Auto-commit vs manual review mode

Output

Progress summary with:

  • Number of PRs updated
  • Comments resolved per PR
  • Remaining unresolved items
  • Stack synchronization status

Optional Follow-up

After updates, can invoke pr-reviewer to verify changes maintain quality.

Examples

"Update my graphite stack"
"Address the review comments on my stack"
"Sync the stack starting from PR #123"