AgentSkillsCN

custom-laravel-backend

遵循仓库中所使用的版本,落实 Laravel 后端的现代规范。在实施或重构 Laravel 后端代码、服务类、控制器、模型,以及通用 PHP 应用逻辑时使用。

SKILL.md
--- frontmatter
name: custom-laravel-backend
description: Apply Laravel backend modern conventions following used versions in the repository. Use when implementing or refactoring Laravel backend code, service classes, controllers, models, or general PHP application logic.

Custom Laravel Backend Conventions

Scope

Apply this skill only for Laravel backend work.

Rules

  1. Use use imports instead of inline FQNs like \App\Models\User.
  2. Prefer __invoke() for invokable classes to improve IDE support.

Execution Notes

  • Keep changes minimal and consistent with existing project patterns.
  • Do not apply this skill to non-PHP or non-Laravel tasks.