pr-fix

pr-fix is a skill for Claude Code from LuisFelipeMoro/Harness-devkit. It costs 0 tokens per session (1,223 once invoked), scanned A, original, MIT.

A pull-request comment assistant that lists open review comments, sorts them by whether they need action, fixes selected issues, and drafts replies.

In plain words
What is it for?
Use it to process feedback on the current branch's open pull request, apply agreed fixes, and prepare an answer for every comment.
Why use it?
It removes the manual work of collecting comments and tracking which ones were handled. It waits for confirmation before changing files, posting replies, or pushing commits.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Part of the pr-workflow plugin — 3 skills shipped together

Good fit Use it to process feedback on the current branch's open pull request, apply agreed fixes, and prepare an answer for every comment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luisfelipemoro/harness-devkit/pr-fix
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.

Any agent
npx skills add LuisFelipeMoro/Harness-devkit --skill pr-fix
Clone the repo
git clone --depth 1 https://github.com/LuisFelipeMoro/Harness-devkit

Made for: Claude Code.

Or install pr-workflow, the plugin that ships this one along with the rest of its 3 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 pr-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/pr-fix/github.svg)](https://agentmods.dev/skills/luisfelipemoro/harness-devkit/pr-fix)
Your own site
<a href="https://agentmods.dev/skills/luisfelipemoro/harness-devkit/pr-fix"><img src="https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/pr-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/luisfelipemoro/harness-devkit/pr-fix"><img src="https://agentmods.dev/badge/skills/luisfelipemoro/harness-devkit/pr-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,223 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.01223
Opus 5.5 $0.00000 $0.00489
Sonnet 5.5 $0.00000 $0.00245
Haiku 4.5 $0.00000 $0.00122

Measured 12d ago against content hash abb2170090a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-fix 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 12d 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.

plugins/pr-workflow/skills/pr-fix/SKILL.md · 26 lines

How it starts

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

Input: the current branch's open PR (gh authenticated, git on a named branch); --list for a read-only listing. Output: the PR URL and every comment grouped by file and line; a triage table; with fixes, the changed code, green gates, and one drafted reply per comment. Boundary: one coder dispatch (haiku) per fix group, then one reviewer dispatch (sonnet) that scores the fix diff (step 6b). --list is read-only — no files written, no API mutations. Never pushes, posts, or resolves a thread without an explicit yes. Never leaves a comment unanswered: a valid one gets what changed, a non-actionable one gets why.

Steps

  1. Prerequisites and PR. At this step, read references/procedure.md (this skill's) and run its Steps 1–4: gh auth status (fail → report and stop) · current branch (detached HEAD → stop) · the open PR for the branch (none → "No open PR found for branch <BRANCH>" and stop) · OWNER / REPO.
  2. Fetch inline review comments and general comments (procedure Steps 5–6), plus review bodies and thread grouping from references/comments.md (read at this step).
  3. List per procedure Step 7: the PR URL, inline comments grouped by file and sorted by line (line, else original_line, else ?), bodies truncated to 80 chars, aligned; then general comments; the "No … comments." lines when a section is empty. --list → stop here.
  4. Triage every comment, reading the code at the cited line before judging, into one table: | # | file:line | Comment (≤ 80 chars) | Class | Why | Proposed action | Class: valid (a bug, missing test, security hole, or a fair request) · not-actionable (style preference, opinion, already done, outdated or wrong — say why with file:line) · question (needs an answer, not code). Group valid comments touching the same code into one fix group.
  5. Pick. AskUserQuestion with multiSelect: true over the fix groups (≤ 4 options per question; more → several questions in one call). Nothing picked → skip to step 7. Otherwise record FIX_BASE=$(git rev-parse HEAD) before step 6 touches the tree.
  6. Fix each picked group, sequentially: dispatch the coder matching the code's tier (coder-backend, coder-frontend, or coder), model: "haiku", with paths and ids only — Comments: {ids + file:line} · Files: {list} · Base: $(git merge-base HEAD main, falling back to master) · Change only what the comments ask; a behaviour change gets a test falsified with scripts/verify/break-run.sh. Then run the stack's gates (coding-pipeline/references/quality-gate-reference.md, read at this step) and bash ~/.claude/git-hooks/dup-gate.sh --worktree. A failure → one fresh coder dispatch with the output; still failing → report and stop that group. 6b. Score the fix diff (skipped when nothing was fixed). Dispatch subagent_type: "reviewer", model: "sonnet": Diff: working tree vs FIX_BASE · Comments: {ids + file:line} · Axis: both · Scope: only the fix diff against the comments it addresses. Anything wrong in the changed lines counts, whether a commenter raised it or not; untouched code is out of scope. A low score or any CRITICAL → a fresh coder round (model: "haiku", tier overlay as in step 6): Findings: {path to the reviewer's findings file} (paths only) · Comments: {ids + file:line} · Fix only these findings; the stack gates go green again; then the reviewer confirms narrowly: Diff: working tree vs FIX_BASE · Findings: {path} (paths only) · Scope: prior findings + the fix delta · Axis: both. The loop follows coding-pipeline/references/quality-gate-reference.md § Score Loop. Its exhaustion question lists each finding still below the bar with file:line and comes here, before any reply is drafted. On Accept, step 7 drafts as usual.
  7. Draft replies — one per comment, in the commenter's language, shapes in references/comments.md: fixed (what changed, file:line, commit to follow) · not-actionable (the reason, politely, with evidence) · question (the answer). Show them all in one block.
  8. Confirm before anything leaves the machine. AskUserQuestion: Commit + push + post replies / Commit only / Post replies only / Nothing. Act on exactly that answer with the commands in references/comments.md; never resolve threads unless asked. Gaps left open by an Accept in step 6b: the remaining gaps are listed in the confirm step only, never posted (G7).

Read the full file on GitHub · 26 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago Changed · +1 lines abb2170090a6
  2. 1mo ago First seen · 25 lines · 0 tokens per session scan A f4f02c609c03

Subscribe to this mod's changes

pr-fix is a skill published in the GitHub repository LuisFelipeMoro/Harness-devkit (14 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,223 tokens. 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-10-26.

Related

pr-fix compared with skills from other repositories

pr-fix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-fixLuisFelipeMoro/Harness-devkitSkill146d agoMITA0Claude Code
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.2kyesterdayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k10d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k4d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill974todayMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5kyesterdayMITA51Claude Code, Codex