fix-pr

fix-pr is a skill for Claude Code, Codex from griffinwork40/agent-afk. It costs 168 tokens per session (2,010 once invoked), scanned A, original, Apache-2.0.

A workflow for resolving review comments and failed automated checks on a pull request, which is a proposed code change awaiting review. It applies fixes in an isolated copy of the repository and can push the result.

In plain words
What is it for?
Use it with a pull request number or URL to address inline comments, review summaries, conversation comments, and failing CI checks.
Why use it?
It gathers feedback and CI failures in one place, reducing the manual work of finding, fixing, testing, and sending back requested changes.

Skill for Claude CodeCodex

Part of the awa-bundled plugin — 18 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/griffinwork40/agent-afk/fix-pr
Any agent
npx skills add griffinwork40/agent-afk --skill fix-pr
Clone the repo
git clone --depth 1 https://github.com/griffinwork40/agent-afk

Made for: Claude Code, Codex.

Or install awa-bundled, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/griffinwork40/agent-afk/fix-pr.svg)](https://agentmods.dev/skills/griffinwork40/agent-afk/fix-pr)
Your own site
<a href="https://agentmods.dev/skills/griffinwork40/agent-afk/fix-pr"><img src="https://agentmods.dev/badge/skills/griffinwork40/agent-afk/fix-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,010 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00168 $0.02010
Opus 5 $0.00084 $0.01005
Sonnet 5 $0.00034 $0.00402
Haiku 4.5 $0.00017 $0.00201

Measured 5d ago against content hash c89030fd9ab9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fix-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • fix-pr — 97% identical, 1 lines differ
src/bundled-plugins/awa-bundled/skills/fix-pr/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sub-agent contract

/contract

fix-pr turns "review feedback / red CI on PR N" into a pushed fix commit with test evidence, using worktree isolation so the operator's working tree is never disturbed. It is the composition the operator previously chained by hand: /resolve-style feedback interpretation + managed worktree + budget-bounded fix subagent + test gate + push.

Skip when: the fix is a one-line suggestion the operator pointed at directly (apply inline); the PR is already green with all threads resolved (report and stop); or the work is local-only and unpushed (use /ship).


Phase 0 — Input gate & preflight (inline, fail closed)

Parse $ARGUMENTS:

  • pr — PR number or URL (required). If absent, stop: "fix-pr requires a PR number or URL."
  • repo — repo path from --repo; default: current working directory's git root.
  • no_push — from --no-push: produce the fix in a kept worktree + diff summary, no remote mutation.
  • re_review — from --re-review: after pushing, re-trigger /review (top-level only — see Phase 6 guard).

Preflight (all inline bash; any failure → Blocked, do not improvise):

  1. gh auth status — must be authenticated. Fail closed if not.
  2. gh pr view <pr> --json state,headRefName,headRepositoryOwner,isCrossRepository,mergeable,url — PR must be OPEN.
  3. Fork guard: if isCrossRepository is true and the authenticated account cannot push to the head repo, emit Blocked naming the fork and stop. Never attempt workarounds.
  4. Record head_branch — this is the ONLY branch this skill will ever push to.

Phase 1 — Feedback harvest (inline)

Reviewer feedback lives in three distinct GitHub stores — miss any one and the fix is silently partial. Harvest all three, then the gates:

  1. Inline review comments: gh api repos/{owner}/{repo}/pulls/<pr>/comments — comments anchored to a diff line (each carries path/line/diff_hunk).
  2. Review summary bodies: gh pr view <pr> --json reviews — the top-level body of each APPROVE / REQUEST_CHANGES / COMMENT review submission.
  3. Issue-level conversation comments: gh pr view <pr> --json comments (equivalently gh api repos/{owner}/{repo}/issues/<pr>/comments). A PR is also an issue, and its plain conversation comments ("also update the docs", "rename this before merge") live on the issues endpoint — the pulls/<pr>/comments endpoint does NOT return them. Skipping this source is the known gap: reviewers who leave feedback as normal PR comments are otherwise dropped entirely, and a PR can have actionable conversation comments with zero inline review comments.

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 113 lines · 168 tokens per session scan A c89030fd9ab9

Subscribe to this mod's changes

fix-pr is a skill published in the GitHub repository griffinwork40/agent-afk (54 stars, last pushed today), licensed Apache-2.0. It adds 168 tokens to every session and 2,010 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ian-xiaohei-illustrations

生成 Ian 风格的中文正文配图。用于用户要求为中文文章、帖子、博客、Notion 文档、工作流文档、方法论、流程、结构、状态、隐喻或观点生成“怪诞”“小黑”“手绘”“正文配图”“文章插图”“配图建议”“shot list”“去标题/改图”等任务;默认使用小黑 IP、纯白手绘、少量红橙蓝批注、简洁清爽但天马行空的视觉风格。.

chaitanyagiri/munder-difflin · 122 tokens

capabilities

Your capability catalog — read this at boot. Lists the temporal date-range skills and the external integrations (reached via the loopback broker) available to you as a spawned worker, and exactly how to call each. Read-only. Consult it whenever you're unsure what tools/integrations you have or how to invoke them.

chaitanyagiri/munder-difflin · 69 tokens

temporal

Resolve ANY named time window — today, yesterday, thisWeek, lastWeek, last7Days, last30Days, last90Days, thisMonth, lastMonth, thisQuarter, lastQuarter, thisYear, lastYear, last12Months — or an arbitrary range (lastNdays / lastNweeks / lastNmonths) to a concrete ISO date range relative to your run time. Read-only: no…

chaitanyagiri/munder-difflin · 114 tokens

last30Days

Resolve "last30Days" to a concrete ISO date range relative to your run time — a rolling 30-day window ending today. Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a "last 30 days" / trailing-month task…

chaitanyagiri/munder-difflin · 83 tokens

md-audit

Read-only code quality audit — scan the current working directory for common issues (bugs, dead code, security hotspots, missing error handling) and return a prioritised findings report. No files are edited. Use when asked to "audit the code", "quick audit", "find issues", "code scan", or "what's wrong with this…

chaitanyagiri/munder-difflin · 85 tokens

thisQuarter

Resolve "thisQuarter" to a concrete ISO date range relative to your run time — this quarter so far (quarter start → today). Returns inclusive civil dates plus exact UTC instants so you have temporal context without computing dates by hand. Read-only: no writes, no network. Use before a quarter-to-date task (QTD…

chaitanyagiri/munder-difflin · 78 tokens