prepare-pr

Rebase GitHub pull requests onto main, apply review fixes, and run automated gates.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of preparing a GitHub Pull Request for merging by automating essential pre-merge checks and updates.

Core Features & Use Cases

  • Automated Rebasing: Rebase PR commits onto the latest main branch to resolve conflicts.
  • Review Fixes: Apply fixes identified during code reviews from .local/review.md.
  • Gate Execution: Run automated tests and build processes to ensure code quality.
  • Safe Pushing: Push changes exclusively to the PR's head branch, never to main.
  • Use Case: After receiving feedback on a PR, use this Skill to automatically rebase your branch, fix reported issues, ensure all tests pass, and push the updated code, 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 pull request onto the main branch?

To automatically rebase a GitHub pull request onto the main branch, this Skill rebases your commits, resolves conflicts, runs automated gates, and pushes updates to the PR's head branch. This ensures your pull request is fully prepared for merging without manual intervention.

Can I automate applying code review fixes to a pull request before merging?

Yes, you can automate applying code review fixes before merging by using this Skill to read review findings from `.local/review.md`. It automatically addresses these review findings, commits the necessary fixes, and pushes the updated code to your PR head branch.

How do I run automated CI/CD gates on a pull request before merging?

To run automated CI/CD gates on a pull request before merging, this Skill executes your automated tests and build processes during PR preparation. It ensures all automated gates pass successfully before pushing the final changes to the PR head branch.

Does this Skill merge pull requests directly to the main branch?

No, this Skill does not merge pull requests directly to the main branch. It strictly prepares PRs for merging by pushing changes exclusively to the PR's head branch, ensuring the main branch remains protected until you manually initiate the final merge.

What is the best way to prepare a GitHub PR for merge after resolving conflicts?

The best way to prepare a GitHub PR for merge after resolving conflicts is to automate the rebase, gate execution, and push sequence. This Skill safely rebases onto main, runs required automated tests, and pushes the finalized commits to your PR head branch.