landpr

Automate GitHub pull request merging with rebase or squash strategies.

5|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/marchatton/agent-skills --skill landpr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: landpr
Source: https://github.com/marchatton/agent-skills/tree/main/.agents/skills/00-utilities/landpr
Command: npx skills add https://github.com/marchatton/agent-skills --skill landpr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of merging pull requests (PRs) into the main branch, ensuring a clean and safe integration by automating checks and using preferred merge strategies.

Core Features & Use Cases

  • Automated PR Merging: Handles the end-to-end process of preparing, testing, and merging a PR.
  • Conflict Resolution Guidance: Provides steps for resolving merge conflicts.
  • History Management: Supports both rebase and squash merge strategies.
  • Use Case: When a PR is ready for merging, use this Skill to automatically check out the branch, rebase it onto the latest main, run tests, commit changes, and merge it via GitHub CLI, ensuring the PR is marked as MERGED.

Quick Start

Prepare and merge the pull request with number 123.

Frequently Asked Questions about landpr

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

FAQPage Schema
How do I automate merging a GitHub pull request safely?

To automate merging a GitHub pull request safely, the Skill checks out the PR branch, rebases it onto main, runs tests, and merges using rebase or squash strategy. It ensures a clean repository before integration.

What is the best way to rebase a pull request branch onto main before merging?

The best way to rebase a pull request onto main is using an automated Skill that handles repository cleanup, branch checkout, rebasing, and test execution before committing changes and merging via GitHub CLI.

Does this CI/CD merge automation support squash and rebase strategies?

Yes, this CI/CD merge automation supports both rebase and squash merge strategies. It commits changes and merges the pull request via GitHub CLI while ensuring the PR is marked as MERGED.

How do I resolve merge conflicts when landing a GitHub pull request?

To resolve merge conflicts when landing a GitHub pull request, the Skill provides guidance steps during the automated rebasing process. It ensures the repository is clean before attempting to rebase and merge.

Can I sync the main branch automatically after merging a pull request?

Yes, you can sync the main branch automatically after merging a pull request. The Skill handles syncing the main branch and comments on the PR with merge details once the rebase or squash merge is complete.