bug-to-patch-generator
Installation
SKILL.md
Bug-to-Patch Generator
Transform bug reports, error messages, and failing test output into targeted code patches that fix the underlying issue, pass all existing tests, and include safeguards against regression.
When to Use This Skill
Use this skill when you need to:
- Convert a bug report (from an issue tracker, user report, or automated alert) into a concrete code fix
- Generate a patch from a failing test or assertion error
- Translate an error message or stack trace into the minimum code change required
- Produce a patch that fixes the bug while preserving all existing passing tests
- Automate the fix-validate-commit cycle for well-defined defects
- Generate candidate patches for review when the root cause is already identified
Trigger phrases: "generate a patch", "fix this bug", "create a fix for", "patch from error", "convert bug report to fix", "auto-fix", "generate fix from test failure", "bug to patch"