AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсОбучениеПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

v.lomtev@airassvet.ru

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиСогласие на обработку ПДн|ИНН 623412173261
    Laravel Best Practices — Скилл для ИИ-агентов | AI Рассвет

    Laravel Best Practices

    Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.

    Скиллы для разработки#GitHub#laravel/boost#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры
    1

    Установить скилл

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

    npx skills add laravel/boost --skill laravel-best-practices
    Скачать ZIP
    Версия
    1.0.0+30e24b7c2420
    Автор
    Владимир Ломтев
    Репозиторий
    laravel/boost
    GitHub: laravel/boost

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    Laravel best practices

    Best practices for Laravel, organized as an index of rule files. Each rule file teaches what to do and why. For exact API syntax, verify with search-docs.

    Consistency first

    Before applying any rule, check what the application already does. Laravel offers several valid approaches. The best choice is the one the codebase already uses, even if another pattern would be better in theory. Inconsistency is worse than a suboptimal pattern.

    Check sibling files and related controllers, models, or tests for established patterns. If one exists, follow it. Don't introduce a second way. These rules are defaults for when no pattern exists yet, not overrides.

    How to apply

    1. Check the changed files, nearby code, project configuration, and relevant tests for established patterns. Deviate only for a correctness or security defect, and call the deviation out.
    2. Map every affected concern to the rule index below. Read each mapped rule file before editing. Skip unrelated rule files.
    3. Make the smallest coherent change. Keep the application's architecture and naming instead of introducing a second pattern for the same job.
    4. Verify version-sensitive Laravel APIs for the installed version with search-docs, or inspect the installed framework when search-docs is unavailable.
    5. Run the narrowest relevant tests first, then the project's formatting and static-analysis checks when the change warrants them.
    6. Re-read the diff against every mapped rule before finishing.

    Rule index

    Cross-cutting changes often need more than one rule file.

    Concern Read
    Query count, eager loading, indexes, large datasets rules/db-performance.md
    Subqueries, aggregates, complex ordering and query plans rules/advanced-queries.md
    Models, relationships, scopes, casts rules/eloquent.md
    Authentication, authorization, input safety, secrets, uploads rules/security.md
    Form Requests and validation rules rules/validation.md
    Controllers, route binding, resources, middleware rules/routing.md
    Schema changes, columns, foreign keys, indexes rules/migrations.md
    Jobs, retries, uniqueness, batches, Horizon rules/queue-jobs.md
    Cache lifetime, invalidation, locks, memoization rules/caching.md
    Outbound requests, retries, timeouts, fakes rules/http-client.md
    Exceptions, reporting, rendering, log context rules/error-handling.md
    Events and notifications rules/events-notifications.md
    Mailables and mail assertions rules/mail.md
    Scheduled tasks and overlap protection rules/scheduling.md
    Collections, lazy iteration, bulk operations rules/collections.md
    Blade components, attributes, composers rules/blade-views.md
    Environment values and application configuration rules/config.md
    Tests: coverage, factories, fakes, and assertions the testing-best-practices skill
    Naming, helpers, file boundaries, PHP style rules/style.md
    Actions, services, dependencies, application structure rules/architecture.md

    Decision rules

    • Prefer framework features and existing application abstractions over new helpers or dependencies.
    • Avoid speculative abstractions. Extract code when it creates a clear domain boundary, removes meaningful duplication, or makes behavior independently testable.
    • Keep database access out of Blade views and prevent hidden N+1 queries across controllers, resources, jobs, and serialization.

    Требования и возможности

    Источник пакета
    https://github.com/laravel/boost/tree/30e24b7c242049e31bd267cd64b57301fc66b2f4/.ai/laravel/skill/laravel-best-practices

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md464996cef716f69a2cf5...
    rules/advanced-queries.md432460d4928f7a6e5b63...
    rules/architecture.md6443fd84bb20486ebc8e...
    rules/blade-views.md1868e36eee9aea682703...
    rules/caching.md341604d857b9d9abca12...

    Частые вопросы

    Как установить Laravel Best Practices?
    Используйте команду npx skills add laravel/boost --skill laravel-best-practices или скачайте ZIP-архив.
    Можно ли скачать Laravel Best Practices бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    2ГИС: Карточка организации 2ГИСПолучить подробные данные объекта по идентификатору.2ГИС: Пешеходный маршрут 2ГИСПостроить пешеходный маршрут между точками.2ГИС: Статическая карта 2ГИССформировать PNG-карту с точками, линиями или полигонами.2ГИС: Обратное геокодирование 2ГИСНайти адрес и объекты рядом с заданными координатами.
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.

    Установить скилл

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

    npx skills add laravel/boost --skill laravel-best-practices
    Скачать ZIP
    Версия
    1.0.0+30e24b7c2420
    Автор
    Владимир Ломтев
    Репозиторий
    laravel/boost
    GitHub: laravel/boost