debug

Diagnose bugs through structured reproduction, root-cause analysis, minimal fixes, and regression tests.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/javiruu/viru-air --skill debug-javiruu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: debug
Source: https://github.com/javiruu/viru-air/tree/main/.claude/skills/debug
Command: npx skills add https://github.com/javiruu/viru-air --skill debug-javiruu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging often becomes unstructured guesswork that patches symptoms instead of root causes. This Skill enforces a disciplined seven-step workflow that reproduces the bug, traces the true root cause, applies a minimal fix, and prevents recurrence with regression tests. ## Core Features & Use Cases - Structured Diagnosis Workflow: Guides you through error collection, reproduction, root-cause tracing, minimal fix proposal, and regression testing in a fixed order. - MCP-Based Code Investigation: Uses code analysis tools like find_symbol, find_referencing_symbols, and search_for_pattern to locate failures without manual file reading. - Similar Pattern Scanning: Searches the codebase for other locations sharing the same vulnerable pattern, optionally delegating broad scans to a debug-investigator subagent. - Use Case: A user reports a null pointer error in production. The Skill locates the failing symbol, traces the call path back to the missing null check, proposes a one-line fix, writes a failing-then-passing regression test, and records the incident in memory. ## Quick Start Ask the assistant to debug the error message you are seeing and follow the guided diagnosis workflow.

Frequently Asked Questions about debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a bug with a structured workflow?▼

Follow the seven-step process: collect error information, reproduce the bug, diagnose the root cause, propose a minimal fix, apply the fix with a regression test, scan for similar patterns, and document the bug. Each step must complete before moving to the next.

How to find the root cause of an error instead of the symptom?▼

Use find_referencing_symbols to trace the execution path backward from the failure point. Check for null access, race conditions, missing error handling, wrong data types, and stale state until the originating cause is confirmed.

What tools does this debugging workflow use to investigate code?▼

It uses MCP code analysis tools: search_for_pattern to locate error messages, find_symbol to identify the exact function, and find_referencing_symbols to trace call paths. Raw file reads and grep are explicitly avoided.

Does the debug workflow require user confirmation before fixing?▼

Yes. After diagnosing the root cause, the proposed minimal fix is presented to the user and must be confirmed before implementation proceeds. This prevents unwanted code changes.

When does the debug skill spawn a subagent?▼

A debug-investigator subagent is spawned when the error spans multiple domains, the similar-pattern scan covers 10 or more files, or deep dependency tracing is needed. The spawn mechanism varies by vendor environment.

Why write a regression test after fixing a bug?▼

The regression test reproduces the original bug and verifies the fix, failing without the fix and passing with it. This guarantees the same defect cannot silently reappear in future changes.