debug

Trace errors through call stacks and verify fixes with evidence.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/IoT-VN/tuya-energy-dashboard --skill debug-iot-vn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug
Source: https://github.com/IoT-VN/tuya-energy-dashboard/tree/main/.opencode/skills/debug
Command: npx skills add https://github.com/IoT-VN/tuya-energy-dashboard --skill debug-iot-vn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust framework to systematically identify and fix bugs by focusing on root cause analysis rather than superficial fixes, ensuring long-term stability and preventing regressions.

Core Features & Use Cases

  • Systematic Debugging: Follows a four-phase process (Investigation, Pattern Analysis, Hypothesis, Implementation) to ensure thoroughness.
  • Root Cause Tracing: Helps trace errors backward through call stacks to pinpoint the origin of issues.
  • Defense-in-Depth: Guides the implementation of multi-layered validation to make bugs impossible.
  • Verification Protocols: Mandates evidence-based verification before claiming completion.
  • Use Case: When a test fails unexpectedly, use this Skill to systematically investigate the failure, identify the exact line of code causing the issue, implement a targeted fix, and verify that the fix resolves the problem without introducing new ones.

Quick Start

Use the debug skill to investigate and fix the failing test case 'test_user_creation_failure'.

Frequently Asked Questions about debug

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

FAQPage Schema
What is root cause analysis in software debugging?

Root cause analysis in software debugging traces errors backward through call stacks to pinpoint the exact origin of an issue, ensuring long-term stability and preventing regressions. It prioritizes fixing the origin over applying superficial patches.

How do I systematically debug a failing test case?

To systematically debug a failing test case, follow a four-phase process: investigate the failure, analyze patterns, form a hypothesis, and implement a targeted fix. This methodology ensures you identify the exact line of code causing the unexpected behavior.

What is the best way to verify a bug fix without introducing regressions?

The best way to verify a bug fix without regressions is applying evidence-based validation protocols. This approach mandates gathering concrete proof that the fix resolves the issue completely without introducing new defects before claiming task completion.

How does defense-in-depth validation prevent bugs in software engineering?

Defense-in-depth validation prevents bugs in software engineering by implementing multi-layered validation checks throughout the system. This systematic strategy makes software defects practically impossible to bypass or propagate into production environments.

When should I use a systematic debugging methodology instead of quick fixes?

You should use a systematic debugging methodology instead of quick fixes when a test fails unexpectedly or when you need to ensure long-term software stability. It guarantees fixes are verified with concrete evidence before task completion.