Free tool

Rules file converter

Write a rule once and use it in every coding agent your team runs. Paste a rule in any agent's format and get the file path and frontmatter for 11 targets, keeping when the rule applies. Formats checked against each vendor's docs on 2026-10-19. Nothing leaves your browser.

Scope: Only for matching files (app/**/*.php, routes/**/*.php, database/**/*.php, resources/views/**/*.blade.php, config/**/*.php, tests/**/*.php)

Detected from: globs

Convert to

Save as: .cursor/rules/laravel.mdc

---
globs: app/**/*.php, routes/**/*.php, database/**/*.php, resources/views/**/*.blade.php, config/**/*.php, tests/**/*.php
alwaysApply: false
---

- Generate files with php artisan make:* so they land in the right place with the right namespace.
- Validate with Form Request classes or $request->validate(); only use validated() data for writes.
- Protect against mass assignment with $fillable on every model; never pass $request->all() to create() or update().
- Eager load relations with with() to avoid N+1 queries.
- Authorize with policies and Gate, not ad hoc role checks in controllers.
- Read settings with config(), never env(), outside the config folder.
- Register middleware, exceptions and routing in bootstrap/app.php; there is no HTTP Kernel in current Laravel.
- Change the schema only with new migrations; never edit a migration that has already run.
- Push slow work (email, external APIs) to queued jobs.
- Write Pest or PHPUnit feature tests and run php artisan test before finishing.

Format source: Cursor docs.

How scope maps between agents

When it appliesCursor .mdcClaude CodeGitHub CopilotKiroAntigravity / Devin
Always onalwaysApply: trueno pathsapplyTo: "**"inclusion: alwaystrigger: always_on
Matching filesglobspathsapplyToinclusion: fileMatchtrigger: glob
Agent decidesdescription(use a Skill)description (VS Code)inclusion: autotrigger: model_decision
Manualno description, no globs(use a Skill)neither (VS Code)inclusion: manualtrigger: manual

AGENTS.md, GEMINI.md and Codex have no frontmatter: put the file in the folder it applies to. Zed reads only the first instruction file it finds, so a .cursorrules file wins over AGENTS.md there.

Related

Rules formats keep changing

Get one email a week when a coding agent changes where it reads rules or how it scopes them.