npx skills add ...
npx skills add iserter/laravel-claude-agents --skill laravel-systematic-debugging
Systematic debugging process for Laravel applications - ensures root cause investigation before attempting fixes. Use for any Laravel issue (test failures, bugs, unexpected behavior, performance problems).
npx skills add iserter/laravel-claude-agents --skill laravel-systematic-debugging
Random fixes waste time and create new bugs in Laravel applications. Quick patches mask underlying issues.
Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
Violating the letter of this process is violating the spirit of debugging.
If you haven't completed Phase 1, you cannot propose fixes.
Use for ANY Laravel technical issue:
Use this ESPECIALLY when:
You MUST complete each phase before proceeding to the next.
BEFORE attempting ANY fix:
Read Error Messages Carefully
Check Laravel Logs
Enable Debug Mode (Local Only)
Use Laravel Telescope
Check Recent Changes
Reproduce Consistently
Trace Data Flow for Eloquent Issues
Find the pattern before fixing:
Find Working Examples in Laravel
Compare Against Laravel Conventions
Check Laravel Documentation
Identify Differences
Scientific method:
Form Single Hypothesis
Test Minimally
Verify in Tinker
When You Don't Know
Fix the root cause, not the symptom:
Create Failing Test Case
Implement Single Fix
Verify Fix
If Fix Doesn't Work
If 3+ Fixes Failed: Question Architecture
If you catch yourself thinking:
ALL of these mean: STOP. Return to Phase 1.
| Phase | Laravel-Specific Activities | Success Criteria |
|---|---|---|
| 1. Root Cause | Check logs, Telescope, Tinker, recent changes | Understand WHAT and WHY |
| 2. Pattern | Find working Laravel examples, check docs | Identify differences |
| 3. Hypothesis | Form theory, test in Tinker | Confirmed or new hypothesis |
| 4. Implementation | Create Pest test, fix, verify | Bug resolved, tests pass |
Always investigate systematically, understand the root cause, then fix once correctly.