Debug helper

From VenTheZone/pi-dots · View interactive version

Debug helper is an AI agent skill from the GitHub repository VenTheZone/pi-dots. Debug assistant for error analysis, log interpretation, and performance profiling. Use when user encounters errors, crashes, or performance issues.

How to use this skill

Skill file

Debug Helper

Systematic debugging workflow.

Error Analysis

  1. Read the error — Full stack trace and error message
  2. Locate — Find the source file and line

```bash

# Search for the error origin

grep -rn "ErrorClass\|error_function" src/

```

  1. Context — Read surrounding code (±30 lines)
  2. Reproduce — Identify minimal reproduction steps
  3. Root cause — Trace the data flow to find where it goes wrong
  4. Fix — Minimal change that addresses the root cause
  5. Verify — Run the failing case to confirm the fix

Log Analysis

  1. Read the log file or output
  2. Identify patterns: timestamps, error levels, request IDs
  3. Correlate events across log lines
  4. Summarize: what happened, when, and why

Performance Profiling

  1. Measure — Get baseline numbers first

```bash

time <command>

```

  1. Profile — Use language-appropriate tools:
  1. Identify — Find the hotspot (usually 1-2 functions)
  2. Optimize — Fix the bottleneck
  3. Verify — Measure again, compare with baseline
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.