All posts

Every new Laravel Rust app ships instructions for your AI agent

Published December 2, 2026 · by Majd Ghithan, written with the help of AI

Every new Laravel Rust app ships instructions for your AI agent

When I create a new Laravel project, one of the first things I do is add instructions for the coding agent: how this codebase is structured, which conventions to follow, which mistakes to avoid. I have written before about turning that habit into my own open agent skills.

Laravel Rust, released in beta on December 1, does this for you. Every new app comes with the agent instructions already in place. That is a small detail in a big launch, but I think it says a lot about how Laravel expects people to build with it.

What is actually in a new app

According to the Development page of the Laravel Rust docs: "At the root of every new application, you'll find two instruction files and a .agents/skills/ directory: AGENTS.md ... CLAUDE.md imports @AGENTS.md, so tools that look for either file read the same instructions. .agents/skills/ holds seven Agent Skills".

CLAUDE.md is literally one line, an import:

@AGENTS.md

That is a neat trick worth copying. Different agents look for different file names, and keeping two copies of the same instructions in sync is exactly the kind of chore that drifts. One source of truth, one pointer.

The seven skill folders are:

  • writing-laravel-rust-apps
  • database-and-models
  • validation-and-input
  • auth-and-authorization
  • queues-and-workflows
  • testing-laravel-rust-apps
  • inertia-frontend

If you read my article on skills, you know the rule I care about most: a skill should be focused on one job, so it loads only when it is relevant. These names follow that. They are split by the areas where an agent actually makes mistakes in a web framework: models, validation, auth, queues, tests, frontend.

Docs that match your exact version

The detail I like most is this one. The docs say "the laravel-rust crate bundles the complete Markdown guides for the exact version your application depends on." The main skill includes a helper script to find them:

.agents/skills/writing-laravel-rust-apps/scripts/docs-path.sh

Anyone who has used an AI agent on a fast-moving framework knows the failure: the model confidently writes an API from an older version, because that is what it saw in training. For a framework in beta, where "Releases before 1.0 may include breaking changes to APIs and configuration," that problem is guaranteed. Pointing the agent at the docs for the exact version installed is the right fix, and it is the fix I have been applying by hand in my own skills.

The docs also name cloud agents directly: "Amp, Cursor, and Devin". The landing page repeats the point: "Every new app includes AGENTS.md, CLAUDE.md, and focused skills under .agents/skills/".

Why it ships this way

This is not an accident. The Laravel Rust FAQ answers "Do I need to know Rust to use Laravel Rust?" with: "While knowing Rust helps, Laravel Rust is built for a future where coding agents write most of the code and the compiler verifies it."

And the framework itself was built that way. In his letter to the community, Taylor Otwell writes: "So over the last two months, I built Laravel Rust." and "I made heavy use of cloud agents". In the same letter he is clear that it is not a "slop fork": "Every API surface, every convention, every page of documentation ... was hand-curated and hand-tuned by me."

I think both halves of that matter. Agents were used heavily. A person who has shaped Laravel for years decided what the APIs should look like. That is the honest version of AI-assisted development, and it is the version I try to practice.

What this means for how we work

Three takeaways for a Laravel team, whether you touch Rust or not.

Agent instructions are part of the project now. A framework shipping AGENTS.md in its skeleton puts it next to .env.example and the test setup. If your repo still has no instructions for agents, your team is re-explaining the same context in every session.

The compiler is part of the agent loop. The bet in that FAQ answer is that agents write code and the compiler verifies it. Laravel Rust leans on compile-time checks, such as column names and missing authorization on input structs. Not everything is compile-time, though: accessing a relationship you did not eager load panics at runtime. An agent still needs tests and review.

Skills are where your team's knowledge lives. The seven bundled skills cover the framework. Your project rules, the ones only your team knows, still need their own skill or instructions. That part no framework can ship for you.

My take

I already work this way: instruction files in the repo, focused skills, and docs checked before the agent writes anything. Seeing Laravel ship the same pattern by default is good news, because it turns a personal habit into a convention new developers get on day one. I would still read every line an agent writes in a beta framework. The skills reduce the guessing. They do not replace the reviewer.

🤖 Heads up: this post was drafted with AI. Spot something wrong or off?Email me the correction →
Majd Ghithan

Majd Ghithan

Full-Stack Engineer & Tech Lead

More posts

Laravel in PracticeDec 2, 20266 min read

Laravel Go is here. What it is, how it differs from Laravel Rust, and where Goravel stands

On December 1, Laravel released the first beta of Laravel Rust. One day later, on December 2, Taylor Otwell published the first beta of Laravel Go. Two new official Laravel fram…

Laravel in PracticeDec 2, 20265 min read

The same Laravel ideas in three languages: PHP, Rust, and Go

The fastest way to understand a framework is to look at code you already know written in it. So instead of another feature list, this article puts the same Laravel concepts next…

Beyond the CodeDec 2, 20266 min read

Laravel PHP, Laravel Rust, or Goravel? Picking by fit, not by hype

As of December 2026 there are three ways to write an app with Laravel's ideas: the original in PHP, the new Laravel Rust beta, and Goravel in Go. They share a philosophy. They d…

Laravel in PracticeDec 2, 20265 min read

What is Goravel? Laravel's ideas, written in Go

Laravel Rust went into beta on December 1, 2026. It is the first time the Laravel team itself has taken the framework's conventions into a compiled language. It is not the first…

Beyond the CodeDec 2, 20264 min read

Laravel Rust is out. Should your team switch?

A week after the Laravel Rust beta landed on December 1, the question I keep getting is the same one: "Should we move our app to Rust?" For almost every team asking, my answer i…

Built at ScaleDec 2, 20264 min read

Laravel Rust's durable workflows: a three-day onboarding flow on the queue you already run

Every Laravel team I know has built the same fragile thing at least once: "send a welcome email now, check in three days, send tips if the user hasn't done anything." In PHP we…