rsun-diagnose

Diagnose bugs through a mandatory reproduce, minimise, instrument, fix, verify workflow.

Updated May 20, 2026
One-click install
npx skills add https://github.com/EZoneLai/claude-plugin-ronsunai-os --skill rsun-diagnose-ezonelai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rsun-diagnose
Source: https://github.com/EZoneLai/claude-plugin-ronsunai-os/tree/main/commands/rsun-diagnose
Command: npx skills add https://github.com/EZoneLai/claude-plugin-ronsunai-os --skill rsun-diagnose-ezonelai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging often fails because fixes are attempted before the bug is reproduced or the root cause is confirmed, leading to wasted hours and wrong patches. This Skill enforces a strict five-step debugging discipline so every bug fix starts with a reproducible failure and ends with verified evidence. ## Core Features & Use Cases - Mandatory 5-Step Workflow: Reproduce the bug with a runnable command, minimise the failing input to under 20 lines, instrument the code to observe real internal state, form a data-backed hypothesis and write a minimal fix, then verify by re-running the original reproduction. - Hard Guardrails: Blocks skipping steps, forbidding fixes without reproduction, guessing without instrumentation data, drive-by refactors, and commits without verification. - Use Case: A cron agent fails with HTTP 429 errors. Instead of guessing, you reproduce it with a single script run, instrument the response headers to see rate-limit counters hit zero, then add retry-with-backoff logic and a regression test proving the fix. ## Quick Start Ask the AI to debug the failing test or endpoint using the rsun-diagnose workflow, starting by writing a minimal reproduction command before proposing any fix.

Frequently Asked Questions about rsun-diagnose

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

FAQPage Schema
How do I debug a bug systematically instead of guessing?

Follow a five-step discipline: first reproduce the bug with a runnable command, then minimise the failing input, instrument the code to observe real state, form a hypothesis from that data and write a minimal fix, and finally verify by re-running the original reproduction.

How to reproduce a bug before writing a fix?

Create a command, curl request, or test that fails 100 percent of the time, such as running the failing script directly or calling the endpoint with a minimal payload. If you cannot reproduce it, stop and gather environment and timing details from the reporter first.

What is a minimal reproduction case and why does it matter?

A minimal reproduction strips the failing scenario down to under 20 lines, removing unrelated fields and setup. This isolates the actual trigger, and the minimisation process itself often reveals the root cause before any instrumentation is needed.

When should I not use a structured debugging workflow?

Skip it for pure feature additions, which belong in a test-driven development flow, and for refactors where no bug exists. The workflow is designed specifically for defects: failing tests, broken endpoints, and malfunctioning scheduled jobs.

Why do bug fixes fail when you skip instrumentation?

Without observing actual internal state such as response headers, variable values, or logs, hypotheses are guesses that often target the wrong layer. Instrumentation with print statements, verbose curl output, or log inspection confirms the root cause before any code changes.