debug

Guide systematic debugging workflows to reproduce, isolate, fix, and verify code defects.

1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/coreindustries/core-ai-template --skill debug-coreindustries
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug
Source: https://github.com/coreindustries/core-ai-template/tree/main/.claude/skills/debug
Command: npx skills add https://github.com/coreindustries/core-ai-template --skill debug-coreindustries

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured, step-by-step process to systematically identify, reproduce, isolate, and fix bugs in code, ensuring thoroughness and preventing regressions.

Core Features & Use Cases

  • Reproducible Bug Fixing: Guides users through creating minimal reproductions and failing tests.
  • Root Cause Analysis: Employs hypothesis testing and isolation techniques to pinpoint the exact cause of issues.
  • Use Case: When encountering an unexpected error message during development, invoke /debug with the error details to initiate a guided workflow that leads to a verified fix and a regression test.

Quick Start

Use the debug skill to resolve the issue described by 'TypeError: Cannot read property 'id' of undefined in UserService'.

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 debug and fix code defects?

Systematic debugging requires a structured workflow to reproduce, isolate, fix, and verify code defects. It guides you through error analysis, minimal reproduction creation, and hypothesis testing to pinpoint root causes and implement verified fixes.

How do I troubleshoot a TypeError like 'Cannot read property of undefined'?

Troubleshooting a TypeError involves analyzing the error message to create a minimal reproduction. By isolating the variables involved, you can test hypotheses to find the undefined reference and implement a targeted fix with a regression test.

How can I create a minimal reproduction for a failing test?

Creating a minimal reproduction for a failing test involves stripping away irrelevant code to isolate the exact trigger. This process helps pinpoint the defect's root cause through focused hypothesis testing before applying a fix.

Does this debugging workflow support isolating race conditions and null references?

Yes, this debugging workflow supports isolating race conditions, null references, type errors, and configuration issues. It applies common debugging patterns to systematically reproduce and resolve these specific code defects.

Why should I write a regression test when fixing bugs?

Writing a regression test when fixing bugs ensures the specific defect is permanently resolved and prevents it from reappearing in future updates. It verifies the minimal fix works without introducing new issues.