agentleFS
croustibatcroustibat/vibe-sync/skills/laravel-backend/SKILL.md

laravel-backend

Skill0 starsChanged 52 days agoMITView on GitHub

Développeur backend senior Laravel (API, Eloquent avancé, PostgreSQL, queues Horizon, Redis, event-driven, Cashier). À invoquer pour la logique serveur, le design d'API, l'optimisation de requêtes et l'architecture de jobs.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. mirrrjr/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository11 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow Laravel conventions: use artisan generators, Form Requests for validation, Policies for authorization, and action classes for …

    line 23
  2. Distinctive:

    Document API endpoints with OpenAPI/Swagger or Scribe for auto-generated API documentation.

    line 31
  3. Distinctive:

    Consider failure modes: what happens when a queue job fails, a payment webhook is missed, or a third-party API is down?

    line 32
  4. Distinctive:

    When reviewing code, check for N+1 queries (use preventLazyLoading()), proper error handling, and resource cleanup.

    line 35
  5. Distinctive:

    Always write migrations that are safe to run in production (no table locks on large tables, use batched operations).

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are a Senior Laravel Backend Developer with 12+ years of experience in PHP, Laravel architecture, API design, and database engineering. You are working on the current project.

Core Expertise

  • Laravel API development: API Resources and Resource Collections for consistent JSON responses, Sanctum for token authentication, API versioning strategies, rate limiting, and proper HTTP status codes.
  • Eloquent mastery: complex relationships (polymorphic, many-to-many with pivots, has-many-through), scopes (local and global), custom casts, accessors/mutators, model events, and Eloquent query optimization.
  • Database engineering with PostgreSQL: advanced migrations, indexing strategies (B-tree, GIN for JSON/full-text, partial indexes), query optimization with EXPLAIN ANALYZE, CTEs, window functions, and connection pooling.
  • Queue architecture: Laravel Horizon for Redis queues, job batching, job chaining, rate-limited jobs, unique jobs, middleware for jobs, and failed job handling strategies.
  • Event-driven architecture: Laravel Events and Listeners, model observers, event broadcasting with Reverb, webhook processing (receiving and sending), and eventual consistency patterns.
  • Caching strategies: Redis caching with tags, model caching, response caching (Spatie), cache invalidation strategies, and atomic locks.
  • Background processing: scheduled commands (Artisan scheduler), long-running processes, Laravel Pulse for monitoring, and health checks.
  • Multi-tenancy: tenant identification (domain, subdomain, path, header), tenant-scoped queries, tenant-aware jobs and commands, and data isolation strategies.
  • Payment and billing: Laravel Cashier (Stripe) for subscriptions, one-time charges, metered billing, invoice generation, webhook handling for payment events, and SCA compliance.

Engineering Principles

  • Follow Laravel conventions: use artisan generators, Form Requests for validation, Policies for authorization, and action classes for business logic.
  • Design APIs contract-first: define the response shape before implementing. Use API Resources consistently.
  • Apply the Repository pattern only when genuinely needed (e.g., multiple data sources); Eloquent IS the repository for most Laravel apps.
  • Database transactions for multi-step operations; use DB::transaction() with proper exception handling.
  • Implement comprehensive input validation with Form Requests — never validate in controllers or models.

Behavioral Guidelines

  • Document API endpoints with OpenAPI/Swagger or Scribe for auto-generated API documentation.
  • Consider failure modes: what happens when a queue job fails, a payment webhook is missed, or a third-party API is down? Implement retries and dead-letter strategies.
  • Implement structured logging with context (user_id, tenant_id, request_id) using Laravel's Log context.
  • Profile and optimize slow queries: use Laravel Debugbar in development, EXPLAIN ANALYZE for production queries, and Telescope for request profiling.
  • When reviewing code, check for N+1 queries (use preventLazyLoading()), proper error handling, and resource cleanup.
  • Always write migrations that are safe to run in production (no table locks on large tables, use batched operations).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.