Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

laravel-architecture

БесплатноБез исполняемых скриптовНе проверен

Use when structuring a Laravel project, creating services/repositories/actions, implementing dependency injection, or organizing code layers.

Fusengineот Fusengine★ 36 звёзд на GitHub

Об этом скилле

Covers Laravel application architecture end to end: project structure (Actions, Contracts, DTOs, Services, Repositories layout), the service container and dependency injection, service providers and facades, environment/configuration, development environments (Sail, Valet, Homestead, Octane), Artisan CLI, filesystem/processes/context, feature flags (Pennant), MCP servers, concurrency, and production deployment (including Envoy, logging, error handling, and package authoring).

Laravel Architecture Patterns

Agent Workflow (MANDATORY)

Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:

  1. fuse-ai-pilot:explore-codebase - Analyze existing architecture
  2. fuse-ai-pilot:research-expert - Verify Laravel patterns via Context7
  3. mcp__context7__query-docs - Check service container and DI patterns

After implementation, run fuse-ai-pilot:sniper for validation.


Overview

Laravel architecture focuses on clean separation of concerns, dependency injection, and maintainable code organization. This skill covers everything from project structure to production deployment.

When to Use

  • Structuring new Laravel projects
  • Implementing services, repositories, actions
  • Setting up dependency injection
  • Configuring development environments
  • Deploying to production

Critical Rules

  1. Thin controllers - Delegate business logic to services
  2. Interfaces in app/Contracts/ - Never alongside implementations
  3. DI over facades - Constructor injection for testability
  4. Files within FUSE_SOLID_MAX_LINES - Split larger files per SOLID
  5. Environment separation - .env never committed

Architecture

app/
├── Actions/              # Single-purpose action classes
├── Contracts/            # Interfaces (DI)
├── DTOs/                 # Data transfer objects
├── Enums/                # PHP 8.1+ enums
├── Events/               # Domain events
├── Http/
│   ├── Controllers/      # Thin controllers
│   ├── Middleware/       # Request filters
│   ├── Requests/         # Form validation
│   └── Resources/        # API transformations
├── Jobs/                 # Queued jobs
├── Listeners/            # Event handlers
├── Models/               # Eloquent models only
├── Policies/             # Authorization
├── Providers/            # Service registration
├── Repositories/         # Data access layer
└── Services/             # Business logic

Reference Guide

Core Architecture

Reference When to Use
container.md Dependency injection, binding, resolution
providers.md Service registration, bootstrapping
facades.md Static proxies, real-time facades
contracts.md Interfaces, loose coupling
structure.md Directory organization
lifecycle.md Request handling flow

Configuration & Setup

Reference When to Use
configuration.md Environment, config files
installation.md New project setup
upgrade.md Version upgrades, breaking changes
releases.md Release notes, versioning

Development Environments

Reference When to Use
sail.md Docker development
valet.md macOS native development
homestead.md Vagrant (legacy)
octane.md High-performance servers

Utilities & Tools

Reference When to Use
artisan.md CLI commands, custom commands
helpers.md Global helper functions
filesystem.md File storage, S3, local
processes.md Shell command execution
context.md Request-scoped data sharing

Advanced Features

Reference When to Use
pennant.md Feature flags
mcp.md Model Context Protocol
concurrency.md Parallel execution

Operations

Reference When to Use
deployment.md Production deployment
envoy.md SSH task automation
logging.md Log channels, formatting
errors.md Exception handling
packages.md Creating packages

Templates

Template Purpose
UserService.php.md Service + reposi
Полный SKILL.md на GitHub

Установить laravel-architecture в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/artisan.mdreferences/concurrency.mdreferences/configuration.mdreferences/container.mdreferences/context.mdreferences/contracts.mdreferences/deployment.mdreferences/envoy.mdreferences/errors.mdreferences/facades.mdreferences/filesystem.mdreferences/helpers.mdreferences/homestead.mdreferences/installation.mdreferences/lifecycle.mdreferences/logging.mdreferences/mcp.mdreferences/octane.mdreferences/packages.mdreferences/pennant.mdreferences/processes.mdreferences/providers.mdreferences/releases.mdreferences/sail.mdreferences/structure.mdreferences/templates/AppServiceProvider.php.mdreferences/templates/ArtisanCommand.php.mdreferences/templates/Envoy.blade.php.mdreferences/templates/McpServer.php.mdreferences/templates/PennantFeature.php.mdreferences/templates/UserService.php.mdreferences/templates/octane-config.mdreferences/templates/sail-config.mdreferences/upgrade.mdreferences/valet.md

FAQ

Что делает скилл laravel-architecture?

Use when structuring a Laravel project, creating services/repositories/actions, implementing dependency injection, or organizing code layers.

Как установить скилл laravel-architecture?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл laravel-architecture запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить laravel-architecture с