Skip to content
Skill

Fix PR

Works through PR review comments and failing CI checks, fixing and replying with evidence

Fix PR is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About Fix PR

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).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (11 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Fix PR 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.

More from prathamdby/skills

  1. Writes an evidence-backed implementation plan for a repo change without editing code

    • Open source
    • 6 GitHub stars
    • Developer tools
  2. Clones external Git repos locally and answers questions from their source code

    • Open source
    • 6 GitHub stars
    • Developer tools
  3. Creates scoped, diff-grounded Conventional Commit messages and commits them locally

    • Open source
    • 6 GitHub stars
    • Developer tools
  4. Simplifies a git diff's slop without changing behavior or staging unrelated work

    • Open source
    • 6 GitHub stars
    • Developer tools
  5. Lets your agent read GitHub PR status, reviews, and CI failures without editing code

    • Open source
    • 6 GitHub stars
    • Developer tools
  6. Saves a redacted session handoff file and resumes work from it later

    • Open source
    • 6 GitHub stars
    • Developer tools