一键导入
standards-laravel
Use when building or modifying Laravel applications, including routes, controllers, models, migrations, jobs, actions, and API resources.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when building or modifying Laravel applications, including routes, controllers, models, migrations, jobs, actions, and API resources.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when you have a spec or PRD that needs decomposing into small, verifiable implementation tasks. Use before any build cycle to ensure tasks are thin vertical slices with clear acceptance criteria.
Use when starting a new feature, when requirements are unclear, when asked to write code without a clear spec, or before any non-trivial implementation. Do NOT use for trivial bug fixes or one-line changes.
Use when reviewing codebase architecture for refactoring opportunities, surfacing shallow modules, or proposing deepening refactors. Identifies architectural friction and produces GitHub issues with the ops-triage labeling scheme. Supports interactive (human approval) and auto (CI/headless) modes — auto mode files every surviving candidate directly and writes a step-summary report.
Use when reviewing a pull request or code change before merge. Use for the five-axis evaluation (correctness, readability, architecture, security, performance), exposure × impact severity classification, AC coverage verification, and the `## Automated review` comment. Use in both human and CI mode — the methodology is identical; only the inputs and agent invocation differ.
Use when working in a Next.js 15 App Router project — editing app/, src/app/, components/, server actions, or route handlers. Enforces project conventions for queries, mutations, and data fetching.
Use when editing *.ts or *.tsx files in this project. Enforces TypeScript conventions including Zod-derived types, Prisma type patterns, type-only imports, and shared constant extraction.
| name | standards-laravel |
| description | Use when building or modifying Laravel applications, including routes, controllers, models, migrations, jobs, actions, and API resources. |
| category | standards |
| global | false |
| public | true |
./vendor/bin/sail composer run test (Pint + PHPStan level 8 + Pest)| Topic | Reference | Load When |
|---|---|---|
| Models | references/models.md | Eloquent models, relationships, scopes, casts |
| Routes | references/routes.md | Route definitions, naming, grouping, middleware |
| Controllers | references/controllers.md | Invokable controllers, route model binding, return types |
| Actions | references/actions.md | Business logic, record creation/update/delete |
| Form Requests | references/form-requests.md | Validation, authorization |
| API Resources | references/api-resources.md | Model transformation, nested resources, Inertia props |
| Services | references/services.md | External I/O, third-party API clients, DTOs |
| Jobs & Events | references/jobs-events.md | Queued jobs, event dispatching, listeners |
| Policies | references/policies.md | Authorization policies, gates |
| Migrations | references/migrations.md | Schema changes, indexes, foreign keys |
| Configuration | references/configuration.md | #[Config] attribute injection, view data passing |
| Current User | references/current-user.md | #[CurrentUser] attribute, authenticated user injection |
$request->validate() in controllersrules()) for actions with no request body (show, edit, destroy)resource_id (UUID) as public id — never expose internal database IDs#[Config] attribute for configuration injection#[CurrentUser] attribute for authenticated user injection in controller constructors./vendor/bin/sail composer run test (Pint + PHPStan level 8 + Pest)#[Config] injectionGate::authorize() in controllers — use Form Request authorize() methodAuth::user() inside controller methods — use #[CurrentUser] constructor injection instead