debugging-strategies

Apply a systematic debugging workflow to identify root causes across codebases.

7|1|Updated Nov 17, 2024
One-click install
npx skills add https://github.com/hospitaljobsin/hospitaljobsin --skill debugging-strategies-hospitaljobsin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debugging-strategies
Source: https://github.com/hospitaljobsin/hospitaljobsin/tree/main/.claude/skills/debugging-strategies
Command: npx skills add https://github.com/hospitaljobsin/hospitaljobsin --skill debugging-strategies-hospitaljobsin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Transform debugging from guesswork into systematic problem-solving across codebases and stacks.

Core Features & Use Cases

  • Reproduction checks, information gathering, hypothesis formation, and structured testing strategies.
  • Language- and stack-agnostic guidance with practical debugging tools and patterns.
  • Phase-based workflow: reproduce, gather info, form hypothesis, test & verify, with best practices.

Quick Start

Start with a reproducible bug, apply the four-phase workflow to identify root cause and propose a fix.

Frequently Asked Questions about debugging-strategies

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

FAQPage Schema
How do I systematically debug an elusive bug across a codebase?

Systematic debugging follows a four-phase workflow: reproduce the bug reliably, gather information about the environment and stack trace, form a hypothesis about the root cause, then test and verify your fix. This structured approach replaces guesswork with reproducible problem-solving.

What's the best way to track down a memory leak in JavaScript or Python?

Memory leak debugging uses profiling tools to isolate growing memory usage patterns. Gather heap snapshots, identify retained objects, form a hypothesis about what's holding references, and verify the fix by comparing profiling results before and after your changes.

How do I debug production incidents and crash dumps?

Production debugging gathers information from crash dumps and stack traces, reproduces conditions in a test environment when possible, forms hypotheses about distributed system failures, and tests fixes carefully. The workflow handles unfamiliar codebases and cross-stack issues.

Can I use debugging strategies to diagnose performance issues?

Yes. Performance debugging applies the same systematic workflow—reproduce slow behavior, gather profiling data, form hypotheses about bottlenecks, and verify improvements. Tools vary by language, but the phase-based approach works across JavaScript/TypeScript and Python environments.

What information should I collect before starting to debug?

Information gathering captures environment details, exact reproduction steps, stack traces, and relevant logs. Comprehensive upfront data accelerates hypothesis formation and prevents false fixes, making the debugging workflow more efficient.

Does this approach work for debugging distributed systems?

Yes. Debugging distributed systems applies the same four-phase workflow but requires gathering information across multiple services, forming hypotheses about inter-service failures, and testing fixes in isolation. The systematic strategy handles complexity across system boundaries.