Skip to content
Back to skills

Debugging

ASecurity

Systematic debugging and root cause analysis for investigating errors, diagnosing complex issues, and performance profiling. Use when: "debug this error", "why is this failing", "root cause analysis", "fix this bug", "investigate crash", "stack trace", "not working"

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 18, 2026
ai-agentsgonodedebugginggitapidatabaseperformancedocumentation

Works with

  • api

Security analysis

A100/100

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

Scanned October 18, 2026

npx -y skills add mikeparcewski/wicked-garden --skill debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debugging?

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

Security grade badge for Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mikeparcewski-debugging/badge)](https://www.skillsdirectory.com/skills/mikeparcewski-debugging)

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
---
name: wicked-garden-engineering-debugging
description: |
  Systematic debugging and root cause analysis for investigating errors,
  diagnosing complex issues, and performance profiling.

  Use when: "debug this error", "why is this failing", "root cause analysis",
  "fix this bug", "investigate crash", "stack trace", "not working"
metadata:
  role: module
  phases: "design,build"
  archetypes: "*"
---

# Debugging Skill

Systematic debugging, root cause analysis, and error investigation.

## Debugging Approach

### 1. Understand the Problem
- What is expected vs actual behavior?
- When did it start? Can it be reproduced?
- What changed recently?

### 2. Gather Evidence
- Read logs and stack traces
- Review recent changes
- Identify patterns

### 3. Form Hypothesis
- What is the most likely cause?
- What evidence supports this?

### 4. Test Hypothesis
- Design targeted test
- Observe results
- Refine if needed

### 5. Implement Fix
- Develop minimal fix
- Verify resolution
- Add regression tests

### 6. Document
- Root cause and fix
- Add monitoring/alerting

## Issue Categories

- **Logic Errors**: Incorrect conditions, off-by-one, wrong operators
- **State Errors**: Race conditions, stale closures, shared mutable state
- **Integration Errors**: API mismatch, auth issues, timeouts
- **Performance**: N+1 queries, missing indexes, memory leaks
- **Environment**: Config differences, missing vars, permissions

## Systematic Process

Follow the six-step debugging process with:
- Checklists for investigation and evidence gathering
- Severity levels (CRITICAL, HIGH, MEDIUM, LOW)
- Output templates for documentation
- Tools by environment (browser, Node.js, database)

See [refs/process.md](refs/process.md) for detailed process, checklists, and severity guidelines.

## Common Patterns

Debugging techniques and solutions for:
- Null/undefined issues with optional chaining
- Async timing and race conditions
- Scope and closure problems
- Binary search debugging with git bisect
- Performance profiling
- Database query analysis

See [refs/patterns.md](refs/patterns.md) for code examples and debugging techniques.

## External Integration Discovery

Debugging can leverage available integrations by capability:

| Capability | Discovery Patterns | Provides |
|------------|-------------------|----------|
| **Error tracking** | `sentry`, `rollbar`, `datadog` | Recent errors, stack traces, user context |
| **Observability** | `newrelic`, `dynatrace`, `telemetry` | APM data, traces, metrics |
| **Logging** | `splunk`, `elastic`, `cloudwatch` | Log aggregation, search |

Discover available integrations via capability detection. Fall back to local log analysis via the `wicked-garden-search` skill when none available.

## Notes

- Start with the simplest explanation
- Use scientific method: hypothesis, test, refine
- Document your findings for future reference
- Add tests to prevent regression

Files in this skill

  • SKILL.md2.9 KB
  • refs/patterns.md5.1 KB
  • refs/process.md3.9 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.

Comments

Loading comments…

Newsletter

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