fix-pr

Diagnose CI failures and apply repository remediation steps to pull requests.

Updated May 14, 2026
One-click install
npx skills add https://github.com/HabibTorjmen/Blockchain --skill fix-pr-habibtorjmen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-pr
Source: https://github.com/HabibTorjmen/Blockchain/tree/main/aztec-packages/yarn-project/.claude/skills/fix-pr
Command: npx skills add https://github.com/HabibTorjmen/Blockchain --skill fix-pr-habibtorjmen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you repair a pull request that is failing CI by diagnosing the failure, applying the right code-quality or test fixes, and pushing an updated PR with minimal churn.

Core Features & Use Cases

  • CI failure identification: Uses a dedicated subagent to classify failures (format, lint, build, unit tests, or e2e) and surface actionable log details.
  • Rebase-first remediation: Checks out the PR and rebases onto the base branch to keep history clean and avoid merge conflicts.
  • Targeted fix loop: Runs the appropriate yarn commands (format, lint, build, package-scoped tests) and iterates until the quality gates pass.
  • Use Case: When a PR starts failing after changes to a subset of packages, it selects the correct fix action, re-runs the relevant workspace tests, and amends/re-pushes as needed (including amend-on-next behavior).

Quick Start

Tell the assistant: /fix-pr 19882.

Frequently Asked Questions about fix-pr

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

FAQPage Schema
How do I automatically fix a failing pull request from CI logs?

To fix a failing pull request from CI logs, this skill diagnoses log-derived failure types like formatting, linting, build, or test failures, and applies the corresponding repository remediation steps automatically. It then rebases and pushes the updated commit.

How does CI failure identification work for PR test remediation?

CI failure identification works by delegating log analysis to a dedicated subagent that classifies failures into categories such as format, lint, build, unit tests, or e2e, surfacing actionable details for targeted test remediation.

Can I use this to rebase and fix formatting failures in AztecProtocol packages?

Yes, you can use this to rebase and fix formatting failures in AztecProtocol packages. It validates the PR via gh, checks out and rebases onto the base branch without merges, and runs the correct yarn-workspace commands to resolve formatting issues.

What is the best way to resolve unit test or build failures in a yarn workspace PR?

The best way to resolve unit test or build failures in a yarn workspace PR is to run a targeted fix loop that executes the appropriate package-scoped yarn commands, iterating until the quality gates pass, and then amends and pushes the commit.

Why does this PR remediation workflow use rebase instead of merge commits?

This PR remediation workflow uses a rebase-based approach instead of merge commits to keep the repository history clean and avoid merge conflicts when checking out and updating the failing pull request.

What are the limitations of automated CI log debugging for pull requests?

Limitations of automated CI log debugging include its intended scope for AztecProtocol/aztec-packages PRs specifically, requiring PR validation via gh, and dependency on a rebase-based workflow without merge commits to push the amended changes.