prepare-pr

Rebase GitHub Pull Requests onto main, apply review fixes, and run automated gates.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/Team-Hireal/RealChat --skill prepare-pr-team-hireal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prepare-pr
Source: https://github.com/Team-Hireal/RealChat/tree/main/openclaw/.agents/skills/prepare-pr
Command: npx skills add https://github.com/Team-Hireal/RealChat --skill prepare-pr-team-hireal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, git, pnpm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the complex and error-prone process of preparing a GitHub Pull Request for merging, ensuring it's up-to-date, reviewed, and passes all automated checks.

Core Features & Use Cases

  • Automated Rebasing: Rebase the PR branch onto the latest main branch, handling conflicts.
  • Review Fixes: Apply fixes identified during code review from a review.md file.
  • Gate Execution: Run all necessary build, test, and linting gates.
  • Safe Pushing: Push changes exclusively to the PR's head branch, never to main.
  • Use Case: After a code review, use this Skill to automatically incorporate feedback, rebase your branch, ensure all tests pass, and push the updated code, making it ready for the final merge.

Quick Start

Use the prepare-pr skill to rebase the current PR onto main, fix review findings, run gates, and push the changes back to the PR branch.

Frequently Asked Questions about prepare-pr

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

FAQPage Schema
How do I automate rebasing a GitHub pull request onto the main branch?

You need GitHub CLI (gh), Git, and pnpm installed to automate rebasing a pull request. This Skill rebases your branch onto main, handles conflicts, and pushes updates exclusively to the PR head branch without touching main.

Can I automatically apply code review fixes before merging a pull request?

Yes, you can automatically apply code review fixes by providing a review.md file. This Skill reads the review findings, commits the necessary fixes, executes automated gates, and ensures your pull request is merge-ready.

Do I need GitHub CLI and pnpm to prepare pull requests for merging?

Yes, you need GitHub CLI (gh), Git, and pnpm installed as dependencies. These tools are strictly required to execute the automated rebasing, gate running, and branch pushing processes for your pull requests.

What's the best way to ensure a GitHub PR passes all CI/CD gates before merging?

The best way to ensure a PR passes CI/CD gates is using this Skill to execute necessary build, test, and linting gates. It runs these automated checks after rebasing and applying review fixes to guarantee merge readiness.

Why does this pull request preparation process avoid pushing directly to main?

The pull request preparation process avoids pushing directly to main to enforce safe branching workflows. It strictly pushes changes to the PR's head branch, ensuring the main branch remains stable until the final merge.