Stop AI From Writing Sloppy Laravel Code: My Kilo Code + AGENTS.md Workflow A developer has published a workflow for constraining AI coding assistants to an existing Laravel project's architecture using an AGENTS.md rules file, a skills.md knowledge file, and the Kilo Code agent, rather than prompting the AI to "write better code." The approach requires the agent to inspect the existing project first — checking composer.json and current framework choices such as Livewire, Inertia, Tailwind or existing components — so it extends rather than redesigns the codebase, and the author notes the same pattern maps to OpenCode, Codex and Claude Code via their respective instruction files. AI coding assistants are getting very good at generating Laravel code. Give an AI a feature request and it can probably create: The problem is not whether the code works. The problem is whether the code belongs in the project . AI can easily generate Laravel code that works today but becomes a maintenance problem tomorrow: $request- all