Skip to content

Commit 1a1bff5

Browse files
committed
feat: Add command to create custom guide base
1 parent 8833a9f commit 1a1bff5

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@ You may also automate this process by adding it to your Composer "post-update-cm
117117

118118
## Adding Custom AI Guidelines
119119

120-
To augment Laravel Boost with your own custom AI guidelines, add `.blade.php` files to your application's `.ai/guidelines/*` directory. These files will automatically be included with Laravel Boost's guidelines when you run `boost:install`.
120+
To augment Laravel Boost with your own custom AI guidelines, you can:
121+
122+
1. **Manually create** `.blade.php` files in your application's `.ai/guidelines/*` directory
123+
2. **Use the command**: `php artisan boost:custom {name}` - An interactive wizard will guide you through creating a custom guideline
124+
125+
These files will automatically be included with Laravel Boost's guidelines when you run `boost:install`.
121126

122127
### Overriding Boost AI Guidelines
123128

src/Console/CustomGuideCommand.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,38 @@ public function handle(): void
7171

7272
$content .= '
7373
<!-- Add your custom guidelines here -->
74+
## Project Overview
75+
76+
## Coding Standards
77+
78+
### General
79+
80+
### Laravel Specific
81+
82+
## Architecture Patterns
83+
84+
#### Instalación y Configuración:
85+
86+
#### Organización:
87+
88+
### DTOs y Value Objects
89+
90+
### Testing
91+
92+
## Naming Conventions
93+
94+
## Database
95+
96+
## Frontend
97+
98+
## Security
99+
100+
## Performance
101+
102+
## Git Workflow
103+
104+
## Comments & Documentation
105+
74106
';
75107

76108
if (file_put_contents($filePath, $content) === false) {

0 commit comments

Comments
 (0)