fix

fix is a command for Claude Code from XRenSiu/claude-code-forge. It costs 18 tokens per session (1,768 once invoked), scanned A, original, MIT.

A repair workflow for fixing code problems or issues found in a review. It can work on selected files, directories, priorities, or a review report.

In plain words
What is it for?
Use it to fix code after review, address problems in a chosen path, verify against a product requirements document, or run test-first development (TDD), where tests are written before the code.
Why use it?
It turns reported or discovered problems into a focused repair process instead of requiring you to organise each fix manually. An optional loop can repair and recheck issues repeatedly.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pdforge plugin — 10 skills, 13 commands, 5 agents, 2 hooks shipped together

Good fit Use it to fix code after review, address problems in a chosen path, verify against a product requirements document, or run test-first development (TDD), where tests are written before the code.

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

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

Made for: Claude Code.

Or install pdforge, the plugin that ships this one along with the rest of its 10 skills, 13 commands, 5 agents, 2 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/xrensiu/claude-code-forge/fix/github.svg)](https://agentmods.dev/commands/xrensiu/claude-code-forge/fix)
Your own site
<a href="https://agentmods.dev/commands/xrensiu/claude-code-forge/fix"><img src="https://agentmods.dev/badge/commands/xrensiu/claude-code-forge/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 fix

Your own site · 80×15
<a href="https://agentmods.dev/commands/xrensiu/claude-code-forge/fix"><img src="https://agentmods.dev/badge/commands/xrensiu/claude-code-forge/fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,768 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.00018 $0.01768
Opus 5.5 $0.00007 $0.00707
Sonnet 5.5 $0.00004 $0.00354
Haiku 4.5 $0.00002 $0.00177

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

Security

Grade A, and why

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 1mo 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/pdforge/commands/fix.md · 212 lines

How it starts

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

/fix 命令

快速启动问题修复流程,自动激活 issue-fixer Agent 和 systematic-debugging Skill。

使用方式

# 基本用法:修复指定文件的问题
/fix src/auth/login.ts

# 根据审查报告修复
/fix --review docs/reviews/code-review-2024-01-15.md

# 修复特定优先级的问题
/fix --priority critical

# 启动验证循环(自动重新审查直到通过)
/fix --loop

# 指定最大循环次数
/fix --loop --max-rounds 5

# 修复并重新运行审查
/fix --loop src/auth/ --prd docs/prd/auth.md

参数说明

参数 说明 默认值
<path> 要修复的文件或目录 当前目录
--review <file> 审查报告文件路径 -
--prd <file> PRD 文档(用于规格验证) -
--priority <level> 只修复指定优先级(critical/important/suggestion) all
--loop 启动验证循环 false
--max-rounds <n> 最大循环次数 5
--no-tdd 跳过 TDD(不推荐) false

执行流程

┌─────────────────────────────────────────────────────────────┐
│                      /fix 执行流程                          │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  1. 解析输入                                                │
│     ├── 有 --review?→ 读取审查报告                         │
│     └── 无 --review?→ 扫描代码查找问题                     │
│                                                             │
│  2. 激活 systematic-debugging Skill                        │
│     └── 按 4+1 阶段分析每个问题                             │
│                                                             │
│  3. 调用 issue-fixer Agent                                 │
│     ├── 分类问题(CRITICAL/IMPORTANT/SUGGESTION)           │
│     ├── 根因分析                                            │
│     ├── TDD 修复                                           │
│     └── 验证修复                                            │
│                                                             │
│  4. 如果 --loop                                            │
│     ├── 重新运行审查                                        │
│     ├── 有新问题?→ 回到步骤 3                              │
│     ├── 全部通过?→ 完成                                   │
│     └── 超过 max-rounds?→ 停止,人工干预                   │
│                                                             │
│  5. 输出修复报告                                            │
│                                                             │
└─────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 212 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. 1mo ago First seen · 212 lines · 18 tokens per session scan A e22dc69d622f

Subscribe to this mod's changes

fix is a command published in the GitHub repository XRenSiu/claude-code-forge (2 stars, last pushed 29d ago), licensed MIT. It adds 18 tokens to every session and 1,768 once invoked, about $0.0001 per session on Opus 5.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.