prepare-pr

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of preparing a GitHub Pull Request (PR) for merging by automating essential pre-merge checks and updates, ensuring a clean and stable integration.

Core Features & Use Cases

  • Automated Rebasing: Rebase the PR branch onto the latest main branch to resolve conflicts.
  • Review Fixes: Apply fixes for review findings documented in .local/review.md.
  • Gate Execution: Run automated tests and checks (pnpm test, pnpm build, pnpm check) to ensure code quality.
  • Safe Pushing: Push changes back to the PR's head branch with safety checks to prevent accidental merges or pushes to main.
  • Use Case: After receiving feedback on a PR, use this Skill to automatically update the branch, fix reported issues, run all tests, and push the updated PR, making it ready for the next review or merge.

Quick Start

Use the prepare-pr skill to get the current pull request 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 prepare a GitHub pull request for merge by rebasing onto the main branch?

To prepare a GitHub pull request for merge, this Skill automatically rebases your PR branch onto the latest main branch, applies review fixes from .local/review.md, runs automated gates, and pushes the updated changes.

How do I automatically apply code review fixes and run checks before pushing a PR?

You can automatically apply code review fixes documented in .local/review.md and run pnpm test, build, and check gates before safely pushing your PR branch to ensure it passes all required CI/CD checks.

Do I need pnpm and jq installed to automate rebasing and gate execution for my pull request?

Yes, you need pnpm and jq installed in your environment to use this Skill, as it relies on pnpm to execute automated test and build gates, and jq for processing JSON data during the PR preparation.

What is the best way to ensure my pull request is up-to-date and passes all automated gates before merging?

The best way to ensure your pull request is up-to-date and passes automated gates is to use this Skill to rebase onto main, execute pnpm checks, and safely push changes with built-in safety checks preventing accidental pushes to main.

Are there limitations when using automated rebasing for pull requests on GitHub?

A limitation of automated rebasing is that you must resolve any merge conflicts manually if the rebase onto the main branch fails, and the Skill only supports projects configured with pnpm for running automated gates.

Can I prevent accidental pushes to the main branch while preparing my PR?

Yes, this Skill includes safe pushing mechanisms that prevent accidental merges or direct pushes to the main branch, ensuring your changes are only pushed to the PR's designated head branch after passing all checks.