prepare-pr

Rebase GitHub Pull Requests onto main, fix review findings, run gates, and push.

Updated Feb 18, 2026
One-click install
npx skills add https://github.com/loveoplay2023-hue/OpenMehdi --skill prepare-pr-loveoplay2023-hue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prepare-pr
Source: https://github.com/loveoplay2023-hue/OpenMehdi/tree/main/.agents/archive/prepare-pr-v1
Command: npx skills add https://github.com/loveoplay2023-hue/OpenMehdi --skill prepare-pr-loveoplay2023-hue

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (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 with the main branch, incorporates review feedback, and passes all automated checks.

Core Features & Use Cases

  • Rebasing: Automatically rebases the PR branch onto the latest main branch to resolve conflicts.
  • Fixing Review Findings: Addresses critical and important issues identified during code review.
  • Running Gates: Executes build, check, and test commands to ensure code quality.
  • Committing Fixes: Creates a new commit with a standardized message format.
  • Pushing to PR: Safely pushes the updated branch back to the PR's head branch.
  • Use Case: After receiving feedback on a PR, use this Skill to automatically apply the changes, rebase, run tests, and push the updated PR, making it ready for the final merge.

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 rebase a GitHub PR onto the main branch?

To automatically rebase a GitHub PR onto the main branch, this Skill rebases your PR head branch onto the latest main branch. It resolves conflicts and ensures your PR is up-to-date and compliant before merging.

Can I automate fixing code review findings before merging a PR?

Yes, you can automate fixing code review findings before merging a PR. This Skill addresses critical and important issues identified during code review, commits the fixes, and pushes the updated branch.

What is the best way to ensure a GitHub PR passes CI/CD gates?

The best way to ensure a GitHub PR passes CI/CD gates is to run build, check, and test commands automatically. This Skill executes these automated gates to verify code quality before pushing the PR for final merge.

How do I prepare a GitHub pull request for merge after receiving feedback?

To prepare a GitHub pull request for merge after receiving feedback, use this Skill to apply changes, rebase onto main, run tests, and push the updated PR. It creates a new commit with a standardized message format.

Does this PR preparation tool handle pushing commits to the remote head branch?

Yes, this PR preparation tool handles pushing commits to the remote head branch. It safely pushes the updated branch back to the PR's head branch after committing fixes and running automated gates.