prepare-pr

Rebase a GitHub pull request onto main, apply review fixes, and push.

1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/victor-brechbill/claw-kernel --skill prepare-pr-victor-brechbill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prepare-pr
Source: https://github.com/victor-brechbill/claw-kernel/tree/main/.agents/archive/prepare-pr-v1
Command: npx skills add https://github.com/victor-brechbill/claw-kernel --skill prepare-pr-victor-brechbill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of preparing a GitHub Pull Request (PR) for merging by ensuring it's up-to-date, fixes review comments, and passes all necessary checks.

Core Features & Use Cases

  • Rebasing: Automatically rebases the PR branch onto the latest main branch to resolve conflicts.
  • Review Fixes: Applies fixes for BLOCKER and IMPORTANT issues identified during code reviews.
  • Automated Testing: Runs pre-commit checks and tests to ensure code quality.
  • Safe Pushing: Pushes the prepared changes back to the PR's head branch securely.
  • Use Case: After receiving feedback on a PR, use this Skill to automatically incorporate the changes, rebase, run tests, and push the updated branch, ready for merging.

Quick Start

Use the prepare-pr skill to get a GitHub PR ready for merging.

Frequently Asked Questions about prepare-pr

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

FAQPage Schema
How do I automatically fix code review findings before merging a GitHub pull request?

To fix code review findings before merging a GitHub pull request, this Skill applies fixes for BLOCKER and IMPORTANT issues, rebases onto main, runs verification gates, and pushes securely to the PR head branch.

What is the best way to rebase a GitHub PR branch onto main and run CI/CD checks?

The best way to rebase a GitHub PR branch onto main and run CI/CD checks is using an automation Skill that handles worktree setup, conflict resolution, pre-commit validation, and secure pushing.

Can I automate conflict resolution when rebasing a pull request onto the latest main branch?

Yes, you can automate conflict resolution when rebasing a pull request by using a Skill that manages PR metadata, worktree setup, and conflict resolution before verifying and pushing the prepared changes.

Does this PR preparation automation run pre-commit checks and tests before pushing?

Yes, this PR preparation automation runs pre-commit checks and tests to verify code quality, ensuring the changes pass all necessary gates before safely pushing to the PR head branch.

What are the limitations of automating GitHub pull request merging with a rebasing script?

Limitations of automating GitHub pull request merging with a rebasing script include a restricted scope, as it only applies fixes for BLOCKER and IMPORTANT issues identified during code reviews.