debugging

Diagnose and fix reproducible bugs, regressions, and performance problems through root-cause analysis.

22|Updated Sep 10, 2026
One-click install
npx skills add https://github.com/Lynricsy/HyperSkills --skill debugging-lynricsy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging
Source: https://github.com/Lynricsy/HyperSkills/tree/main/skills/debugging
Command: npx skills add https://github.com/Lynricsy/HyperSkills --skill debugging-lynricsy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Debugging sessions often devolve into guess-and-check thrashing: fixes applied without a root cause, flaky tests dismissed, and symptoms patched at the crash site instead of the origin. This Skill enforces a disciplined seven-phase workflow that turns any observed misbehaviour into a verified, root-cause fix. ## Core Features & Use Cases - Loop-first diagnosis: Build a fast, deterministic, red-capable reproduction loop before forming any theory, using ten proven constructions from failing tests to artifact replay. - Structured hypothesis testing: Rank three to five falsifiable hypotheses, probe one variable at a time with tagged instrumentation, and fix at the producer rather than the consumer. - Triage and tracing references: Decision trees for non-reproducible, test, build, and runtime failures, plus backward call-chain tracing and git bisect recipes. - Use Case: A test fails in CI but passes locally. The Skill raises the reproduction rate with repeated parallel runs, identifies an arbitrary sleep as the defect, replaces it with condition-based waiting, and verifies the fix across hundreds of iterations. ## Quick Start Ask the agent to diagnose why your failing test or broken build is happening and fix the root cause using the debugging skill.

Frequently Asked Questions about debugging

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

FAQPage Schema
How do I debug a test that fails in CI but passes locally?

Treat it as a bug with a low reproduction rate: loop the failing test hundreds of times, run copies in parallel, and add CPU or IO load to surface timing issues. Replace arbitrary sleeps with condition-based waiting on the actual completion signal, then re-run the loop to confirm the fix.

How to find the root cause of a bug instead of patching the symptom?

Trace the bad value backwards from where it surfaced to where it was created, reading each caller's arguments rather than inferring them. Fix at the producer, not the consumer, and write a failing regression test at a correct seam before applying the fix.

What should I do when a bug cannot be reproduced?

Raise the reproduction rate first: loop the trigger, run in parallel, add load, widen timing windows, and remove masking caches or retries. If all fail, ask for a redacted captured artifact, environment access, or permission to add temporary tagged instrumentation.

Does this debugging approach work for any programming language?

Yes, the workflow is language- and stack-agnostic and always uses the project's own commands discovered from the Makefile, package.json, pyproject.toml, or CI configuration. It assumes git history is available for bisection and prefers a language-appropriate debugger over logging.

When should I stop debugging and ask the user instead?

Stop in exactly three cases: you cannot build any reproduction loop, three fixes have failed indicating an architectural problem, or the user is redirecting your approach. Present open questions in one numbered round, each with a recommended answer.

Why is fixing a bug at the crash site usually wrong?

The frame where a bad value surfaces is rarely the frame that produced it, so coercing or defaulting at the crash site leaves the same bad value flowing to every other reader. Fixing at the producer plus layered guards makes the bug structurally impossible.