debug-phase

Investigate errors through root-cause analysis and document fixes in error-log.md.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/marcusgoll/robinhood-algo-trading-bot --skill debug-phase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-phase
Source: https://github.com/marcusgoll/robinhood-algo-trading-bot/tree/main/.claude/skills/debug-phase
Command: npx skills add https://github.com/marcusgoll/robinhood-algo-trading-bot --skill debug-phase

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, git, python, node, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill eliminates inefficient, trial-and-error debugging, which often leads to recurring bugs, wasted development time, and user frustration.

Core Features & Use Cases

  • Root Cause Analysis (5 Whys): Guides you through asking "why" five times to uncover the true underlying cause of an error, not just its symptoms.
  • Systematic Debugging: Provides a structured workflow for reproducing, classifying, isolating, and fixing bugs with precision.
  • Error Documentation & Prevention: Ensures bugs are documented in a standardized error-log.md and prevented from recurring with new tests and defensive code.
  • Use Case: When a dashboard timeout error is reported, use this Skill to reproduce it, classify it as an "Integration" error, apply the "5 Whys" to discover a missing pagination parameter, implement a fix with a regression test, and document the entire process for future reference.

Quick Start

Example of 5 Whys Root Cause Analysis

  1. Why did the dashboard fail to load? → API call to external service timed out

  2. Why did the API call timeout? → Request took >30 seconds (timeout limit)

  3. Why did the request take >30 seconds? → External service response time was 45 seconds

  4. Why was external service so slow? → Requesting too much data (1000 records instead of 10)

  5. Why requesting 1000 records? → Missing pagination parameter in API call

Root cause: Missing pagination parameter causes over-fetching

Frequently Asked Questions about debug-phase

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

FAQPage Schema
How do I systematically debug errors instead of trial and error?

Systematic debugging follows a structured workflow: reproduce the error consistently, classify it by type, isolate the root cause using techniques like the 5 Whys method, implement a targeted fix, write regression tests, and document the resolution. This approach prevents recurring bugs and reduces wasted development time.

What is root cause analysis and how does the 5 Whys technique work?

Root cause analysis uncovers the underlying reason for an error, not just its symptoms. The 5 Whys technique asks "why" repeatedly—typically five times—to trace from the observed failure back to its origin. For example, a timeout error traces back through slow response times to missing pagination parameters.

How do I prevent bugs from happening again after fixing them?

After fixing a bug, document it in a standardized error log, create regression tests that catch the same failure, and add defensive code to guard against similar issues. This ensures the bug doesn't recur and creates institutional knowledge for your team.

Can I use this debugging workflow across development, staging, and production?

Yes. This debugging approach applies to errors across all environments—development, staging, and production. It requires reproducible error reproduction, access to logs and traces, and the ability to implement fixes and tests in your target environment.

What tools and dependencies do I need to debug effectively?

The debugging workflow integrates with Python, Node.js, pytest for testing, git for version control, and requests for API troubleshooting. These dependencies support error reproduction, test generation, and documentation of fixes across your codebase.

How should I classify and document errors to make them searchable later?

Classify errors by type (e.g., Integration, Timeout, Logic) and document them in a standardized error-log.md file with root cause, fix applied, tests added, and prevention steps. This standardization makes past incidents searchable and helps avoid repeating similar mistakes.