diagnose

Diagnose and fix codebase bugs through a structured six-step loop.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/infantesromeroadrian/arca-agent --skill diagnose-infantesromeroadrian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: diagnose
Source: https://github.com/infantesromeroadrian/arca-agent/tree/main/template/skills/diagnose
Command: npx skills add https://github.com/infantesromeroadrian/arca-agent --skill diagnose-infantesromeroadrian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a structured approach to diagnose and fix bugs, streamlining the debugging process and improving code quality.

Core Features & Use Cases

  • Structured Bug Diagnosis: Follows a 6-step loop (reproduce → minimise → hypothesise → instrument → fix → regression-test) for rigorous bug diagnosis.
  • Feedback Loop Construction: Assists in building a fast, deterministic, agent-runnable pass/fail signal for the bug.
  • Reproducibility and Hypothesis Testing: Ensures reproducibility of bugs and facilitates hypothesis testing with falsifiable predictions.
  • Instrumentation and Regression Testing: Guides through targeted logging and regression testing to confirm fixes.

Quick Start

Use the diagnose skill to start diagnosing a bug in your codebase by running the skill and following the structured steps provided.

Frequently Asked Questions about diagnose

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

FAQPage Schema
What is a structured approach to debugging and diagnosing code bugs?

A structured debugging approach systematically isolates code bugs through a six-step loop: reproduce, minimise, hypothesise, instrument, fix, and regression-test. This method builds a deterministic feedback loop to rigorously verify the root cause before applying changes.

How do I build a feedback loop to reproduce and fix code bugs?

To build a feedback loop for bug fixing, you create a fast, deterministic, agent-runnable pass/fail signal. This ensures consistent bug reproducibility, allowing you to test falsifiable hypotheses and confirm fixes through targeted instrumentation.

What is the best way to isolate and hypothesize causes for software bugs?

The best way to hypothesize bug causes is to minimize the reproduction case and formulate falsifiable predictions. By instrumenting the code with targeted logging, you can test these hypotheses directly against a deterministic pass/fail signal.

Do I need prior knowledge of my codebase to use a structured bug diagnosis process?

Yes, a structured bug diagnosis process requires a clear understanding of the codebase and debugging techniques. You need this foundational knowledge to effectively reproduce bugs, minimize variables, and build a reliable feedback loop.

How do I perform regression testing after fixing a bug?

To perform regression testing after a bug fix, you run the deterministic pass/fail signal established during the feedback loop construction. This confirms the fix resolves the issue without introducing new code quality problems.

When should I avoid using a structured debugging approach?

You should avoid a structured debugging approach if you lack a clear understanding of the codebase or the ability to create a deterministic reproduction case. Without a reproducible signal, the hypothesis testing and instrumentation steps cannot function effectively.