debugging

Guide software debugging with structured steps for isolation and verification.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/dhamija/claude-workflow-agents --skill debugging-dhamija
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging
Source: https://github.com/dhamija/claude-workflow-agents/tree/main/templates/skills/debugging
Command: npx skills add https://github.com/dhamija/claude-workflow-agents --skill debugging-dhamija

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging is often time-consuming and error-prone. This skill provides a structured protocol to understand problems, gather information, isolate root causes, and verify fixes.

Core Features & Use Cases

  • Structured problem understanding: Clear steps to articulate expected vs actual behavior and reproduce issues.
  • Information gathering: Quick commands to inspect logs, error traces, and recent changes.
  • Systematic isolation and verification: Techniques like binary search, targeted logging, and regression testing to confirm resolution.
  • Use Case: A developer investigates a failing API endpoint in a local environment and uses the skill to guide the debugging session from symptom to solution.

Quick Start

Describe the issue to the skill and follow the steps: understand the problem, gather information, isolate, fix, and verify. Example: "The login endpoint returns 401 for valid users; reproduce, collect logs, identify the root cause, and apply a fix."

Frequently Asked Questions about debugging

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

FAQPage Schema
How do I systematically debug a failing application?

Systematic debugging follows a structured workflow: understand the problem by reproducing it, gather information from logs and traces, isolate the root cause through targeted inspection or binary search, apply a fix, and verify it with regression checks. This protocol accelerates diagnosis across development environments.

What's the best way to inspect logs and traces when troubleshooting code?

Inspect logs and traces by running commands to examine error output, stack traces, and recent code changes. Targeted logging reveals code paths and state at failure points. Cross-reference logs with code changes to narrow down where the bug was introduced.

How do I isolate a bug when I don't know where it is?

Use binary search or targeted logging to isolate bugs. Narrow the scope by testing specific code paths, disabling features incrementally, or adding logging at suspected points. Reproduce the issue consistently first to confirm the conditions that trigger it.

Can I use this debugging protocol in local and production environments?

Yes, the structured debugging workflow applies across development and production environments. Adapt information-gathering commands and logging patterns to each environment's tools and access constraints while following the same problem-understanding and isolation steps.

How do I verify a fix doesn't introduce regressions?

After applying a fix, run regression checks to confirm the original issue is resolved and no new problems appear. Test the specific code path that was broken, then run broader test suites to detect side effects in related functionality.

What should I document during a debugging session?

Document the expected vs. actual behavior, steps to reproduce, relevant logs and error traces, the isolated root cause, the fix applied, and regression test results. This record supports future troubleshooting and helps teammates understand the issue and resolution.