Core
/laravel-agent:build
Intelligent build - architect analyzes and decides implementation approach
Overview
The /build command invokes the laravel-architect agent to analyze your request and determine the best implementation approach. It's the recommended entry point for creating new functionality.
Usage
/laravel-agent:build [description of what you want to build]
Examples
/laravel-agent:build invoice management system with PDF export
/laravel-agent:build user notification preferences
/laravel-agent:build payment gateway integration
/laravel-agent:build product catalog with categories and variants
Process
When you invoke this command, the architect will:
- Check for Laravel Boost MCP tools - Leverage existing tooling if available
- Scan codebase structure - Understand existing patterns and conventions
- Check pattern registry - Review
.ai/patterns/registry.json(max 5 patterns) - Decide implementation type - Feature, Module, Service, or Action
- Consider tenancy requirements - Check if multi-tenant isolation is needed
- Ensure SOLID/DRY compliance - Validate architectural decisions
- Delegate to appropriate builder - Hand off to specialized agent
- Verify with tests - Ensure implementation is properly tested
Decision Matrix
| Command Example | Decision | Result Location |
|---|---|---|
/build invoice system |
Feature | app/Features/Invoices/ |
/build pricing calculator |
Module | app/Modules/Pricing/ |
/build send welcome email |
Action | app/Actions/Users/SendWelcomeEmailAction.php |
/build payment service |
Service | app/Services/PaymentService.php |
Related Agent
This command uses the laravel-architect agent, which then delegates to specialized builders based on the analysis.
See Also
- /laravel-agent:feature:make - Direct feature creation (bypasses architect)
- /laravel-agent:module:make - Create reusable domain module
- /laravel-agent:service:make - Create service or action