bug-family-hunt

Trace git history, enumerate pattern instances, and implement shared resolvers with guard tests.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/rp4ri/orchestration-studio --skill bug-family-hunt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bug-family-hunt
Source: https://github.com/rp4ri/orchestration-studio/tree/main/skills/bug-family-hunt
Command: npx skills add https://github.com/rp4ri/orchestration-studio --skill bug-family-hunt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Recurring bugs that "keep coming back" are not isolated incidents — they are patterns with multiple instances across the codebase, where past fixes only addressed single cases instead of the underlying root cause, leading to repeated regressions whenever new code touches the affected pattern.

Core Features & Use Cases

  • Historical Bug Archaeology: Traces all past fixes for the same symptom via git log to confirm if a bug family exists.
  • Full Instance Enumeration: Greps the entire codebase for the bug pattern's signature to map every affected surface, including unreported sibling bugs.
  • Shared Resolver Implementation: Extracts duplicated flawed logic into a single reusable module so new code cannot half-implement the pattern.
  • Anti-Recurrence Guard Tests: Adds automated tests that fail if the pattern is reimplemented outside the shared resolver, preventing future regressions.
  • Sibling Bug Sweeps: Audits for other bugs with the same root cause shape to fix related issues in one pass. Use Case: A display name bug that was "fixed" 3 times across different UI surfaces kept regressing; this skill identified 7 total affected surfaces with duplicated fallback logic, fixed the root data layer issue once, and added guard tests to stop future regressions.

Quick Start

Use the bug-family-hunt skill to investigate a recurring form validation error, locate every instance of the duplicated validation logic across the codebase, implement a single shared validation resolver, and add guard tests to ensure the pattern cannot be reintroduced in future code changes.

Frequently Asked Questions about bug-family-hunt

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

FAQPage Schema
Why do recurring bugs keep coming back after I fix them in my codebase?

Recurring bugs reappear because individual instance fixes only address single cases instead of the underlying root pattern, causing regressions whenever new code touches duplicated flawed logic across multiple affected surfaces.

How do I find all instances of a duplicated bug pattern across my codebase?

To find all instances of a duplicated bug pattern, perform full instance enumeration by greping the entire codebase for the bug pattern's signature to map every affected surface, including unreported sibling bugs.

What is git archaeology and when do I need it for root cause analysis?

Git archaeology traces all past fixes for the same symptom via git log to confirm if a bug family exists. Use it during recurring bug investigations to verify multiple code instances share the same flawed implementation pattern.

What is the best way to stop recurring software bugs from regressing in future code changes?

The best way to stop recurring bugs is implementing a single shared resolver for duplicated logic and adding anti-recurrence guard tests that automatically fail if the flawed pattern is reimplemented outside that shared module.

How do I fix sibling bugs that share the same root cause without missing any affected surfaces?

Fix sibling bugs by conducting a sibling bug sweep to audit for other bugs with the same root cause shape, enumerating all affected surfaces, and extracting the duplicated flawed logic into a single reusable module to resolve them in one pass.

Can I use this approach for post-fix sweeps even if I do not have existing test guards?

Yes, this approach applies to post-fix sweeps by confirming root causes through historical bug archaeology and implementing anti-recurrence guard tests to prevent the flawed pattern from being reintroduced in future code changes.