fix

fix is a skill for Claude Code from grimoire-rs/grimoire. It costs 67 tokens per session (687 once invoked), scanned A, original, Apache-2.0.

A workflow that investigates a bug and then creates a regression-test-first plan for fixing it. A regression test checks that a previously broken behavior stays fixed.

In plain words
What is it for?
Use it when a ticket needs root-cause analysis, a failing test, affected files, and an approved implementation plan before coding begins.
Why use it?
It avoids planning changes around an unverified cause and routes large, uncertain, or interface-changing work to a more suitable planning process.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: names the ExitPlanMode tool.

Good fit Use it when a ticket needs root-cause analysis, a failing test, affected files, and an approved implementation plan before coding begins.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/grimoire-rs/grimoire/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 grimoire-rs/grimoire --skill fix
Clone the repo
git clone --depth 1 https://github.com/grimoire-rs/grimoire

Made for: Claude Code.

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/skills/grimoire-rs/grimoire/fix/github.svg)](https://agentmods.dev/skills/grimoire-rs/grimoire/fix)
Your own site
<a href="https://agentmods.dev/skills/grimoire-rs/grimoire/fix"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/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/skills/grimoire-rs/grimoire/fix"><img src="https://agentmods.dev/badge/skills/grimoire-rs/grimoire/fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 687 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.00067 $0.00687
Opus 5.5 $0.00027 $0.00275
Sonnet 5.5 $0.00013 $0.00137
Haiku 4.5 $0.00007 $0.00069

Measured 18d ago against content hash 2e49001c831a, 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 18d 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.

.claude/skills/fix/SKILL.md · 51 lines

How it starts

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

Fix — RCA, then a regression-test-first plan

1. Root cause

Read ../rca/SKILL.md and follow it in full against $ARGUMENTS. Do not shortcut its gates — a fix plan built on an unverified cause is the failure this skill exists to prevent.

2. Verdict gate

Verdict ≠ bug → output the RCA report and stop. No plan.

3. Escalation gate

Stop and do not enter plan mode when any holds:

  • size L or XL (../rca/references/sizing.md)
  • any interface surface is touched (same file, list)
  • confidence low, or repro not reproduced with no observed causal chain

Output the RCA header, the one-line reason, and:

## Actions
- Run `/hex-plan <issue>` with this RCA as input   (XL → `/hex-architect` first)

4. Plan

Call EnterPlanMode (load it via ToolSearch select:EnterPlanMode if deferred). The plan file holds, in order:

  1. RCA header — the five-line block from the report, plus the causal chain's key file:line.
  2. Regression test — first. Level per workflow-bugfix.md Phase 3: acceptance bug → pytest in test/tests/; unit bug → inline #[cfg(test)] in the faulty module. Name the test, what it asserts (the root cause, not the symptom), and the command that shows it red on current HEAD (task test:parallel --force -- tests/<file> or cargo test <filter>). One per blast-radius site when the sites differ in behaviour.
  3. Fix — at the root-cause layer; every site from the blast radius covered or explicitly excluded with reason. No drive-by refactor.
  4. Verify — regression test green, the subsystem gate for the code changed (task rust:verify), then task verify as the final gate before commit.
  5. Commit — fix(<scope>): <user-facing sentence>, signed off (git commit -s); the subject is the changelog line. Fixes #<n> in the body.

Then ExitPlanMode. After approval, implement per workflow-bugfix.md (the /bugfix checklist): test red first, then fix, then green. If the fix grows past M mid-implementation, stop and re-enter step 3.

Read the full file on GitHub · 51 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. 18d ago First seen · 51 lines · 67 tokens per session scan A 2e49001c831a

Subscribe to this mod's changes

fix is a skill published in the GitHub repository grimoire-rs/grimoire (17 stars, last pushed today), licensed Apache-2.0. It adds 67 tokens to every session and 687 once invoked, about $0.0003 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-11-13.

Related

fix compared with skills from other repositories

fix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fixgrimoire-rs/grimoireSkill17todayApache-2.0A67Claude Code
oraclesteipete/oracleSkill4.1k3d agoMITA18Claude Code, Codex
skill-repairaeonfun/aeonSkill800yesterdayMITA28Claude Code, Codex
self-improveaeonfun/aeonSkill800yesterdayMITA44Claude Code, Codex
posthog-errorsaeonfun/aeonSkill800yesterdayMITB74Claude Code, Codex
aeon-doctoraeonfun/aeonSkill800yesterdayMITB59Claude Code, Codex
monitoring-observabilitytravisjneuman/.claudeSkill1152d agoMITA48Claude Code