mode-debug

Guide hypothesis-driven debugging with NDJSON logs and region markers.

26|1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/TeamSloppy/Sloppy --skill mode-debug-teamsloppy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mode-debug
Source: https://github.com/TeamSloppy/Sloppy/tree/main/Sources/sloppy/Resources/Skills/mode-debug
Command: npx skills add https://github.com/TeamSloppy/Sloppy --skill mode-debug-teamsloppy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Runtime instructions for Debug mode: investigate with hypotheses, instrumentation, logs, and user feedback.

Core Features & Use Cases

  • Hypothesis-driven debugging: define testable hypotheses and track signals that confirm or reject them.
  • Instrumentation discipline: add focused diagnostics in code with region markers and collect NDJSON logs for reproducible analysis.
  • Reproduction loop: guide users through planned steps, review logs, and decide next actions based on evidence.

Quick Start

Start a debug turn by inserting region markers and running the session to emit logs to .sloppy/debug/debug-<session>.log, then review results.

Frequently Asked Questions about mode-debug

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

FAQPage Schema
What is hypothesis-driven debugging and how does it help find root causes?

Hypothesis-driven debugging defines testable assumptions and tracks signals to confirm or reject them. This structured approach reveals root causes faster by evaluating evidence across multiple runs instead of relying on guesswork.

How do I collect NDJSON logs for iterative debugging sessions?

To collect NDJSON logs for debugging, insert region markers into your code and run the session to emit logs to .sloppy/debug/debug-<session>.log. Review these structured logs to evaluate your hypotheses and decide next actions.

How do I use region markers to instrument code for reproducible analysis?

Use region markers to add focused diagnostic instrumentation in your code. When executed, these markers emit structured NDJSON logs, enabling reproducible analysis across iterative debugging runs to pinpoint exact failure points.

Does hypothesis-driven debugging work without adding instrumentation to my codebase?

No, this debugging approach requires placing region markers in your code to emit logs to .sloppy/debug. Instrumentation is essential to capture the structured NDJSON logs needed to confirm or reject hypotheses.

What is the best way to structure a debug loop for complex runtime issues?

The best way to structure a debug loop is to define testable hypotheses, instrument code with region markers, capture NDJSON logs, and interactively refine hypotheses based on user feedback and log evidence.

When should I avoid using structured logging for debugging?

You should avoid structured logging when you need immediate fixes without code modifications, as this approach requires inserting region markers and generating log files to iteratively evaluate debugging hypotheses.