From 8bcf002b43183c9f90453750a47f0ecd6cc5e31d Mon Sep 17 00:00:00 2001 From: Caleb White Date: Wed, 18 Feb 2026 03:51:46 -0600 Subject: [PATCH 1/2] fix: boost skill does not use correct module directory The directory can be customized via a config setting, therefore it should not be hardcoded. --- resources/boost/guidelines/core.blade.php | 2 +- .../skills/modular/{SKILL.md => SKILL.blade.php} | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) rename resources/boost/skills/modular/{SKILL.md => SKILL.blade.php} (92%) diff --git a/resources/boost/guidelines/core.blade.php b/resources/boost/guidelines/core.blade.php index 69a13c8..a07d118 100644 --- a/resources/boost/guidelines/core.blade.php +++ b/resources/boost/guidelines/core.blade.php @@ -1,4 +1,4 @@ ## Modular -- This a modular application. Each module is located in its own directory inside of `app-modules`. +- This a modular application. Each module is located in its own directory inside of `{{ config('app-modules.modules_directory') }}`. - IMPORTANT: Activate `modular` every time you're working with or creating a new module. diff --git a/resources/boost/skills/modular/SKILL.md b/resources/boost/skills/modular/SKILL.blade.php similarity index 92% rename from resources/boost/skills/modular/SKILL.md rename to resources/boost/skills/modular/SKILL.blade.php index 6734ac8..dd08abe 100644 --- a/resources/boost/skills/modular/SKILL.md +++ b/resources/boost/skills/modular/SKILL.blade.php @@ -1,19 +1,22 @@ +@php +$modulesDirectory = config('app-modules.modules_directory'); +@endphp --- name: modular -description: Create or modify Laravel modules using `internachi/modular`. Use when the user asks to create a module, add components to a module, scaffold module structure, or work on files in an `app-modules` directory. +description: Create or modify Laravel modules using `internachi/modular`. Use when the user asks to create a module, add components to a module, scaffold module structure, or work on files in an `{{ $modulesDirectory }}` directory. argument-hint: [component-type] --- # Laravel Modular Development -You are helping with a Laravel application that uses `internachi/modular` for modular architecture. Modules live in `app-modules/` and follow Laravel package conventions. +You are helping with a Laravel application that uses `internachi/modular` for modular architecture. Modules live in `{{ $modulesDirectory }}/` and follow Laravel package conventions. ## Module Structure -The structure of `app-modules` mimics a standard Laravel application, where what typically would be found in `app` is found in `src`: +The structure of `{{ $modulesDirectory }}` mimics a standard Laravel application, where what typically would be found in `app` is found in `src`: ``` -app-modules/ +{{ $modulesDirectory }}/ {module-name}/ composer.json # PSR-4 autoload, Laravel provider discovery src/ @@ -137,7 +140,7 @@ ### Tests - Place in `tests/Feature/` and `tests/Unit/` -- Run module tests: `php artisan test app-modules/{module-name}/tests` +- Run module tests: `php artisan test {{ $modulesDirectory }}/{module-name}/tests` - All module tests can be run using the `Modules` testsuite configuration that is auto-generated by the `modules:sync` command ### Cross-Module Dependencies From 21823fc4f203772aa445e85b1ddb207c4add756e Mon Sep 17 00:00:00 2001 From: Chris Morrell Date: Mon, 23 Feb 2026 09:54:38 -0500 Subject: [PATCH 2/2] Code style --- resources/boost/skills/modular/SKILL.blade.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/boost/skills/modular/SKILL.blade.php b/resources/boost/skills/modular/SKILL.blade.php index dd08abe..fee0b98 100644 --- a/resources/boost/skills/modular/SKILL.blade.php +++ b/resources/boost/skills/modular/SKILL.blade.php @@ -1,22 +1,22 @@ @php -$modulesDirectory = config('app-modules.modules_directory'); +$modules_directory = config('app-modules.modules_directory'); @endphp --- name: modular -description: Create or modify Laravel modules using `internachi/modular`. Use when the user asks to create a module, add components to a module, scaffold module structure, or work on files in an `{{ $modulesDirectory }}` directory. +description: Create or modify Laravel modules using `internachi/modular`. Use when the user asks to create a module, add components to a module, scaffold module structure, or work on files in an `{{ $modules_directory }}` directory. argument-hint: [component-type] --- # Laravel Modular Development -You are helping with a Laravel application that uses `internachi/modular` for modular architecture. Modules live in `{{ $modulesDirectory }}/` and follow Laravel package conventions. +You are helping with a Laravel application that uses `internachi/modular` for modular architecture. Modules live in `{{ $modules_directory }}/` and follow Laravel package conventions. ## Module Structure -The structure of `{{ $modulesDirectory }}` mimics a standard Laravel application, where what typically would be found in `app` is found in `src`: +The structure of `{{ $modules_directory }}` mimics a standard Laravel application, where what typically would be found in `app` is found in `src`: ``` -{{ $modulesDirectory }}/ +{{ $modules_directory }}/ {module-name}/ composer.json # PSR-4 autoload, Laravel provider discovery src/ @@ -140,7 +140,7 @@ ### Tests - Place in `tests/Feature/` and `tests/Unit/` -- Run module tests: `php artisan test {{ $modulesDirectory }}/{module-name}/tests` +- Run module tests: `php artisan test {{ $modules_directory }}/{module-name}/tests` - All module tests can be run using the `Modules` testsuite configuration that is auto-generated by the `modules:sync` command ### Cross-Module Dependencies