debug-phase

Diagnose software errors, isolate root causes, and document fixes.

Updated Oct 26, 2025
One-click install
npx skills add https://github.com/oxie/portfolio-cms-project --skill debug-phase-oxie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-phase
Source: https://github.com/oxie/portfolio-cms-project/tree/main/.claude/skills/debug-phase
Command: npx skills add https://github.com/oxie/portfolio-cms-project --skill debug-phase-oxie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a systematic approach to investigate errors, identify root causes, implement robust fixes, and document findings to prevent recurrence. It significantly reduces debugging time, improves code stability, and builds a valuable knowledge base for future issues.

Core Features & Use Cases

  • Error Reproduction & Classification: Guides in consistently reproducing errors and classifying them by type (e.g., logic, integration) and severity.
  • Root Cause Isolation: Utilizes techniques like binary search, logging, breakpoints, and the 5 Whys to pinpoint the actual cause, not just symptoms.
  • Fix Implementation & Prevention: Ensures fixes address the root cause, adds regression tests, and improves logging/defensive code to prevent future bugs.
  • Error Documentation: Standardizes documentation of errors in error-log.md with unique IDs (ERR-XXXX), creating a searchable history.
  • Use Case: A critical bug is reported in production. This skill guides a developer through reproducing the bug, isolating its root cause, implementing a robust fix, and documenting it thoroughly to prevent future occurrences.

Quick Start

Debug the 'Dashboard timeout' error (ERR-0042), reproducing it, isolating the root cause, and implementing a fix with regression tests.

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 and fix bugs in my code?

Systematic debugging involves reproducing the error consistently, isolating its root cause using techniques like binary search or the 5 Whys, implementing a fix that addresses the actual cause rather than symptoms, and adding regression tests to prevent recurrence. This skill guides you through each phase with structured documentation.

What's the best way to find the root cause of an error?

Root cause isolation uses techniques like binary search, logging, breakpoints, and the 5 Whys to pinpoint the actual source instead of just symptoms. The skill helps you classify errors by type and severity, then systematically narrow down where the failure originates in your codebase.

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

Prevention involves documenting the error with a unique ID in error-log.md, adding regression tests to catch the same bug if it reappears, and improving logging or defensive code. This creates a searchable history and ensures the fix is robust enough to stop future occurrences.

Can I use this approach for production errors and testing issues?

Yes. This debugging methodology applies across development, testing, and operations. It works for any reproducible error where you have complete logs and an accessible environment to investigate and validate your fixes.

What do I need before I start debugging with this approach?

You need a reproducible error, complete error logs, and an accessible environment where you can test, instrument code, and validate fixes. The skill outputs an updated error-log.md, implemented fixes, new test cases, and workflow state for tracking progress.

How do I document errors so my team can find and learn from them?

The skill standardizes error documentation in error-log.md with unique IDs (ERR-XXXX format), making errors searchable and building a knowledge base. This prevents duplicate debugging work and helps the team recognize and fix similar issues faster.