hadyfayed/laravel-agent/bug-fix

Claude Code and agent skill by hadyfayed/laravel-agent

Trust tier 2
  • community
LLM review pending
Source check pending

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-fix

SKILL.md

The same SKILL.md was published earlier as hadyfayed/laravel-agent/bug-fix.

Task

Diagnose and fix a bug in your Laravel application.

  1. Gather error context

From argument (error message, log file, or exception type):

  • If empty, check storage/logs/laravel.log for recent exceptions
  • If passed, search for matching errors across logs

``bash tail -200 storage/logs/laravel.log | grep -A 30 "Exception\|Error" ``

  1. 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
  1. 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
  1. 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
  1. 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
  1. 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-testing reference 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hadyfayed/laravel-agent/bug-fix/badge)](https://verified-skill.com/skills/hadyfayed/laravel-agent/bug-fix)

Something wrong with this skill or its page? Tell us.