pr-autopilot

Diagnose CI failures and propose fixes for GitHub pull requests.

31|4|Updated Aug 24, 2021
One-click install
npx skills add https://github.com/razorpay/trino-gateway --skill pr-autopilot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-autopilot
Source: https://github.com/razorpay/trino-gateway/tree/main/.agents/skills/pr-autopilot
Command: npx skills add https://github.com/razorpay/trino-gateway --skill pr-autopilot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates PR CI failure triage and AI review comment handling, reducing manual debugging and accelerating merge readiness.

Core Features & Use Cases

  • Detects failing tests, runs them locally to distinguish flaky vs genuine failures.
  • Auto-generates unit tests following repository patterns to improve coverage.
  • Intelligently processes AI PR review comments and pushes fixes using the pr-creator workflow.
  • Coordinates with repository conventions to ensure changes align with project patterns.

Quick Start

Ask me to fix CI failures on a specific PR by providing the PR number and your local repo path.

Frequently Asked Questions about pr-autopilot

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

FAQPage Schema
How do I automate GitHub PR CI failure fixes and code review comments?

To automate PR CI failure fixes, use this Skill to diagnose failing tests locally, distinguish flaky tests from genuine failures, and push remediation changes directly to GitHub. It processes AI review comments and generates unit tests aligned with your repository patterns.

Can I automatically generate unit tests to close code coverage gaps on a failing PR?

Yes, you can automatically generate unit tests to close coverage gaps. The Skill analyzes your repository conventions and patterns to produce tests that fit your project, running them locally to verify they resolve the CI failures before pushing fixes.

What's the best way to handle flaky tests blocking a GitHub pull request?

The best way to handle flaky tests blocking a PR is to run them locally through the Skill, which distinguishes flaky behavior from genuine code failures. It safely diagnoses the test environment and applies fixes or exemptions based on your project conventions.

Do I need local repo access and GitHub CLI to automate PR remediation?

Yes, you need local repo access and the GitHub CLI to automate PR remediation. The Skill requires local repository access to run tests, diagnose failures, and apply changes safely, while the GitHub CLI interfaces with your pull requests and CI workflows.

How does automated PR remediation align with existing project conventions?

Automated PR remediation aligns with existing project conventions by analyzing your repository patterns before generating fixes or unit tests. The Skill coordinates with your established codebase structure to ensure proposed changes match your project's specific coding standards.

Why does automated CI failure diagnosis require knowledge of project conventions?

Automated CI failure diagnosis requires knowledge of project conventions to safely apply changes without breaking existing patterns. The Skill uses this context to generate unit tests and propose fixes that align with your repository's specific architecture and testing frameworks.