comment-fixer

comment-fixer is an agent for Claude Code from XRenSiu/claude-code-forge. It costs 108 tokens per session (817 once invoked), scanned A, original, MIT.

A focused fixer for one accepted pull-request review comment. It writes a failing reproduction test, makes the smallest change needed, runs the test suite, and submits a checked commit.

In plain words
What is it for?
Use it to apply one verified review fix inside a task's permitted files, with a test showing the original problem and checks for regressions.
Why use it?
It prevents a small review issue from turning into an unplanned rewrite and stops when the comment cannot be reproduced or the change would exceed its allowed scope.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the sdlc plugin — 15 skills, 5 agents shipped together

Good fit Use it to apply one verified review fix inside a task's permitted…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xrensiu/claude-code-forge/comment-fixer
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.

Clone the repo
git clone --depth 1 https://github.com/XRenSiu/claude-code-forge

Made for: Claude Code.

Or install sdlc, the plugin that ships this one along with the rest of its 15 skills, 5 agents.

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 comment-fixer

README.md
[![agentmods](https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/comment-fixer.svg)](https://agentmods.dev/agents/xrensiu/claude-code-forge/comment-fixer)
Your own site
<a href="https://agentmods.dev/agents/xrensiu/claude-code-forge/comment-fixer"><img src="https://agentmods.dev/badge/agents/xrensiu/claude-code-forge/comment-fixer.svg" alt="Measured on agentmods" height="20"></a>
Per session 108 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 817 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.00108 $0.00817
Opus 5 $0.00054 $0.00409
Sonnet 5 $0.00022 $0.00163
Haiku 4.5 $0.00011 $0.00082

Measured yesterday against content hash b166d0028d15, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

comment-fixer 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 yesterday.

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/sdlc/agents/comment-fixer.md · 47 lines

What it actually says

comment-fixer

输入(且只有这些——SKILL.state:卡 + 状态摘要 + 这一条线程):

  • 线程:claim / evidence / path:line(或 diff_hunk)/ category
  • 卡(若在 /sdlc 下):allowed_files / forbidden_files / ac_ids;锁文件路径;
  • 仓库测试入口(推断规则同 /commit references/conventions.md)。

不给你的:评审者的提示词、其他线程、置信度、评估结构——信息隔离不是客气,是防作弊。

判据

  • 复现先于修复:先写一个精确复现该主张的失败测试;若它直接通过 → 停,回报 UNEXPECTEDLY_PASSING(主张可能不成立 / 已被顺带修 / 测试没打中),不猜着改。
  • 最小改动:只动主张涉及的范围;不重构、不优化、不"顺便"。看到别的问题记下来回报,不修。
  • 白名单:改动文件必须在卡的 allowed_files 内且不在 forbidden_files;溢出 → 停,回报 WHITELIST_OVERFLOW(这是例外行,交人),不缩小改动"绕过去"。
  • :需要改 done_when.yaml / 锁内文件才能修 → 停,回报 CONTRACT_CHANGE_NEEDED(走变更提案)。
  • 回归:全套件 + lint + 类型 + 构建(存在则跑)。修复引入失败 → 最多再修 1 次;仍红 → git restore 到修复前,回报 REVERTED: <测试名>
  • 提交python3 <plugin>/skills/commit/scripts/verify_commit.py --msg-file … [--card …] [--lock …] 过了才 git commit;消息 fix(scope): <一句> + body 写 Addresses review comment <id>: <主张>

输出形状

[FIX RESULT]
thread: PRRT_… (comment 987)
status: FIXED | UNEXPECTEDLY_PASSING | WHITELIST_OVERFLOW | CONTRACT_CHANGE_NEEDED | REVERTED | BLOCKED
reproduction_test: tests/x.test.ts::boundary_last_element (RED before, GREEN after)
files: [src/x.ts, tests/x.test.ts]
commit: a1b2c3d
regression: full suite PASS (128) · lint PASS · typecheck PASS
notes_for_human: <看到但没修的问题;需要人决定的事>

绝不

  • 绝不跳过复现测试;绝不 --no-verify;绝不改测试断言让测试过;绝不改白名单外文件; 绝不 amend / rebase 已推送提交;绝不回帖或 resolve(那是 review-loop 主循环的事)。
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. yesterday First seen · 47 lines · 108 tokens per session scan A b166d0028d15

Subscribe to this mod's changes

comment-fixer is an agent published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed today), licensed MIT. It adds 108 tokens to every session and 817 once invoked, about $0.0005 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-09-05.

Related

Other agents, from other repositories

pr-test-analyzer

Use this agent when you need to review a pull request for test coverage quality and completeness. This agent should be invoked after a PR is created or updated to ensure tests adequately cover new functionality and edge cases. Typical triggers include the user asking whether tests on a freshly-created PR are thorough…

anthropics/claude-plugins-official · 101 tokens

Principal software engineer

Provide principal-level software engineering guidance with focus on engineering excellence, technical leadership, and pragmatic implementation.

github/awesome-copilot · 23 tokens

nw-software-crafter-reviewer

Use for review and critique tasks. Code-quality + TDD-discipline review of Outside-In TDD implementations. Runs on Haiku for cost efficiency.

nWave-ai/nWave · 39 tokens

screenshot-review

An agent for taking screenshots of a website or app and checking whether its interface looks correct. It returns a report based on the requested visual checks.

YuDefine/nuxt-supabase-starter · 73 tokens

senior-dev

Usar para implementación de código con TDD estricto, refactoring guiado y respuesta a code reviews. Se activa en la fase 3 (desarrollo) de /alfred-dev:feature y en la fase de diagnóstico y corrección de /alfred-dev:fix. También se puede invocar directamente para tareas de implementación, refactoring o consultas sobre…

686f6c61/alfred-dev · 263 tokens

senior-dev

Use to implement tasks from Beads backlog. Claims a task, implements with TDD, closes when done. Can run in parallel.

avelikiy/great_cto · 31 tokens