fixing-code

fixing-code is a skill for Claude Code, Codex from alexei-led/cc-thingz. It costs 67 tokens per session (637 once invoked), scanned A, original, MIT.

A workflow for diagnosing and fixing a reproducible software defect or failed check. It traces the cause, makes a focused code change, adds or updates a regression test, and verifies the result.

In plain words
What is it for?
Use it for bugs and failing lint, test, or build checks when you can reproduce the problem and inspect the relevant code.
Why use it?
It prevents fixes based only on guesses and keeps unrelated failures from expanding the task. The feedback loop provides evidence that the defect was actually addressed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for bugs and failing lint, test, or build checks when you can reproduce the problem and inspect the relevant code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexei-led/cc-thingz/fixing-code
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 alexei-led/cc-thingz --skill fixing-code
Clone the repo
git clone --depth 1 https://github.com/alexei-led/cc-thingz

Made for: Claude Code, Codex.

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 fixing-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexei-led/cc-thingz/fixing-code/github.svg)](https://agentmods.dev/skills/alexei-led/cc-thingz/fixing-code)
Your own site
<a href="https://agentmods.dev/skills/alexei-led/cc-thingz/fixing-code"><img src="https://agentmods.dev/badge/skills/alexei-led/cc-thingz/fixing-code/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 fixing-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexei-led/cc-thingz/fixing-code"><img src="https://agentmods.dev/badge/skills/alexei-led/cc-thingz/fixing-code.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 637 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 13
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00637
Opus 5.5 $0.00027 $0.00255
Sonnet 5.5 $0.00013 $0.00127
Haiku 4.5 $0.00007 $0.00064

Measured 19d ago against content hash 5867cc5a52a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fixing-code 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 19d 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.

src/skills/fixing-code/SKILL.md · 47 lines

How it starts

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

Fix and Diagnose Code

Fix the requested defect or failing gate, one verified root cause at a time. Use the matching writing-<lang> skill for toolchain commands.

Without write access, return proposed changes (file, change, reason) instead of applying them.

Hard rules

  • No fix without a reproducible pass/fail signal. If you cannot reproduce, ask for the missing artifact (logs, payload, trace, repro steps, environment) instead of patching on a guess. Ask before adding temporary instrumentation.
  • No destructive git (hard reset, clean, force push, checkout over local changes) and no --no-verify.
  • Never disable assertions, skip fast tests, lower lint severity, or ignore files to make a check pass or run faster. Clear caches only when a stale cache is the diagnosed cause.
  • Fix the requested failure first; ask before expanding to unrelated failures.

Outcome

  • Repro: the fastest reliable failing signal, best a failing test at the behavior seam; otherwise a script, replayed payload, or small harness around the real path. Iterate on the narrowest command and run the broader project gate before reporting; keep coverage, race, browser, and end-to-end modes off the loop unless they are the failing signal.
  • Root cause: traced from the failing boundary to the first bad state or contract mismatch, with evidence (file:line, symptom, tool). For intermittent or unclear bugs, rank 3–5 falsifiable hypotheses and test them one at a time.
  • Patch: the smallest change to the root cause, without adjacent cleanup. If it causes a new failure, diagnose that before touching anything else.
  • Regression test at the seam where the user saw the bug. If only a shallow seam exists, say so rather than adding a fake-confidence helper test.
  • Cleanup: temporary probes, tagged [DEBUG-<id>] while in use, are removed or promoted to real tests.
  • Browser-only symptoms go to browser-automation unless a cheaper CLI or unit signal exists.
  • If a code-graph tool (GitNexus, codegraph) is installed and fresh, use it to find callers or impact before changing widely used code.

Read the full file on GitHub · 47 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 19d ago Changed · -1 lines · -11 tokens per session 5867cc5a52a1
  2. 20d ago Changed · -127 lines cf8782f49c21
  3. 1mo ago First seen · 175 lines · 78 tokens per session scan A e9a112c7049b

Subscribe to this mod's changes

fixing-code is a skill published in the GitHub repository alexei-led/cc-thingz (38 stars, last pushed 9d ago), licensed MIT. It adds 67 tokens to every session and 637 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-08-30.

Related

Other skills, from other repositories

ring:test-driven-development

Enforcing the RED-GREEN-REFACTOR loop: write one failing test and watch it fail, write minimal code to pass, then refactor green. Use when starting implementation of a new feature or bugfix, or writing any new production code. Requires pasted failure output as proof of RED; code written before its test must be…

LerianStudio/ring · 89 tokens

ring:detecting-goroutine-leaks

Detecting goroutine leaks in Go: greps for goroutine patterns, audits goleak coverage (VerifyTestMain/VerifyNone), runs goleak, and dispatches ring:backend-go to fix leaks and add regression tests. Use after implementation or during review when code spawns goroutines or a leak is suspected. Runs before…

LerianStudio/ring · 109 tokens

qa

Use to verify that code works correctly — browser-based testing with Playwright, native app testing with computer use, CLI testing, API testing, or root-cause debugging. Supports --quick, --standard, --thorough modes. Triggers on /qa.

garagon/nanostack · 54 tokens

pasteurize

Diagnose and fix a hard bug. Build a reliable reproduction, name the cause, add a regression test, and apply the minimum fix. Use when the user reports a bug, a failure, a flaky test, a performance regression, an error, or a wrong result whose cause is unknown. Use when the user pastes a symptom, a stack trace, or…

paulnsorensen/easy-cheese · 127 tokens

debug

Systematic bug investigation with a five-phase framework: reproduce, narrow, diagnose, fix, verify. Supports automated regression bisect via --regression flag. Produces a structured debug report with root cause analysis, regression test, and CQ/Q self-evaluations.

greglas75/zuvo · 55 tokens

bug-report-reproduce

Reproduce a user, customer, or support-reported problem with synthetic data, prove the cause with a temporary test, record a narrated click-through walkthrough of the symptom, and report what was and was not proven. Use when the user links a bug report, support thread, or ticket and asks to reproduce it, find the…

yarlson/yarstack · 102 tokens