bugfix

Guide reproduce, diagnose, fix, verify, and document defect resolution.

3|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/xiongxianfei/rigorloop --skill bugfix-xiongxianfei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bugfix
Source: https://github.com/xiongxianfei/rigorloop/tree/main/.codex/skills/bugfix
Command: npx skills add https://github.com/xiongxianfei/rigorloop --skill bugfix-xiongxianfei

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinating defect resolution can be chaotic without a proven, repeatable workflow. This skill provides a structured approach to reproduce, diagnose, fix, verify, and document bugs so changes are auditable and durable.

Core Features & Use Cases

  • Understand expected vs actual behavior to establish the bug's contract gap.
  • Reproduce issues with smallest reliable scenario, collect evidence, and classify root causes.
  • Add regression tests before implementing fixes and update durable docs to prevent recurrence.
  • Implement minimal fixes that address the root cause without collateral damage, then verify across the blast radius.
  • Update related artifacts (specs, tests, AGENTS.md, and workflow docs) to reflect the change.

Quick Start

Start by reproducing the defect, then diagnose, implement a minimal fix, run regression tests, and update durable docs.

Frequently Asked Questions about bugfix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to structure software bug fixes to prevent regressions?

The best way to structure bug fixes is to use a regression-test-first workflow. You reproduce the defect, diagnose the root cause, implement a minimal fix, verify the blast radius, and update durable artifacts like specs and AGENTS.md to ensure changes are auditable.

How do I perform root cause analysis on failing tests and code defects?

To perform root cause analysis on failing tests, you reproduce the issue with the smallest reliable scenario, collect evidence, and classify the underlying cause. This structured approach ensures your subsequent code fixes address the core defect without collateral damage.

How do I document incident management resolutions for development defects?

To document incident management resolutions, you update durable artifacts like specs, tests, AGENTS.md, and workflow docs. This reflects the code changes made during defect resolution and provides an auditable trail for future code review and regression testing.

Can I use a test-driven approach to fix bugs across my software projects?

Yes, you can use a test-driven approach to fix bugs across software projects. You add regression tests before implementing fixes to establish the bug's contract gap, then verify the minimal fix across the entire blast radius to prevent future incidents.

Why should I update specs and AGENTS.md after implementing a code defect fix?

You should update specs and AGENTS.md after a code defect fix to prevent recurrence and maintain durable documentation. Updating these related artifacts ensures the defect resolution workflow is auditable and coordinates durable changes across the team.

What should I do when regression testing reveals unexpected collateral damage from a bugfix?

When regression testing reveals collateral damage, you should re-evaluate the blast radius of your minimal fix. Revisit your root cause analysis to ensure the code defect fix addresses the core issue without introducing new failing tests or regressions.