debugkit

Diagnose root causes of bugs through reproduction, falsifiable hypotheses, and on/off proof tests.

1|Updated Jul 12, 2026
One-click install
npx skills add https://github.com/mimukit/skills --skill debugkit-mimukit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugkit
Source: https://github.com/mimukit/skills/tree/main/skills/debugkit
Command: npx skills add https://github.com/mimukit/skills --skill debugkit-mimukit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When something breaks and nobody knows why, teams often jump straight to plausible-sounding fixes that address the wrong cause. This Skill enforces a disciplined diagnostic ritual that turns a vague symptom into a proven root cause with a failing reproduction, without ever applying the fix itself. ## Core Features & Use Cases - Structured diagnosis ritual: Reproduce the bug deterministically, isolate the smallest failing case, write falsifiable hypotheses before testing, and prove the cause with an on/off toggle test. - Safe probing with a probe ledger: Mutate the repo freely to learn, then revert every probe via reverse-applied patches so the user's uncommitted work is never destroyed. - Three honest terminal states: Every run ends as proven cause, reproduced-but-unexplained, or an instrumentation plan, never an untested theory dressed up as a diagnosis. - Use Case: A test suite turns flaky after a dependency upgrade. The Skill bisects commits in a throwaway worktree, forces determinism, proves the offending version by toggling it, and hands a failing reproduction to a build skill. ## Quick Start Ask the agent to debug why the login endpoint started failing after the latest deployment and find the root cause without changing any code.

Frequently Asked Questions about debugkit

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

FAQPage Schema
How do I find the root cause of a bug with an AI agent?

Provide the expected behavior, actual behavior, and where you observed it. The agent reproduces the failure, shrinks it to a minimal case, tests falsifiable hypotheses, and proves the cause by toggling it on and off before reporting.

How to debug flaky tests that fail intermittently?

Force determinism first by pinning seeds, serializing concurrency, and freezing clocks. If the bug stays non-deterministic, the proof gate uses a statistical form: declare a run count N upfront, then compare failure rates with and without the suspected cause.

Does this debugging skill modify my code or apply fixes?

It never applies fixes. It may edit files temporarily as probes, but every probe is recorded as a patch in a ledger and reverse-applied afterward, so your uncommitted work is preserved. The output is a described fix, not an applied one.

Is it safe to run git bisect with uncommitted changes?

Yes, because commit bisects run in a throwaway git worktree created with git worktree add, never in your working tree. The scratch worktree is removed before the run ends, leaving your branch and uncommitted edits untouched.

What happens when a bug cannot be reproduced?

The run ends in an instrumentation plan rather than a guessed diagnosis. You receive ranked hypotheses, each paired with the specific experiment or log line that would discriminate it, and you rerun the diagnosis once that evidence arrives.

When should I not use a root-cause debugging workflow?

Skip it for code reviews of unexecuted diffs, feature requests for behavior never built, test planning before a bug exists, and general optimization without a regression. Those have no observable symptom to reproduce and toggle.