Peter PR Ops for Openclaw

An automated pull request management tool for serial merging and batch PR cleanup.

chinasilva
v1.2.1
Mar 3, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install peter-pr-ops

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install peter-pr-ops using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Peter PR Ops?

Peter PR Ops is a specialized automation utility designed to handle the full lifecycle of GitHub pull requests. By leveraging this tool within your Openclaw Skills collection, developers can minimize repetitive manual tasks associated with merging, cleaning up, and monitoring PR status. It intelligently switches between custom repository scripts and native GitHub CLI commands to ensure that every merge follows project-specific guardrails and standards.

This skill is particularly effective for teams that maintain high-velocity repositories where manual PR management becomes a bottleneck. It prioritizes local scripts like scripts/automerge and scripts/massageprs, falling back to robust gh command flows only when necessary. This dual-layered approach ensures that your Openclaw Skills setup remains flexible yet reliable across different repository environments.

Peter PR Ops Use Cases

  • Automatically merging a specific pull request while monitoring for CI completion.
  • Batch processing and cleaning up multiple open pull requests to maintain repository health.
  • Synchronizing local documentation baselines immediately after a successful merge.
  • Automating the transition from PR review to merged state without manual UI interaction.

How Peter PR Ops Works

  1. Detects whether the user intends to process a single pull request or perform a batch operation on multiple PRs.
  2. Searches for preferred local automation scripts (scripts/automerge or scripts/massageprs) to handle the request.
  3. Attempts to restore or update missing workflow scripts using the ensure-workflow-docs utility if they are not found in the local path.
  4. Executes the merge using GitHub CLI as a fallback, applying squash strategies for single PRs and standard merge strategies for batch operations.
  5. Monitors CI status to prevent merging on broken builds and provides a final report on the merge state and documentation updates.

Peter PR Ops Setup

To get started with Peter PR Ops as part of your Openclaw Skills, ensure you have the GitHub CLI (gh) installed and authenticated. Then, verify your local script environment:

# Authenticate with GitHub
gh auth login

# Ensure workflow scripts are present
repo_root="$(git rev-parse --show-toplevel)"
"$repo_root/scripts/ensure-workflow-docs" all

Peter PR Ops Data Schema & Taxonomy

The skill manages pull request states and updates local metadata files to track session baselines.

Data Point Source Description
PR Number GitHub API The unique identifier for the pull request being processed.
Merge State GitHub API Tracks if the PR is clean, unstable, or has conflicts.
SESSION-BOOTSTRAP.md Local Filesystem Updated with 'Last Updated' and 'Last Merge Baseline' timestamps.
CI Checks GitHub API Detailed status of all automated tests and required checks.

Peter PR Ops Advanced Features

  • Script Self-Healing: Automatically attempts to restore missing automation scripts from known local paths or templates.
  • Intelligent Merge Strategies: Defaults to squash for single PRs to maintain clean history while using standard merges for batch cleanup to avoid concurrency issues.
  • Documentation Integration: Automatically updates docs/SESSION-BOOTSTRAP.md to reflect the most recent merge baseline.
  • Actionable Reporting: Filters out verbose status updates to only provide the next logical step or the final resolution.
  • CI Guardrails: Built-in protection that strictly prevents forced merges if CI indicators are red.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*