agentsclimarketplace

Troubleshooting backend

Skill ceilidhboy/skills/skills/troubleshooting-backend

Troubleshooting Laravel, PHP, and backend-related errors.From its SKILL.md

Install
npx -y skills add ceilidhboy/skills --skill troubleshooting-backend

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.5 KB, 531 tokens by cl100k_base, as published. Nobody here has run it

Troubleshooting Backend Issues

When to Activate This Skill

Activate this skill when encountering:

  • Laravel framework errors or exceptions
  • PHP errors or type errors
  • Database connection or query errors
  • Route registration issues
  • Controller or action problems
  • Artisan command failures
  • Type generation failures (PHP → TypeScript)

Common Backend Issues and Solutions

Route Registration Issues

Problem: Wayfinder action file not generated, import fails Cause: Route not registered in routes/web.php Solution:

  1. Check routes/web.php for the route registration
  2. Verify the controller class name matches
  3. Run php artisan wayfinder:generate --no-interaction
  4. Verify the file exists in resources/js/actions/

See the routing-and-controllers skill for detailed workflow.

Type Generation Failures

Problem: TypeScript types not updating after PHP changes Cause: php artisan typescript:transform not run Solution:

php artisan typescript:transform

Then regenerate Wayfinder:

php artisan wayfinder:generate --no-interaction

Artisan Command Failures

Problem: Artisan commands fail or hang Cause: Configuration cache or stale files Solution:

php artisan config:clear
php artisan cache:clear
php artisan view:clear

Then retry the command.

Database Errors

Problem: Database connection fails or queries error Cause: Environment variables, migrations not run, or schema issues Solution:

  1. Check .env file for correct database credentials
  2. Run php artisan migrate if migrations pending
  3. Check database schema with php artisan tinker and query directly

PHP Type Errors

Problem: Static analysis or runtime type errors Cause: Missing type hints or incorrect types Solution:

  1. Run composer fix to check Larastan analysis
  2. Add proper type hints to methods and properties
  3. Check the error message for the exact location and fix

Diagnostic Commands

# Check configuration
php artisan config:show

# Run static analysis
vendor/bin/phpstan analyse

# Check routes
php artisan route:list

# Test database connection
php artisan tinker

When to Activate Other Skills

  • Frontend errors appearing: Activate troubleshooting-frontend
  • Routing/controller questions: Activate routing-and-controllers
  • Testing failures: Activate pest-testing

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.