fix

fix is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 11 tokens per session (2,557 once invoked), scanned A, original, MIT.

A bug-fixing command that reads a QA acceptance-test report, clarifies the errors, groups duplicates, and fixes each bug using TDD. TDD means writing a failing test first, then changing the code until it passes.

In plain words
What is it for?
Use it to analyse reported web-application bugs, create stories and backlog or sprint updates, run regression tests, and commit fixes automatically if requested.
Why use it?
It turns unclear test failures into actionable work and helps prevent fixed bugs from returning. It can also create project-management records for the work.

Command for Claude Code

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks 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 commands/thebeardedbearsas/claude-craft/fix
Clone the repo
git clone --depth 1 https://github.com/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 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/thebeardedbearsas/claude-craft/fix.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/fix)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/fix"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,557 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.00011 $0.02557
Opus 5 $0.00005 $0.01278
Sonnet 5 $0.00002 $0.00511
Haiku 4.5 $0.00001 $0.00256

Measured today against content hash c0aa93e1da30, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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.

.claude/commands/qa/fix.md · 288 lines

How it starts

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

QA Recette Fix - Correction Automatisee des Bugs

Complement de /qa:recette. Lit un rapport/session de recette, affine chaque erreur pour la rendre exploitable, genere les documents de project management (stories BMAD, backlog, sprint), puis lance la correction TDD pour chaque bug. Implemente la Regle d'Or : Un bug corrige ne doit JAMAIS reapparaitre.

Arguments

$ARGUMENTS

  • --session=<id> : ID de session recette (ex: REC-20260130-143022) [requis]
  • --dry-run : Affiner les erreurs et generer les documents BMAD sans corriger
  • --severity=<level> : Filtrer par severite minimum (critical, high, medium, low)
  • --skip-fix : Generer uniquement les documents, pas de correction TDD
  • --auto-commit : Commit automatique apres chaque bug corrige

Fonctionnalites Cles

Fonctionnalite Description
Affinage des Erreurs Analyse la cause racine, reproduit via Chrome si disponible
Groupement Intelligent Deduplique les erreurs par cause racine commune
Documents BMAD Genere des bug stories, met a jour backlog et sprint
Correction TDD Workflow RED → GREEN → REFACTOR pour chaque bug
Tests de Regression Generation automatique et mise a jour du registre
Suivi de Progression fix-state.yaml pour reprise et monitoring

Processus en 7 Phases

Session recette (.recette/sessions/{id}/)
        |
        v
  Phase 1: Charger la session et les erreurs
        |
        v
  Phase 2: Affiner les descriptions d'erreurs
        |     - Reproduire via Chrome si besoin
        |     - Identifier la cause racine
        |     - Classifier severite
        |
        v
  Phase 3: Grouper par cause racine
        |     - Deduplication
        |     - Priorisation
        |
        v
  Phase 4: Generer les documents BMAD
        |     - Bug stories (US-XXX-bug-YYY)
        |     - Mise a jour backlog
        |     - Mise a jour sprint-status.yaml
        |
        v
  Phase 5: Correction TDD par bug
        |     - RED: test qui reproduit le bug
        |     - GREEN: correction minimale
        |     - REFACTOR: amelioration
        |
        v
  Phase 6: Verification
        |     - Tous les tests passent
        |     - Tests de regression generes
        |     - Registre regression mis a jour
        |
        v
  Phase 7: Rapport de synthese

Read the full file on GitHub · 288 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. today First seen · 288 lines · 11 tokens per session scan A c0aa93e1da30

Subscribe to this mod's changes

fix is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed yesterday), licensed MIT. It adds 11 tokens to every session and 2,557 once invoked, about $0.0001 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-03.