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:

  1. Check for Laravel Boost MCP tools - Leverage existing tooling if available
  2. Scan codebase structure - Understand existing patterns and conventions
  3. Check pattern registry - Review .ai/patterns/registry.json (max 5 patterns)
  4. Decide implementation type - Feature, Module, Service, or Action
  5. Consider tenancy requirements - Check if multi-tenant isolation is needed
  6. Ensure SOLID/DRY compliance - Validate architectural decisions
  7. Delegate to appropriate builder - Hand off to specialized agent
  8. 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