agentsclimarketplace

Architecture

Skill soden46/syarif-laravel-ai-skills/skills/architecture

Reusable Laravel AI skills for Codex, Claude Code, and other AI coding assistants

Install
npx -y skills add soden46/syarif-laravel-ai-skills --skill architecture

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

2 things to look at

  • 20 days oldThe repository was created 20 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 1 stars1 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.

What its author says it does

Copied from the file, not written here

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

SKILL.md

2.4 KB, as published. Nobody here has run it

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.

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.

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.

Keep looking

Skills are one crate of 328,083. 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.