bugfix-and-debug

Diagnose and fix bugs and failing tests in Laravel and React applications.

1|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/mgkyawzayya/claude-code-usage-flow --skill bugfix-and-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bugfix-and-debug
Source: https://github.com/mgkyawzayya/claude-code-usage-flow/tree/main/.claude/skills/bugfix-and-debug
Command: npx skills add https://github.com/mgkyawzayya/claude-code-usage-flow --skill bugfix-and-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Efficiently reproducing, diagnosing, and fixing bugs with minimal, targeted changes and regression tests.

Core Features

  • Evidence-based debugging: Collect stack traces and reproduce steps.
  • Hypothesis-driven: Rank likely causes and verify with tests.
  • Minimal fix: Target root cause with smallest change.

Quick Start

Reproduce a failing test or error, then apply the smallest patch and re-run tests.

Frequently Asked Questions about bugfix-and-debug

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

FAQPage Schema
How do I debug failing tests in Laravel and React applications?

Debug failing tests by collecting stack traces and error output, forming hypotheses about root causes, then applying minimal fixes and re-running tests to verify. This skill enforces evidence-based debugging across PHP and TypeScript codebases using Pest and Vitest test runners.

What's the best way to fix PHP exceptions and 500 errors in Laravel?

Diagnose PHP exceptions and 500 errors by reproducing the failure, examining stack traces, identifying the root cause with minimal changes, and validating the fix with regression tests. The workflow prevents incomplete patches and recurring bugs.

How do I approach TypeErrors and unexpected behavior in React code?

Reproduce TypeErrors and unexpected React behavior through test cases, collect evidence from error messages, form ranked hypotheses, verify with targeted tests, then apply the smallest code change needed to resolve the root cause.

Can I apply minimal fixes without introducing regressions?

Yes. This skill enforces a mandatory validation loop: collect evidence, verify hypotheses with tests, apply minimal root-cause fixes, and run regression tests to confirm no new failures occur across PHP and TypeScript components.

Do I need to run full test suites or can I target specific failing tests?

You can target specific failing tests initially to diagnose the issue, then run broader test suites to validate the fix. The prescribed debugging workflow supports both focused diagnosis and full regression prevention.