bug-fix

bug-fix is a skill for Claude Code, Codex from bluebear-io/angry-bear. It costs 61 tokens per session (706 once invoked), scanned A, original, MIT.

A bug-fixing workflow based on test-driven development, or TDD: first write a test that shows the problem, then make the smallest fix and run tests again.

In plain words
What is it for?
Use it for bugs, regressions, crashes, runtime errors, debugging failures, and other reports that something is not working.
Why use it?
It confirms that the reported failure is real and helps prevent the fix from breaking other parts of the software.

Skill for Claude CodeCodex

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 skills/bluebear-io/angry-bear/bug-fix
Any agent
npx skills add bluebear-io/angry-bear --skill bug-fix
Clone the repo
git clone --depth 1 https://github.com/bluebear-io/angry-bear

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 bug-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/bluebear-io/angry-bear/bug-fix.svg)](https://agentmods.dev/skills/bluebear-io/angry-bear/bug-fix)
Your own site
<a href="https://agentmods.dev/skills/bluebear-io/angry-bear/bug-fix"><img src="https://agentmods.dev/badge/skills/bluebear-io/angry-bear/bug-fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 706 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.00061 $0.00706
Opus 5 $0.00030 $0.00353
Sonnet 5 $0.00012 $0.00141
Haiku 4.5 $0.00006 $0.00071

Measured 5d ago against content hash 533630515e0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bug-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 5d 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/bug-fix/SKILL.md · 85 lines

How it starts

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

Bug Fix — Mandatory Sequence

Copy this checklist and check off items as you complete them. Do NOT skip or reorder steps.

Bug Fix Progress:
- [ ] Step 1: Write failing test (real filesystem, real execution, NO mocks)
- [ ] Step 2: Run test, confirm it FAILS
- [ ] Step 3: Show user the failing output
- [ ] Step 4: Write minimal fix
- [ ] Step 5: Run regression test, confirm it PASSES
- [ ] Step 6: Run full test suite + lint, confirm no regressions
- [ ] Step 7: Report summary

Step 1: Write a failing test

Read 1-2 files to locate the bug entry point. Then IMMEDIATELY write a test.

Tests must exercise real code paths:

  • CLI commands: use cobra.Command with captured stdout/stderr
  • Engine logic: call the real function with real inputs
  • State management: use t.TempDir() with real file I/O
  • TUI: use tea.KeyMsg to simulate user input, verify model state
  • Adapters: use real JSON input, verify parsed output

Do NOT use mocks. This project has zero mock dependencies. Tests use real filesystems, real JSON parsing, real enforcement logic.

Test naming: TestBugFix_DescriptionOfBug Test location: same _test.go file as the code being fixed

If you cannot reproduce in a test after 5 minutes, STOP and ask the user for a detailed scenario.

Step 2: Run test, confirm FAIL

go test -run TestBugFix_DescriptionOfBug ./internal/...

If the test passes, it does not reproduce the bug. Rewrite it.

Step 3: Show failing output

Print the test failure to the user. Do NOT proceed to fixing until the user sees the reproduction.

Step 4: Minimal fix

Change only what is necessary. No refactoring, no cleanup, no unrelated improvements.

Step 5: Run regression test

go test -run TestBugFix_DescriptionOfBug ./internal/...

Must pass.

Step 6: Full test suite + lint

make lint test

All tests must pass. Coverage must not drop below 80%.

Step 7: Report

  • Root cause (1 sentence)
  • Test added (file path + test name)
  • Code changed (file path + what changed)
  • Results (regression passes, full suite passes, lint clean)

Read the full file on GitHub · 85 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. 5d ago First seen · 85 lines · 61 tokens per session scan A 533630515e0b

Subscribe to this mod's changes

bug-fix is a skill published in the GitHub repository bluebear-io/angry-bear (17 stars, last pushed 1mo ago), licensed MIT. It adds 61 tokens to every session and 706 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

backend-testing

Write comprehensive backend tests including unit tests, integration tests, and API tests. Use when testing REST APIs, database operations, authentication flows, or business logic. Handles Jest, Pytest, Mocha, testing strategies, mocking, and test coverage.

autohandai/community-skills · 52 tokens

engram-testing-coverage

TDD and coverage standards for Engram. Trigger: When implementing behavior changes in any package.

Gentleman-Programming/engram · 25 tokens

nunit-testing

Use when writing or modifying tests in NUnit's own test projects, or when making a behavioral change to production code that needs test coverage. Covers test structure, attribute choice, helper visibility, platform guards, and which test projects are real.

nunit/nunit · 51 tokens

tdd

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

GreyDGL/PentestGPT · 33 tokens

hyperpod-version-checker

Check and compare software component versions on SageMaker HyperPod cluster nodes - NVIDIA drivers, CUDA toolkit, cuDNN, NCCL, EFA, AWS OFI NCCL, GDRCopy, MPI, Neuron SDK (Trainium/Inferentia), Python, and PyTorch. Use when checking component versions, verifying CUDA/driver compatibility, detecting version mismatches…

awslabs/agent-plugins · 120 tokens

dsql

Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, foreign key…

awslabs/agent-plugins · 229 tokens