Project analysis laravel

From event4u-app/agent-config · View interactive version

Project analysis laravel is an AI agent skill from the GitHub repository event4u-app/agent-config. Use for deep Laravel project analysis: boot flow, request lifecycle, container usage, Eloquent/data flow, async systems, and Laravel-specific failure patterns.

How to use this skill

Skill file

project-analysis-laravel

When to use

Use this skill when:

Do NOT use when:

Core principles

Procedure

1. Confirm Laravel version and runtime

Check: composer.lock, composer.json, artisan --version, PHP version and runtime environment.

Validate: Laravel version is explicit, major supporting packages are identified, deployment/runtime shape is known.

2. Analyze boot and configuration

Inspect: service providers, provider registration order, config files, cached config/route state, middleware registration, route groups and prefixes, env/config interaction.

Check:

3. Trace request-to-response flow

Trace: route → middleware → FormRequest/validation → controller → service/action → model/repository/query → events/observers → response transformation.

Validate: authorization path is visible, validation path is visible, transaction boundaries are visible, hidden side effects are identified.

4. Analyze data and Eloquent flow

Inspect: migrations, model relationships, casts/enums/json usage, soft deletes, nullable assumptions, eager/lazy loading, indexes and query shape.

Check:

5. Analyze async and infrastructure flow

Inspect: queued jobs, event listeners, scheduled commands, broadcasting, cache invalidation, mail/notification side effects, external HTTP integrations.

Check:

6. Analyze test posture

Check: feature tests, unit tests, integration coverage, factories/seeders/fakes, missing tests on critical paths.

Validate: risky paths have test coverage, async behavior has meaningful tests, infrastructure assumptions are testable.

7. Validate Laravel analysis quality

Check:

Output format

  1. Laravel version and runtime summary
  2. Boot/config findings
  3. Request-to-response flow
  4. Data/Eloquent findings
  5. Async/infrastructure findings
  6. Test posture
  7. Key risks and next steps

Gotcha

Do NOT

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.