Agent skill

PR Fixer

by ambient-code in ambient-code/platform

Trigger the Amber Handler to automatically fix a pull request (rebase, address review comments, run lints/tests, push fixes).

MITAuto-check passedDevelopment

Install PR Fixer

skills CLI
$ npx skills add ambient-code/platform --skill pr-fixer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ambient-code/platform pr-fixer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ambient-code/platform.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pr-fixer .claude/skills/pr-fixer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pr-fixer
GitHub stars
131
Token cost
~1k tokens
SKILL.md length
488 words
Files
2
Skills in repo
18
Repo updated
First seen
Licence
MIT

At a glance

Trigger the Amber Handler to automatically fix a pull request (rebase, address review comments, run lints/tests, push fixes).

  • Works in 6 steps: Validate prerequisites → Pre-flight PR check → Trigger the fix → …
  • The Amber Handler to automatically fix a pull request (rebase
  • SKILL.md covers Usage, What It Does, Error Handling and When to Invoke This Skill
  • Calls gh; reaches github.com

What it does

PR Fixer is an agent skill from ambient-code/platform. Trigger the Amber Handler to automatically fix a pull request (rebase, address review comments, run lints/tests, push fixes). Posts @ambient-code on the PR to trigger the fix prompt. Use when user types /pr-fixer <number, says "fix PR", "run pr-fixer", "address PR comments", or "auto-fix pull request".

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `evals/evals.json`).

It sits in Development, covering Linting and formatting and Pull requests. The repository describes itself as: Vision/Mission https://ambient-code.ai : Virtual team management and collaboration platform. User guides: https://ambient-code.github.io/platform/. The licence is MIT.

When your agent uses it

  • The Amber Handler to automatically fix a pull request (rebase
  • Address review comments
  • Run lints/tests
  • User types /pr-fixer <number

Example prompts

  • “fix PR”
  • “run pr-fixer”
  • “address PR comments”
  • “/pr-fixer”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Validate prerequisites
  2. Pre-flight PR check
  3. Trigger the fix
  4. Locate the triggered run
  5. Print the run URL immediately so the user has it
  6. Spawn a background agent to monitor the run (30-minute timeout)

What it can do on your machine

Read from SKILL.md and the folder at commit e15afd3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PR Fixer loads about 1k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 488 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ambient-code/platform at commit e15afd3, republished under its MIT licence (© ambient-code). 488 words, ~1,010 tokens.

Download SKILL.mdSave it as .claude/skills/pr-fixer/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
pr-fixer
description
Trigger the Amber Handler to automatically fix a pull request (rebase, address review comments, run lints/tests, push fixes). Posts @ambient-code on the PR to trigger the fix prompt. Use when user types /pr-fixer <number>, says "fix PR", "run pr-fixer", "address PR comments", or "auto-fix pull request".

PR Fixer Skill

Triggers the Amber Handler (amber-issue-handler.yml) to automatically fix a pull request. Posting @ambient-code on a PR triggers the fix prompt, which creates an ACP session that rebases the PR, evaluates reviewer comments (fixes valid issues, responds to invalid ones), runs lints and tests, and pushes the fixes.

Usage

/pr-fixer <pr-number>

The PR number is required. Example: /pr-fixer 1234

What It Does

  1. Validate prerequisites

    • Confirm gh CLI is authenticated (gh auth status)
    • Detect the repo from the local git remote (gh repo view --json nameWithOwner --jq .nameWithOwner)
  2. Pre-flight PR check

    • Check the PR exists and its state:
      bash
      gh pr view <N> --repo <owner/repo> --json state,isCrossRepository --jq '{state, isCrossRepository}'
    • gh pr view returns state in uppercase: OPEN, CLOSED, or MERGED. A non-zero exit code (with stderr error) means the PR does not exist.
    • If the exit code is non-zero: abort with "PR #N not found in <owner/repo>."
    • If state is CLOSED or MERGED: abort with "PR #N is already <state>. Nothing to fix." (use the actual uppercase value returned)
    • Only proceed if state is exactly OPEN.
    • If PR is from a fork (isCrossRepository: true), warn: "PR #N is from a fork. The Amber Handler skips fork PRs. Push the branch to the org repo and re-open the PR, or fix locally."
  3. Trigger the fix

    bash
    gh pr comment <N> --repo <owner/repo> --body "@ambient-code"
  4. Locate the triggered run

    • Wait a few seconds for the run to register
    • Find it via:
      bash
      gh run list --workflow=amber-issue-handler.yml --repo <owner/repo> --limit 5 --json databaseId,status,createdAt,event
    • Match the most recent issue_comment-triggered run created after the comment
  5. Print the run URL immediately so the user has it:

    PR Fixer dispatched for PR #<N>
    Run: https://github.com/<owner/repo>/actions/runs/<run-id>
    PR:  https://github.com/<owner/repo>/pull/<N>
    
    Monitoring in background — you'll be notified when it completes.
  6. Spawn a background agent to monitor the run (30-minute timeout):

    • Poll gh run view <run-id> --repo <owner/repo> --json status,conclusion every 30 seconds
    • If 30 minutes elapse without completion, notify: "PR Fixer timed out after 30 minutes. Check the run manually."
    • When the run reaches a terminal state, notify with:
      • Run conclusion (success/failure/cancelled)
      • Session name and phase (parse from gh run view <run-id> --repo <owner/repo> --json jobs — look for the "Session summary" step output)
      • Whether commits were pushed (check gh pr view <N> --repo <owner/repo> --json commits count before and after)
      • Links to the GHA run and the PR
Show full SKILL.md (121 more words)Show less

Error Handling

  • No PR number provided: Print usage: /pr-fixer <pr-number>
  • gh not authenticated: "Error: GitHub CLI is not authenticated. Run gh auth login first."
  • Fork PR detected: "Warning: PR #N is from a fork. The Amber Handler skips fork PRs. Push the branch to the org repo and re-open the PR, or fix locally."
  • Run not found after dispatch: "Warning: Could not locate the triggered run. Check manually: https://github.com/<owner/repo>/actions/workflows/amber-issue-handler.yml"
  • All session steps skipped: The Amber Handler's fix steps have conditions (non-fork, correct prompt type). If steps are skipped, check the run logs for why.

When to Invoke This Skill

Invoke when users say things like:

  • "/pr-fixer 1234"
  • "Fix PR 1234"
  • "Run the PR fixer on 1234"
  • "Trigger pr-fixer for PR #1234"

© ambient-code, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/pr-fixer of ambient-code/platform.

  • SKILL.md
  • evals/evals.json

Open the folder on GitHubat commit e15afd3

Compare with similar skills

PR Fixer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PR Fixer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Fixer this skillambient-code/platform131—~1kAutomated safety check: PassMIT
Babysit PR To Pass CIsgl-project/sglang37k2 repos~3kAutomated safety check: PassApache-2.0
Pre Pipeline Reviewsuperplanehq/superplane7.7k—~1.2kAutomated safety check: PassCustom licence
Lint Commit PRTresjs/tres3.8k—~1.1kAutomated safety check: PassMIT
PR Pushicebear0828/codex-proxy1.8k—~2.2kAutomated safety check: NotesCustom licence
PR Pushicebear0828/codex-proxy1.8k—~2.3kAutomated safety check: NotesCustom licence

Similar skills

  • Babysit PR To Pass CI

    sgl-project/sglang

    Start and persistently pursue a goal to babysit an SGLang pull request until selected GitHub Actions workflows pass on the latest PR head.

    37k GitHub starsUsed in 2 repos~3k tokens
    DevelopmentAuto-check passed
  • Pre Pipeline Review

    superplanehq/superplane

    Reviews SuperPlane code changes for correctness and reuse, then runs fast Make targets (lint, format, build) that Semaphore CI runs so easy checks do not fail in the pipeline.

    7.7k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Lint Commit PR

    Tresjs/tres

    Lint local changes, auto-fix, conventional commit, and optionally create PR

    3.8k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • PR Push

    icebear0828/codex-proxy

    Package the current working changes into a standards-compliant codex-proxy pull request: branch hygiene, commit message linting, CHANGELOG prompt, conventional commit, push, and gh pr create against…

    1.8k GitHub stars~2.2k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • PR Push

    icebear0828/codex-proxy

    Package the current working changes into a standards-compliant codex-proxy pull request: branch hygiene, commit message linting, CHANGELOG prompt, conventional commit, push, and gh pr create against…

    1.8k GitHub stars~2.3k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Adk Setup

    google/adk-python

    Official

    Sets up a local ADK Python development environment in a git clone of the open-source adk-python repository: a uv virtual environment, all dependency extras, pre-commit hooks, and a first unit-test…

    22k GitHub stars~993 tokensUpdated today
    DevelopmentAuto-check: notes

More from ambient-code/platform

All 18 skills in this repo
  • Align

    ambient-code/platform

    Run a convention alignment check across the codebase to measure adherence to documented standards.

    131 GitHub stars~754 tokensUpdated yesterday
    Auto-check passed
  • Amber Review

    ambient-code/platform

    Perform a comprehensive code review using repository-specific standards.

    131 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Cypress Demo

    ambient-code/platform

    Create a Cypress-based video demo for a feature branch with cursor, click effects, and captions.

    131 GitHub stars~879 tokensUpdated yesterday
    Auto-check: notes
  • Deploy

    ambient-code/platform

    Deploy, update manifests, and troubleshoot the ambient-ui component.

    131 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Discover

    ambient-code/platform

    Discover domain-specific skills and context before starting any coding or spec work.

    131 GitHub stars~747 tokensUpdated yesterday
    Auto-check passed
  • Frontend Development

    ambient-code/platform

    Required context for all frontend work. An agent skill from ambient-code/platform.

    131 GitHub stars~525 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about PR Fixer

What does PR Fixer do?

Trigger the Amber Handler to automatically fix a pull request (rebase, address review comments, run lints/tests, push fixes). PR Fixer is an agent skill from ambient-code/platform. Trigger the Amber Handler to automatically fix a pull request (rebase, address review comments, run lints/tests, push fixes).

When should I use PR Fixer?

PR Fixer fits situations like: the Amber Handler to automatically fix a pull request (rebase; address review comments; run lints/tests; user types /pr-fixer <number.

How do I install PR Fixer in Claude Code?

Run `npx skills add ambient-code/platform --skill pr-fixer -a claude-code`. Or copy the skill folder (skills/pr-fixer in ambient-code/platform) into .claude/skills/pr-fixer in your project. Claude Code loads it when a task matches its description.

How do I install PR Fixer in Codex?

Run `npx skills add ambient-code/platform --skill pr-fixer -a codex`. Or copy the skill folder (skills/pr-fixer in ambient-code/platform) into .agents/skills/pr-fixer in your project. Codex loads it when a task matches its description.

Can I use PR Fixer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ambient-code/platform --skill pr-fixer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-fixer, .gemini/skills/pr-fixer, .github/skills/pr-fixer and .opencode/skills/pr-fixer in your project.

What does PR Fixer need to run?

Going by SKILL.md and its folder, PR Fixer needs the command-line tools its instructions call (gh).

Does PR Fixer access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is PR Fixer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PR Fixer use?

PR Fixer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PR Fixer use?

About 1k tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PR Fixer?

Skills that share tags, products or a category with PR Fixer: Babysit PR To Pass CI (sgl-project/sglang, 37k stars), Pre Pipeline Review (superplanehq/superplane, 7.7k stars), Lint Commit PR (Tresjs/tres, 3.8k stars) and PR Push (icebear0828/codex-proxy, 1.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR Fixer?

ambient-code (a GitHub organization) maintains it in ambient-code/platform, which has 131 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on October 6, 2026.

Source: ambient-code/platform on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.