Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

debug

verified

Systematic debugging workflow for tracking down and fixing issues. Use when encountering bugs, errors, or unexpected behavior.

View on GitHub

Marketplace

openkodo

paxtone-io/openkodo

Plugin

kodo

productivity

Repository

paxtone-io/openkodo

plugins/kodo/skills/debug/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/paxtone-io/openkodo/blob/main/plugins/kodo/skills/debug/SKILL.md -a claude-code --skill debug

Installation paths:

Claude
.claude/skills/debug/
Powered by add-skill CLI

Instructions

# Systematic Debugging

## Overview

Random fixes waste time and create new bugs. Quick patches mask underlying issues.
Follow the four phases to find root cause before attempting any fix.

**Core principle:** NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.

**Announce at start:** "I'm using the debug skill to investigate this issue."

## The Iron Law

```
If you haven't completed Phase 1, you cannot propose fixes.
```

## When to Use

Use for ANY technical issue:
- Test failures
- Runtime errors
- Unexpected behavior
- Performance problems
- Build failures

**Use ESPECIALLY when:**
- Under time pressure (emergencies make guessing tempting)
- "Just one quick fix" seems obvious
- Previous fix didn't work
- You've tried multiple fixes already

## The Four Phases

### Phase 1: Root Cause Investigation

**BEFORE attempting ANY fix:**

1. **Read Error Messages Carefully**
   - Don't skip past errors or warnings
   - Read stack traces completely
   - Note line numbers, file paths, error codes

2. **Reproduce Consistently**
   - Can you trigger it reliably?
   - What are the exact steps?
   - If not reproducible - gather more data, don't guess

3. **Check Recent Changes**
   ```bash
   git diff HEAD~5           # Recent changes
   git log --oneline -10     # Recent commits
   ```

4. **Check Existing Knowledge**
   ```bash
   kodo query "similar bug"       # Was this fixed before?
   kodo query "error handling"    # Known patterns
   ```

5. **Trace Data Flow**
   - Where does the bad value originate?
   - Trace backward through call stack
   - Find the SOURCE, not the symptom

### Phase 2: Pattern Analysis

1. **Find Working Examples**
   - Locate similar working code in codebase
   - What works that's similar to what's broken?

2. **Identify Differences**
   - What's different between working and broken?
   - List every difference, however small

### Phase 3: Hypothesis and Testing

1. **Form Single Hypothesis**
   - State clearly: "I think X is the root cause because Y

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
4127 chars