Support loading guidelines and skills from vendor packages#566
Merged
pushpak1300 merged 19 commits intomainfrom Feb 20, 2026
Merged
Support loading guidelines and skills from vendor packages#566pushpak1300 merged 19 commits intomainfrom
pushpak1300 merged 19 commits intomainfrom
Conversation
This was referenced Feb 13, 2026
…oost into replace_guidelines_from_vendor
…om_vendor # Conflicts: # tests/Feature/Install/SkillComposerTest.php
joetannenbaum
requested changes
Feb 19, 2026
Contributor
joetannenbaum
left a comment
There was a problem hiding this comment.
I want to make sure we're covering NPM packages like laravel-echo as well, is that covered here? I just see the scoped packages.
…oost into replace_guidelines_from_vendor
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.
Depends on laravel/roster#42
The Problem
Right now, Boost maintains guidelines for all first-party Laravel packages (Livewire, Pennant, Pint, Sail, etc.) inside its own
.ai/directory. This means:How the Current Solution Handles It
The PR introduces a three-tier resolution system for guidelines that works for both Composer (
vendor/) and npm (node_modules/) packages:flowchart TD A["Package detected by Roster"] --> B{"Is it a first-party package?"} B -->|Composer| C{"Does vendor/ path exist?"} B -->|npm scoped| N{"Does node_modules/ path exist?"} B -->|No| F["Use third-party discovery"] C -->|Yes| D{"Does user have override?"} C -->|No| E["Fall back to Boost .ai/ copy"] N -->|Yes| D N -->|No| E D -->|Yes| G["Use USER override - highest priority"] D -->|No| H["Use package guideline"] E --> I{"Does user have override?"} I -->|Yes| G I -->|No| J["Use Boost .ai/ copy - fallback"]Priority Order (highest to lowest):
.ai/guidelines/in user projectvendor/{pkg}/resources/boost/guidelines/node_modules/{pkg}/resources/boost/guidelines/.ai/directorynpm Support
npm packages from first-party scopes (
@inertiajs/*,@laravel/*) are now treated identically to Composer first-party packages. This means packages like@inertiajs/reactor@laravel/vite-plugin-wayfindercan ship their own guidelines and skills atnode_modules/{pkg}/resources/boost/guidelines/.Inertia Guideline Restructuring
The non-versioned Inertia
core.blade.phphas been removed. Its content is now inlined into the versioned files (1/core.blade.phpand2/core.blade.php). The guidelines now reference the specific Roster enum variants (INERTIA_REACT,INERTIA_VUE,INERTIA_SVELTE) instead of the removed compoundINERTIAcase.