hadyfayed/laravel-agent/bug-fix
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Systematically diagnose and fix a bug — reproduce, root-cause, fix, regression test; when fixing a reported bug.
Install
npx vskill@latest install hadyfayed/laravel-agent/bug-fixSKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/bug-fix.
Task
Diagnose and fix a bug in your Laravel application.
- Gather error context
From argument (error message, log file, or exception type):
- If empty, check
storage/logs/laravel.logfor recent exceptions - If passed, search for matching errors across logs
``bash tail -200 storage/logs/laravel.log | grep -A 30 "Exception\|Error" ``
- Analyze the error
- Read stack trace line-by-line (file, line number, method)
- Identify the triggering event (HTTP request, job, command, event)
- Check related code: model scopes, migrations, validation rules, config
- Look for recent changes that might have introduced the bug
- Identify root cause
Common patterns:
- QueryException → missing column, foreign key constraint, syntax error
- Class/Method not found → missing import, namespace mismatch, typo
- Validation error → missing/wrong rule, custom rule logic, request class
- Authentication/Authorization → guard config, middleware order, policy logic
- Relationship issue → wrong relationship type, missing join, circular dependency
- Fix the bug
- Edit or create files as needed (migrations, model methods, validation rules)
- Keep changes minimal and focused
- Update related code if side effects exist
- Test the fix
- Reproduce the original error to confirm it's fixed
- Write a regression test (unit or feature test)
- Check for related edge cases
- Report
```markdown ## Bug Fix: <Error Type>
### Error <Full error message>
### Root Cause <Why this error occurred>
### Solution <Changes made with explanations>
### Files Modified
- app/Models/X.php (line Y)
- database/migrations/...
### Regression Test <Test added to prevent reoccurrence> ```
See also
laravel-testingreference skill for test patterns- Laravel documentation for Eloquent, validation, authentication
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bug-fix/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/bug-fix)