Laravel New Project AI Spec Workflow
-
Initial Project Analysis. Read the job description and think about tech-stack choice and specifically Starter Kit for the project installation.
-
Laravel Installation. Run
laravel newwith the starter kit chosen in point 1 above. Install Laravel Boost with default Guidelines, for now. If Filament (or other fundamental architecture package likespatie/laravel-medialibrary) is needed, install it here. -
AI Guidelines. Add custom guidelines to the
.ai/guidelinesfolder and runphp artisan boost:installso it would recognize both Filament and custom guidelines. -
Install and configure Context7, so it would catch the documentation for other Laravel packages and libraries, not available in Laravel Boost, like
spatie/laravel-medialibrary. -
Project Description. Save the original project description as a file
docs/project-description.md. If tech-stack is not specified, choose the tech stack and add it to the document. Choice of Laravel version, Filament if applicable, Starter Kit, etc. Specify if it's a demo project for education purposes, so AI would suggest smaller scope of features. -
User Stories. Run this user stories prompt in Claude Code or other AI agent of choice. As a result, you should get a new file
docs/user-stories.md. Review it with AI and/or manually before proceeding. -
Database Structure. Run this database structure prompt in AI agent. As a result, you should get a new file
docs/database-structure.md. Review it with AI and/or manually before proceeding. -
Project Phases. Run this project phases prompt in AI agent. As a result, you should get a new file
docs/project-phases.md. Review it with AI and/or manually.
At this point, you should have all the files in @docs folders, needed to start with the project, prompting AI agent to start with Phase 1 from @docs/project-phases.md file.