/fix
Fix a confirmed bug: a failing regression test first, then a minimal fix, then the rest of the tdd gates.
$ npx -y skills add arbiterForge/codeArbiter --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/fix
Context preview
What this command does when you run it.
Fix a confirmed bug: a failing regression test first, then a minimal fix, then the rest of the tdd gates.
Command definition
fix.mddescription: Fix a confirmed bug: a failing regression test first, then a minimal fix, then the rest of the tdd gates.
argument-hint: "<what's happening vs. what should happen>"
{{CMD:fix}} — regression-first bug fix
The only permitted entry to bug-fix work. No fix code is written before a regression test reproduces the defect and goes red for the right reason. Give the observed behavior and the expected behavior, plus a stack trace or reproduction when you have one.
**Orientation:** if `.codearbiter/code-map.md` is present, read it before diagnosing — a coarse concern→path→role map that helps locate the defect. Absent is fine; it is read-on-demand.
Flow
Routes to the `tdd` skill, bug variant — Phase 1 is framed around confirming the defect, not building new behavior:
1. **Reproduce** the bug consistently. 2. **Locate the root cause** — the exact code path producing the wrong behavior. 3. **Write a regression test** that fails in the current state for the precise reason the bug causes (not an unrelated error). 4. **Confirm it's red for the right reason** — the failure message matches the described defect.
Only then does `tdd` proceed: minimal fix to green, then the remaining `tdd` gates. The implementation agent (`backend-author`, `frontend-author`, or `infra-author`) is selected by where the bug lives. If the defect cannot be pinned by a failing test, STOP and surface the question.
Routes to
`tdd` (`{{PLUGIN_ROOT}}/skills/tdd/SKILL.md`) — all phases, Phase 1 framed for bug confirmation.
When NOT to use
- New behavior → `{{CMD:feature}}`.
- A behavior-preserving restructure → `{{CMD:refactor}}`.
- "Why does it do this?" → `{{CMD:btw}}`.
- Persisting fix code already written → `{{CMD:commit}}` (the gates still apply).
Hard gate
MUST NOT write fix code before the regression test is red for the right reason. MUST NOT accept a test that passes against the broken state as proof of the defect.
Read more
description: Fix a confirmed bug: a failing regression test first, then a minimal fix, then the rest of the tdd gates. argument-hint: "<what's happening vs. what should happen>"
{{CMD:fix}} — regression-first bug fix
The only permitted entry to bug-fix work. No fix code is written before a regression test reproduces the defect and goes red for the right reason. Give the observed behavior and the expected behavior, plus a stack trace or reproduction when you have one.
**Orientation:** if `.codearbiter/code-map.md` is present, read it before diagnosing — a coarse concern→path→role map that helps locate the defect. Absent is fine; it is read-on-demand.
Flow
Routes to the `tdd` skill, bug variant — Phase 1 is framed around confirming the defect, not building new behavior:
1. **Reproduce** the bug consistently. 2. **Locate the root cause** — the exact code path producing the wrong behavior. 3. **Write a regression test** that fails in the current state for the precise reason the bug causes (not an unrelated error). 4. **Confirm it's red for the right reason** — the failure message matches the described defect.
Only then does `tdd` proceed: minimal fix to green, then the remaining `tdd` gates. The implementation agent (`backend-author`, `frontend-author`, or `infra-author`) is selected by where the bug lives. If the defect cannot be pinned by a failing test, STOP and surface the question.
Routes to
`tdd` (`{{PLUGIN_ROOT}}/skills/tdd/SKILL.md`) — all phases, Phase 1 framed for bug confirmation.
When NOT to use
- New behavior → `{{CMD:feature}}`.
- A behavior-preserving restructure → `{{CMD:refactor}}`.
- "Why does it do this?" → `{{CMD:btw}}`.
- Persisting fix code already written → `{{CMD:commit}}` (the gates still apply).
Hard gate
MUST NOT write fix code before the regression test is red for the right reason. MUST NOT accept a test that passes against the broken state as proof of the defect.
When you can't trust yourself with your code base, trust Arbiter.
Repo: arbiterForge/codeArbiter
Other commands on codearbiter.
- /add-dep
Vet a new or changed third-party dependency for license, provenance, and supply-chain risk before any install runs.
Open command - /adr-status
Report the health of Architecture Decision Records — aged, unchallenged, supersession candidates, unresolved CONFIRM-NN. Read-only.
Open command - /adr
Author a numbered, dated, user-attributed Architecture Decision Record under .codearbiter/decisions/.
Open command - /arbiter
Exit maintainer dev mode — restore orchestration, remove the dev marker, log the exit.
Open command - /audit
Assemble the governance record for a range — commits, overrides, ADRs, sprint auto-decisions, open questions, checkpoint findings — into one dated audit packet. Read-only.
Open command - /btw
Lightweight Q&A about the project — answer from context and return, no routing, no state change.
Open command

