feat: Improve Laravel Boost AI Skills Integration - #2157
Open
rupeshstha wants to merge 1 commit into
Open
Conversation
Adds structured AI assistant context following the laravel/boost convention:
- resources/boost/guidelines/core.blade.php: always-on context injected
into every AI session (module namespace, naming, disabled-module behavior,
inter-module coupling rule, optimize:clear reminder)
- resources/boost/skills/laravel-modules-development/SKILL.md: on-demand
skill with activation triggers, quick-reference index, and pointers to
the rules/ sub-documents
- resources/boost/skills/laravel-modules-development/rules/: detailed
reference documents loaded by the AI as needed:
- architecture.md — directory structure, service providers, naming conventions,
Module facade, inter-module communication, Blade directives, load order
- generators.md — all module:make-* commands with options
- configuration.md — config/modules.php options, auto-discovery, activators
- testing.md — Pest test patterns, factories, running module tests
Removes the previous .ai/laravel-modules/ placement which was not read by
laravel/boost for third-party packages (only resources/boost/ is scanned).
When nwidart/laravel-modules is installed and a user runs
`php artisan boost:update --discover`, this package will appear as a
newly available skill to opt into.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve Laravel Boost AI Skills Integration
This PR revisits the Laravel Boost AI skills integration introduced in #2156, bringing it into full alignment with the conventions used across the Boost ecosystem (e.g.
laravel/octane,laravel/pennant).What Changed
The skills and guidelines have been relocated from
.ai/laravel-modules/toresources/boost/— the canonical discovery path thatlaravel/boostscans when a package is opted into viaboost:update --discover.The skill file has been migrated from
.blade.phpto.md(pure Markdown), consistent with how other third-party packages deliver their skill content. Frontmatter has also been aligned to ensure the name and description are correctly parsed by the Boost skill loader.What to expect
Once
nwidart/laravel-modulesis opted into Boost (boost:update --discoveror added toboost.json), runningphp artisan boost:installwill:CLAUDE.md,AGENTS.md,.cursor/rules/, etc.) so any AI assistant automatically loads the skill when working with modulesThe skill covers:
module:make-*generators and flagsmodule.jsonstructureauto-discover.migrations,auto-discover.translations)--inertia,module:make-inertia-page, etc.)Testing
Verified end-to-end: after
composer update+php artisan boost:install, the skill appears inboost:list-skillsoutput and activation entries are written across all supported agent guideline files.