fix-bug

Diagnose and fix software bugs through reproduction, root-cause tracing, and verification.

Updated May 21, 2026
One-click install
npx skills add https://github.com/mica-agent/mica-solar-system --skill fix-bug-mica-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-bug
Source: https://github.com/mica-agent/mica-solar-system/tree/main/.qwen/skills/fix-bug
Command: npx skills add https://github.com/mica-agent/mica-solar-system --skill fix-bug-mica-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you resolve reported bugs by requiring reproduction, root-cause diagnosis, and a minimal code change instead of speculative or symptom-masking edits.

Core Features & Use Cases

  • Reproduce first, then diagnose: Turns the user’s report into a concrete failing case so the fix targets the real failure path.
  • Root-cause oriented patching: Locates the owning subcomponent and applies the smallest change that prevents wrong output from being produced.
  • Verification and regression safety: Re-runs the reproduction and checks for adjacent instances of the same failure pattern.

Quick Start

Ask the AI to fix the bug by reproducing it first, identifying the true root cause, applying the minimal change, and verifying the reproduction passes.

Frequently Asked Questions about fix-bug

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

FAQPage Schema
How do I fix a software bug without just masking the symptoms?

To fix a bug without masking symptoms, you must first reproduce the failure, trace the root cause in the owning subcomponent, apply a minimal patch, and verify the reproduction passes. This prevents speculative edits from causing regressions.

What is the best way to reproduce a reported software regression before patching?

The best way to reproduce a regression is to turn the user's bug report into a concrete failing test case. This ensures your debugging workflow targets the actual failure path before you attempt any root cause analysis or patching.

How do I perform root cause analysis for runtime failures in focused code areas?

Perform root cause analysis for runtime failures by locating the owning subcomponent that produces the wrong output. Apply the smallest code change necessary to prevent the failure, ensuring you avoid symptom-masking edits.

Does minimal patching help with regression testing and broken behaviors?

Yes, minimal patching aids regression testing by limiting changes to the smallest fix that prevents wrong output. After patching, re-run the reproduction case and check adjacent instances to verify the broken behavior is resolved.

When should I update documentation during a bug fix workflow?

Update documentation during a bug fix workflow only when user-visible behavior changes. This constraint ensures your root-cause patches and minimal changes do not introduce unnecessary documentation overhead for internal regressions.

Why does my bug fix workflow require reproduction before diagnosing incorrect outputs?

Reproduction is required before diagnosing incorrect outputs because it confirms the failure path. Without a concrete failing case, root cause tracing becomes speculative and risks applying symptom-masking edits instead of a true bug fix.