debug

Guide root cause investigation and bug fixing with a verification loop.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/LayerDynamics/Lore --skill debug-layerdynamics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug
Source: https://github.com/LayerDynamics/Lore/tree/main/lore/skills/debug
Command: npx skills add https://github.com/LayerDynamics/Lore --skill debug-layerdynamics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the common and time-consuming problem of debugging software by providing a structured, systematic approach to identifying and resolving bugs, preventing the introduction of new issues through hasty fixes.

Core Features & Use Cases

  • Root Cause Analysis: Guides users through a rigorous process to find the fundamental reason for a bug, rather than just treating symptoms.
  • Reproducibility: Emphasizes reliably reproducing the issue before attempting any fixes.
  • Verification Loop: Mandates a strict verification process to ensure fixes are correct and do not introduce regressions.
  • Use Case: When a critical test fails in production, this Skill ensures the team doesn't just patch the symptom but systematically traces the data flow, analyzes patterns, forms a hypothesis, and verifies the fix against the original failure and the broader test suite.

Quick Start

Use the debug skill to investigate and fix the current test failures.

Frequently Asked Questions about debug

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

FAQPage Schema
What is the best way to systematically find a software bug's root cause?

Root cause investigation is best done by systematically reproducing the issue, tracing data flow, analyzing error patterns, and forming a hypothesis before attempting any fixes. This prevents treating symptoms instead of the fundamental problem.

How do I fix a failing test without introducing regressions?

To fix a failing test without regressions, enforce a strict verification loop after applying changes. This ensures the fix resolves the original failure and confirms efficacy against the broader test suite before deployment.

Why should I reproduce an error before attempting bug fixing?

Reproducing an error before bug fixing is essential because reliable reproduction isolates the exact conditions triggering the defect. This allows accurate change tracking and hypothesis testing to verify the fix targets the actual fault.

Can I apply a quick patch to resolve a critical test failure in production?

Applying a quick patch without root cause analysis is strongly discouraged. A systematic methodology mandates tracing data flow and analyzing patterns first, ensuring the fix is correct and prevents new issues from hasty patches.

What steps are involved in systematic software troubleshooting?

Systematic troubleshooting involves error analysis, reliable reproduction, change tracking, data flow tracing, hypothesis testing, and a mandatory verification loop. This structured process ensures fixes are validated and regressions are prevented.

Does this debugging approach work for complex production issues?

Yes, this debugging approach works for complex production issues by guiding teams through rigorous root cause investigation and verification. It ensures critical failures are resolved systematically rather than patched superficially.