rebase-pr

Rebase GitHub pull requests onto base branches with conflict resolution and build verification.

Updated May 14, 2026
One-click install
npx skills add https://github.com/HabibTorjmen/Blockchain --skill rebase-pr-habibtorjmen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rebase-pr
Source: https://github.com/HabibTorjmen/Blockchain/tree/main/aztec-packages/yarn-project/.claude/skills/rebase-pr
Command: npx skills add https://github.com/HabibTorjmen/Blockchain --skill rebase-pr-habibtorjmen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rebase a pull request onto its base branch to resolve conflicts without merge commits, then confirm the result still builds and passes formatting and linting.

Core Features & Use Cases

  • Validates PR state and base branch: Reads the PR metadata from GitHub CLI and aborts when the PR is not open, ensuring you only rebase actionable PRs.
  • Performs a safe rebase workflow: Checks out the PR, rebases onto the base branch, and iteratively resolves conflicts using rebase continue until complete.
  • Bootstraps and verifies build health: Detects changes outside yarn-project, runs bootstrap as needed from the repo root, and runs yarn build plus yarn format and yarn lint before pushing.

Quick Start

Ask the system to run the rebase-pr workflow for PR number 19882.

Frequently Asked Questions about rebase-pr

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

FAQPage Schema
How do I rebase a GitHub pull request onto a base branch without creating merge commits?

To rebase a GitHub pull request without merge commits, the skill checks out the PR, performs a git rebase onto the base branch, and iteratively resolves conflicts using rebase continue until the process is complete. It never uses merge commits.

What is the best way to resolve git rebase conflicts in a monorepo before force pushing?

The best way to resolve git rebase conflicts in a monorepo is to iteratively resolve them using rebase continue, optionally bootstrap the repo if changes exist outside yarn-project, then verify yarn build, yarn format, and yarn lint before force-pushing with lease.

Can I use this rebase workflow for PRs targeting merge-train branches in the AztecProtocol monorepo?

Yes, you can use this rebase workflow for PRs targeting merge-train branches in the AztecProtocol monorepo. It specifically applies to PR maintenance tasks targeting next or merge-train branches where conflict resolution and post-rebase validation are required.

Do I need to run yarn build and yarn lint after rebasing a pull request?

Yes, you need to run yarn build and yarn lint after rebasing a pull request. The skill verifies build health by running yarn build plus yarn format and yarn lint before force-pushing with lease to ensure the rebased repository builds successfully.

When should I bootstrap a monorepo during a git rebase workflow?

You should bootstrap a monorepo during a git rebase workflow when non-yarn-project changes exist. The skill detects changes outside yarn-project and runs bootstrap as needed from the repo root before verifying the build and pushing.

Why does force pushing with lease fail after rebasing an open GitHub PR?

Force pushing with lease fails if the PR is not open or if local refs are stale. The skill validates PR state by reading metadata from GitHub CLI and aborts when the PR is not open, ensuring you only rebase actionable PRs and fetches fresh refs with gh.