Peter CI Gate for Openclaw

An automated CI gatekeeper that analyzes Pull Request checks to determine merge readiness and troubleshoot failures.

chinasilva
v1.1.0
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-ci-gate

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-ci-gate 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 CI Gate?

Peter CI Gate is a specialized tool within the ecosystem of Openclaw Skills designed to streamline the final stages of the development lifecycle. It acts as an intelligent intermediary between developers and CI/CD pipelines, providing a clear green light or red light for code integration.

By automating the inspection of remote check statuses, this skill identifies whether build failures are caused by actual code regressions or intermittent flakiness. This ensures that developers spend less time debugging infrastructure and more time shipping high-quality code through a standardized verification process.

Peter CI Gate Use Cases

  • Determining if a Pull Request is fundamentally ready for merging based on all required CI checks.
  • Diagnosing the specific cause of a CI failure without manually digging through lengthy logs.
  • Deciding between a manual code fix and a single-attempt rerun strategy for intermittent pipeline issues.
  • Providing a definitive gate conclusion to stakeholders when multiple checks are pending or failing.

How Peter CI Gate Works

  1. The skill initiates a fetch of the current PR status and checks using the GitHub CLI to gain a complete overview of the build pipeline.
  2. If failures are detected, it retrieves the most recent workflow details and failure logs to pinpoint the exact point of contention.
  3. It applies a decision strategy: for genuine code or test failures, it generates a repair recommendation; for obvious flakiness, it triggers a single rerun.
  4. Finally, it outputs a clear gate conclusion, either marking the PR as mergeable or identifying the specific blockers preventing progress.

Peter CI Gate Setup

To integrate this skill into your Openclaw Skills environment, ensure the GitHub CLI (gh) is installed and authenticated, then follow these steps:

# Ensure GitHub CLI is authenticated
gh auth status

# The skill uses the following commands to inspect the environment
gh pr view <pr_number> --json number,state,mergeStateStatus
gh pr checks <pr_number>

Peter CI Gate Data Schema & Taxonomy

Field Description Source
pr_metadata Contains PR number, title, and current branch name gh pr view
check_results A list of all status checks (Success, Failure, Pending) gh pr checks
failure_logs Captured logs from the specific failed workflow run gh run view --log-failed
gate_status The final verdict: Mergeable or Blocked Logic Output

Peter CI Gate Advanced Features

  • Automated failure classification to distinguish between code errors and environment-related flakiness.
  • Smart rerun management that limits attempts to avoid resource waste while using Openclaw Skills.
  • Detailed evidence gathering that links specific failed jobs and logs directly to the merge decision.
  • Strict guardrails that prevent ignoring required checks or treating temporary rerun successes as permanent fixes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*