Our Laravel app is 6 years old and has a lot of house rules that live mostly in people's heads. Actions instead of fat controllers, form requests for all validation, no Eloquent calls from Blade, money always as integers.
Agents write code that works but ignores most of that. Last week one put validation straight into a controller, queried a relationship inside a Blade loop, and stored a price as a float. Every one of those would have been caught by our senior dev, who is on parental leave for 3 months.
What's helped a bit so far:
- a CONVENTIONS.md the agent reads before starting
- coderabbit with path instructions for app/Actions and app/Http, so it flags things like validation outside a form request. It's good at enforcing what we wrote down.…