An autonomous agent that identifies CI failures in a PR, rebases branches, and implements necessary code fixes.

Install

mkdir -p .claude/skills/fix-pr && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3917" && unzip -o skill.zip -d .claude/skills/fix-pr && rm skill.zip

Installs to .claude/skills/fix-pr

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Fix a failing PR by analyzing CI logs and fixing errors. Autonomous workflow that identifies failures, rebases, fixes issues, and pushes.
137 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Validate the state of a pull request
  • →Identify CI failures using a subagent
  • →Checkout and rebase a pull request branch
  • →Fix failures based on type (format, lint, build, unit test)
  • →Commit and push fixes to the pull request

How it works

The skill validates a PR, delegates CI failure identification to a subagent, rebases the branch, applies fixes based on failure type, runs a quality checklist, and then commits and pushes the changes.

Inputs & outputs

You give it
A pull request number
You get back
A fixed pull request with CI failures resolved and pushed changes

When to use fix-pr

  • →Fix CI build failures in a pull request
  • →Rebase stale branches automatically
  • →Resolve linting or formatting errors
  • →Debug failing unit tests in CI

About fix-pr

Coordinates subagents to diagnose build, lint, or test failures. It performs automated git rebase operations and applies programmatic patches to resolve reported issues.

Fix a failing PR by analyzing CI logs and fixing errors. Autonomous workflow that identifies failures, rebases, fixes issues, and pushes.

When not to use it

  • →When the PR state is not OPEN
  • →When complex e2e test failures occur, which require a different skill
  • →When direct analysis of CI logs is preferred over subagent delegation

Limitations

  • →Aborts if the PR state is not OPEN.
  • →Complex e2e test failures are escalated to a different skill.
  • →Requires the `identify-ci-failures` subagent for failure identification.

How it compares

This skill automates the entire process of fixing a failing PR, from validation and failure identification to rebase, fixing, and pushing, unlike manual debugging and git operations.

Compared to similar skills

fix-pr side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
fix-pr (this skill)16moReviewIntermediate
resolve-checks18moReviewIntermediate
agent-github-pr-manager17moReviewIntermediate
agent-github-modes17moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry