agentleFS
soden46soden46/syarif-laravel-ai-skills/skills/architecture/SKILL.md

architecture

Skill4 starsChanged 5 months agoMITView on GitHub

Apply Laravel-native architecture decisions without forcing unnecessary repositories, interfaces, DTOs, or custom layers.

82 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use deployment-procedures, behavioral-modes and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xfstudioSkill

    deployment-procedures

    Production deployment principles and decision-making. Safe deployment workflows, rollback strategies, and verification. Teaches thinking, not scripts.

    Also in 5 projects that use this

  • xfstudioSkill

    behavioral-modes

    AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type.

    Also in 4 projects that use this

  • tiendatworkSkill

    2d-games

    2D game development principles. Sprites, tilemaps, physics, camera.

    Also in 3 projects that use this

  • tiendatworkSkill

    3d-games

    3D game development principles. Rendering, shaders, physics, cameras.

    Also in 3 projects that use this

  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • +1 more from xfstudio
  • +5 more from tiendatwork

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 74 edited versions we read keep these.

  • 17

    Distinctive

    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:

    Use Laravel conventions before adding custom architecture.

    line 11
  2. Distinctive:

    Do not force every layer into every feature.

    line 17
  3. Distinctive:

    Use a controller for HTTP orchestration:

    line 23
  4. Distinctive:

    call the application workflow.

    line 27
  5. Distinctive:

    Use a Form Request when validation or authorization is complex, reused, or important enough to test independently.

    line 30
  6. Distinctive:

    Use an Action when a single use case needs a named command-style object.

    line 32
  7. Distinctive:

    Use a Service when a workflow coordinates multiple models, integrations, files, jobs, events, generated documents, or transactional writes.

    line 34
  8. Distinctive:

    Use a Policy or Gate for authorization rules.

    line 36
  9. Distinctive:

    Do not add repositories, interfaces, DTOs, feature folders, or value objects by default.

    line 40
  10. Distinctive:

    Add an interface when:

    line 44
  11. Distinctive:

    Add a repository only when query/data-access complexity is real or storage implementation may vary.

    line 52
  12. Distinctive:

    Before applying version-specific patterns, check:

    line 56
  13. Distinctive:

    Keep the public behavior small and testable.

    line 67
  14. Distinctive:

    Prefer Laravel-native APIs over custom plumbing.

    line 68
  15. Distinctive:

    Keep project-specific business names out of shared standards.

    line 69
  16. Distinctive:

    Write focused tests around the behavior being changed.

    line 70
  17. Distinctive:

    Run available quality checks before handoff.

    line 71

“Common” is measured: kept by at least 6 in 10 of the 74 edited versions of this file we could read. “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

Architecture

Use Laravel conventions before adding custom architecture. A good default request path is:

Route -> Controller -> Form Request -> Action/Service -> Eloquent/Integration -> Response

Do not force every layer into every feature. Add a boundary only when it makes behavior easier to test, reuse, reason about, or change.

For multi-menu dashboards, admin systems, or copied prototype apps, also use module-per-menu: default to one menu or page per module, small controllers, per-page views, shared layouts/components, and DB-backed dynamic data.

Layer Decisions

Use a controller for HTTP orchestration:

  • receive the request;
  • delegate validation and authorization;
  • call the application workflow;
  • return redirect, response, resource, view, or stream.

Use a Form Request when validation or authorization is complex, reused, or important enough to test independently.

Use an Action when a single use case needs a named command-style object.

Use a Service when a workflow coordinates multiple models, integrations, files, jobs, events, generated documents, or transactional writes.

Use a Policy or Gate for authorization rules. Keep authorization close to the boundary, but do not bury model-state rules in routes.

Avoid Overengineering

Do not add repositories, interfaces, DTOs, feature folders, or value objects by default.

Duplication alone is not sufficient reason to create a service, action, or class. Prefer local reuse or a small extraction when behavior, lifecycle, dependencies, and change surface remain simple. Create a dedicated service, action, or boundary only when there is a justified business boundary, reusable operation, dependency boundary, or meaningful complexity.

Add an interface when:

  • there are multiple implementations;
  • a provider may be swapped;
  • the domain should not depend on a concrete integration;
  • a stable contract is shared across modules;
  • a test boundary is meaningful and not just mocking for its own sake.

Add a repository only when query/data-access complexity is real or storage implementation may vary. Plain Eloquent in an Action or Service is fine for normal CRUD.

Version And Stack Detection

Before applying version-specific patterns, check:

  • Laravel version in composer.json or php artisan --version;
  • PHP version and supported syntax;
  • installed testing framework;
  • queue driver and Horizon presence;
  • Blade, Livewire, Inertia, React, Vue, Tailwind, or Vite usage;
  • Sail/container workflow versus host commands.

Implementation Checklist

  • Keep the public behavior small and testable.
  • Prefer Laravel-native APIs over custom plumbing.
  • Keep project-specific business names out of shared standards.
  • Write focused tests around the behavior being changed.
  • Run available quality checks before handoff.

Context Efficiency

Layer: 3 (Implementation)

Load this skill only when architecture decisions are needed. Do not load with unrelated skills. Keep the implementation checklist minimal: public behavior, Laravel-native APIs, focused tests, quality checks.

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.