# Bug Fix

> Fix bugs with reproduction, minimal changes, regression coverage, and targeted verification.

- Skill: `s-hiraoku/bug-fix` (Agent Skill)
- Install (CLI): `npx skillmds@latest add s-hiraoku/bug-fix`
- Raw SKILL.md: https://api.skillmd.com/api/skills/s-hiraoku/bug-fix/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: s-hiraoku (https://skillmd.com/u/s-hiraoku)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/s-hiraoku/bug-fix

---


# Bug Fix

Use this workflow when correcting broken or unexpected behavior.

## Workflow

1. Reproduce the bug, or clearly reason about it when reproduction is not practical.
2. Identify the likely cause in the current implementation.
3. Make the smallest fix that addresses the cause.
4. Add a regression test when possible.
5. Run targeted verification for the affected area.
6. Run broader checks if the fix touches shared behavior.

## Final Report

Include:

- what failed before
- why the fix addresses it
- regression test coverage, if added
- verification run
- remaining risks

