Skip to content
Back to skills

Debug

ASecurity

Run a structured debugging session to systematically reproduce, isolate, diagnose, and fix software bugs.

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 7, 2026
developmentdebuggingrefactoring

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add PolyXGO/HeraSpec --skill debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debug?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/polyxgo-debug/badge)](https://www.skillsdirectory.com/skills/polyxgo-debug)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Skill: Debugging (Cross-Cutting)

## Purpose

Run a structured debugging session to systematically reproduce, isolate, diagnose, and fix software bugs.

## When to Use

- When encountering a stack trace, runtime exception, or error message
- When system behavior diverges from the specifications
- When a bug is reported in staging or production but cannot be easily explained

## Step-by-Step Process

### Step 1: Reproduce
- Identify expected vs. actual behavior
- Define the exact, minimal reproduction steps
- Determine the scope of the bug (who is affected, when did it start)

### Step 2: Isolate
- Narrow down the component, module, or code path causing the issue
- Analyze logs, error outputs, or recent commit histories
- Check for recent configuration changes or dependency updates

### Step 3: Diagnose
- Formulate testable hypotheses and trace variables/data flow
- Determine the root cause of the failure (not just the symptom)

### Step 4: Fix & Prevent
- Propose and implement a precise code fix
- Analyze side effects and edge cases introduced by the fix
- Outline regression test strategies to prevent the issue from reoccurring

## Required Input

- Error message, stack trace, or problem description
- Reproduction steps (or environment details)
- Access to relevant logs or code components

## Expected Output

- Debug report containing:
  - Reproduction (Expected vs. Actual)
  - Root cause analysis
  - Code changes or fixes applied
  - Prevention plan (regression tests to add)

## Tone & Rules

- Debug systematically. Do not guess fixes blindly.
- Document code constraints and why the fix works.
- Keep fixes focused; avoid refactoring unrelated components during a bugfix.

## Available Templates

- None

## Available Scripts

- None

## Examples

See `examples/` directory.

## Links to Other Skills

- **unit-test**: Use to write regression tests for the fixed bug.
- **project-memory**: Use to search for historical bug fixes or related issues.

Files in this skill

  • skill.md1.9 KB
  • skill.vi.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.