# Fix PR

> Fix PR is an open-source agent skill for developer tools. Works through PR review comments and failing CI checks, fixing and replying with evidence. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/prathamdby/skills/tree/main/skills/engineering/fix-pr
- **Repository:** https://github.com/prathamdby/skills
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** fix-pr
- **Collection:** https://github.com/prathamdby/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill takes an open pull request and collects every unresolved review thread, review body, conversation comment and check annotation tied to the head commit. It checks each claim against the surrounding source code, decides whether to fix, reject, clarify or mark it already fixed, and then applies only the justified changes in focused groups. Tests or checks covering each change run before the agent continues, and a required failing check stops the run.

The workflow follows a fixed order. It syncs the PR head branch cleanly, refuses force resets or force pushes, and does not resolve merge conflicts. Commits go through a sibling commit skill, and the remote SHA is compared with local HEAD after pushing. Replies are posted through the gh skill, and each reply is tied to its original comment or thread.

The skill expects the GitHub CLI and the sibling gh and commit skill files in the same repository. It can be told to stay local with a do-not-push instruction or to skip replies with a do-not-reply instruction.

## When your agent uses it

> Collect all unresolved PR review feedback and failing CI checks, verify each claim in source code, apply and test justified fixes, commit and push them, and post evidence-backed replies. Use whenever the user asks to address PR comments, handle review feedback, fix failing CI on a PR, or get a pull request green. Do not use for read-only PR or CI inspection or replying without editing code (use gh), or for opening a PR (use make-pr).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/prathamdby/skills/tree/HEAD/skills/engineering/fix-pr)
- [License: MIT](https://github.com/prathamdby/skills/tree/HEAD/skills/engineering/fix-pr)

## Features

- **Full feedback collection:** Gathers unresolved review threads, review bodies, conversation comments and head-SHA check annotations across paginated GitHub endpoints.
- **Source-level verification:** Traces each finding in the surrounding code and assigns a verdict with evidence before any edits.
- **Focused fixes and tests:** Applies justified changes in clusters and runs the narrowest tests or checks that cover them.
- **Safe branch syncing:** Checks out the PR head, fast-forwards to the remote SHA and stops on dirty trees or push rejections.
- **Evidence-backed replies:** Posts replies to inline threads or the main conversation that state what changed or why a claim was declined.
- **Override controls:** Accepts a PR number or URL and honors instructions to keep changes local or skip replies.

## Good for

- Address all open review comments on my current pull request
- Fix the failing CI checks on PR 42 and get it green
- Handle reviewer feedback on a PR and reply to each comment
- Apply the justified review fixes locally without pushing

## Install

### Claude Code

This skill ships in the `skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add prathamdby/skills
/plugin install skills@pratham-skills
```

Or copy only this skill to `~/.claude/skills/fix-pr`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/fix-pr &&
cp -R "$tmp/skills/engineering/fix-pr" ~/.claude/skills/fix-pr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/fix-pr` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/fix-pr` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/fix-pr &&
cp -R "$tmp/skills/engineering/fix-pr" ~/.agents/skills/fix-pr &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/fix-pr` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/fix-pr` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/fix-pr &&
cp -R "$tmp/skills/engineering/fix-pr" ~/.cursor/skills/fix-pr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/fix-pr` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/prathamdby/skills.git --path skills/engineering/fix-pr
```

Or copy the folder to `~/.gemini/skills/fix-pr` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/fix-pr`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/prathamdby/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/fix-pr &&
cp -R "$tmp/skills/engineering/fix-pr" ~/.copilot/skills/fix-pr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/fix-pr` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/prathamdby/skills.git
```

Then copy `skills/skills/engineering/fix-pr` into your agent's skills folder as `fix-pr`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs the gh CLI for GitHub calls, plus the sibling gh and commit skill files it reads before starting. If those files are missing, it reports the path and stops.

### Does Fix PR resolve review threads?

No. It never resolves review threads unless the user explicitly asks and an authorized operation supports it.

### When should Fix PR not be used?

It should not be used for read-only PR or CI inspection, for replying without code edits, or for opening a new PR, which belongs to the make-pr skill.

### Does Fix PR force push or resolve merge conflicts?

No. It never force resets, never force pushes and does not fix merge conflicts.

### How do I install Fix PR in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/fix-pr to use it in all your projects, or to .claude/skills/fix-pr in one project. Or install the skills plugin, which includes it: /plugin marketplace add prathamdby/skills, then /plugin install skills@pratham-skills.

### Does Fix PR run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Fix PR?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Fix PR?

The closest alternatives to Fix PR are Gh, Git PR feedback, Iterate PR, Review PR and Review PR comments.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Gh](https://ai-powered.com/skills/gh-prathamdby): Gh is an open-source agent skill for developer tools.
- [Git PR feedback](https://ai-powered.com/skills/git-pr-feedback): Git PR feedback is an open-source agent skill for developer tools.
- [Iterate PR](https://ai-powered.com/skills/iterate-pr): Iterate PR is an open-source agent skill for developer tools.
- [Review PR](https://ai-powered.com/skills/review-pr-tonyghiani): Review PR is an open-source agent skill for developer tools.
- [Review PR comments](https://ai-powered.com/skills/review-pr-comments): Review PR comments is an open-source agent skill for developer tools.
- [Fix ci](https://ai-powered.com/skills/fix-ci): Fix ci is an open-source agent skill for developer tools.
- [PR address feedback](https://ai-powered.com/skills/pr-address-feedback): PR address feedback is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/fix-pr
