debug-mantra

Automates a four-step debugging process with a persisted experiment ledger.

3.1k|415|Updated May 20, 2026
One-click install
npx skills add https://github.com/thananon/9arm-skills --skill debug-mantra-thananon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-mantra
Source: https://github.com/thananon/9arm-skills/tree/main/skills/engineering/debug-mantra
Command: npx skills add https://github.com/thananon/9arm-skills --skill debug-mantra-thananon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Four-mantra debugging discipline — reproduce, trace the fail path, falsify the hypothesis, cross-reference every breadcrumb. Recite the mantra block verbatim at the start of any debugging session, then apply the four steps in order before proposing any fix. Trigger on /debug-mantra and proactively whenever debugging starts — user reports a bug, says something is broken/throwing/failing, asks to debug/diagnose/investigate an issue, or pastes a stack trace or error log.

Core Features & Use Cases

  • Reproduce reliably: Build a runnable repro before anything else.
  • Know the fail path: Trace the code path end-to-end and list knobs that can influence the outcome.
  • Falsify the hypothesis: Generate 3–5 ranked hypotheses and test disproof before committing.
  • Every run is a breadcrumb: Maintain a ledger of experiments and outcomes across the session.

Quick Start

Start a debug session, recite the mantra verbatim, then follow the four steps in order for the issue at hand.

Frequently Asked Questions about debug-mantra

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

FAQPage Schema
How do I systematically debug a software failure using a structured workflow?

Systematic debugging requires a four-step workflow: reproduce the failure reliably, trace the fail path, falsify hypotheses, and cross-reference breadcrumbs. This disciplined process uses a persisted experiment ledger to guide analysis and preserve context.

What is the best way to diagnose a reproducible bug from a stack trace?

Diagnosing a reproducible bug involves building a runnable reproduction first, then tracing the code path end-to-end to list knobs influencing the outcome. You generate 3–5 ranked hypotheses and test disproof before committing a fix.

Can I use this debugging discipline for CI or staging environments?

This debugging discipline applies to issues across local development, CI, and staging environments. It works for any reproducible failures, stack traces, and logs, maintaining an experiment ledger throughout the session.

How do I maintain context when troubleshooting an issue over a long session?

Maintaining context during troubleshooting requires a persisted experiment ledger that treats every run as a breadcrumb. By cross-referencing these breadcrumbs, you preserve analysis context and track outcomes systematically across the session.

Why should I falsify a hypothesis before fixing a software bug?

Falsifying a hypothesis before fixing a software bug ensures you test disproof rather than confirming bias. By generating 3–5 ranked hypotheses and attempting to disprove them, you systematically validate the root cause before committing.

Does this debugging process work without dependencies or external components?

This debugging process works without dependencies or external components. It is a disciplined workflow relying on a fixed four-step process and a persisted experiment ledger to guide analysis, requiring only reproducible failures or logs.