fixing-bugs

fixing-bugs is a skill for Claude Code, Codex from Cristhianzl/claude-skills-czl. It costs 105 tokens per session (2,844 once invoked), scanned A, original, MIT.

A bug-fixing workflow based on test-driven development, or TDD: first write a test that fails because of the bug, then change the code until it passes.

In plain words
What is it for?
Use it for production bugs, error reports, regressions, Sentry alerts, and stack traces, following steps from reproduction through verification and cleanup.
Why use it?
It proves the reported defect exists and helps prevent the same problem from returning after the fix.

Skill for Claude CodeCodex

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

Good fit Use it for production bugs, error reports, regressions, Sentry alerts, and stack traces, following steps from reproduction through verification and cleanup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cristhianzl/claude-skills-czl/fixing-bugs
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 Cristhianzl/claude-skills-czl --skill fixing-bugs
Clone the repo
git clone --depth 1 https://github.com/Cristhianzl/claude-skills-czl

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-bugs

README.md
[![agentmods](https://agentmods.dev/badge/skills/cristhianzl/claude-skills-czl/fixing-bugs/github.svg)](https://agentmods.dev/skills/cristhianzl/claude-skills-czl/fixing-bugs)
Your own site
<a href="https://agentmods.dev/skills/cristhianzl/claude-skills-czl/fixing-bugs"><img src="https://agentmods.dev/badge/skills/cristhianzl/claude-skills-czl/fixing-bugs/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-bugs

Your own site · 80×15
<a href="https://agentmods.dev/skills/cristhianzl/claude-skills-czl/fixing-bugs"><img src="https://agentmods.dev/badge/skills/cristhianzl/claude-skills-czl/fixing-bugs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,844 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.00105 $0.02844
Opus 5 $0.00053 $0.01422
Sonnet 5 $0.00021 $0.00569
Haiku 4.5 $0.00011 $0.00284

Measured 12d ago against content hash 7e96a383e33f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fixing-bugs 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 12d 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.

configs/agnostic/skills/fixing-bugs/SKILL.md · 235 lines

How it starts

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

Fixing Bugs

Never fix a bug before proving it exists with a failing test. The fix is only valid if a test transitions from RED (failing) to GREEN (passing).

Read first (always)

List learnings/ and read every file relevant to the current bug. Project-specific test conventions, framework quirks, recurring bug patterns, or hot zones live there and override the defaults in this SKILL.md. If a learning conflicts with this file, the learning wins — mention it to the user.

Tradeoff — when to apply, when to lighten up

Apply the full cycle for any defect in production code the user is reporting (Sentry alert, support ticket, "this broke", regression). The discipline pays off because the test becomes a permanent sentinel against the same bug returning.

Lighten the formality only when fixing a typo, a build script, or a one-off script the user explicitly labels as throwaway. Even then, run the test suite afterwards.

The cycle (strict order)

1. UNDERSTAND   →  Read the bug report; identify expected vs actual; locate the OS/platform
2. REPRODUCE    →  Write a failing test that triggers the EXACT error path
3. VERIFY RED   →  Run the test; it MUST fail for the reason in the bug report
4. FIX          →  Write the MINIMUM code change to make the test pass
5. VERIFY GREEN →  Run the same test; it MUST now pass
6. VALIDATE     →  Run the FULL suite (CI matrix if platform-suspect); nothing else breaks
7. REFACTOR     →  Optional; only if the fix introduced duplication. Tests stay GREEN

If you skip steps or change the order, the fix is invalid. Full per-phase detail in references/cycle.md.

Phase 1 — UNDERSTAND

Decompose the bug report:

GIVEN:    <precondition / initial state>
WHEN:     <action that triggers the bug>
THEN:     <what actually happens — the bug>
EXPECTED: <what should happen — the fix target>

If you can't extract all four → ask for clarification, don't guess.

Identify the platform dimension. Bug reports rarely state the OS. Check user agent, Sentry tags, container image, support metadata. Bugs in the following areas are platform-suspect by default — filesystem operations, text encoding / line endings, subprocess / shell, temp / config dir resolution, process signals, networking. If the bug is platform-suspect, the test must run on the affected OS in Phase 3.

Read the full file on GitHub · 235 lines

Files

What ships with it

4 files 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. 12d ago First seen · 235 lines · 105 tokens per session scan A 7e96a383e33f

Subscribe to this mod's changes

fixing-bugs is a skill published in the GitHub repository Cristhianzl/claude-skills-czl (5 stars, last pushed yesterday), licensed MIT. It adds 105 tokens to every session and 2,844 once invoked, about $0.0005 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-08-31.

Related

Other skills, from other repositories