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 (**/*.dart)

Detected from: globs

Convert to

Save as: .cursor/rules/flutter.mdc

---
globs: **/*.dart
alwaysApply: false
---

- Split UI into small widget classes, not helper methods that return widgets. Use const constructors wherever possible.
- Use the project's existing state management; do not introduce a new one.
- Dispose controllers, focus nodes, animation controllers and stream subscriptions in dispose().
- After an await, check context.mounted (or mounted in a State) before using BuildContext.
- Use ListView.builder or other builder constructors for long or dynamic lists.
- Take colors and text styles from Theme.of(context) instead of hard-coding them.
- Use Color.withValues(alpha: ...) instead of the deprecated withOpacity.
- Add packages with flutter pub add, not by hand-editing version numbers.
- Run dart format, flutter analyze and flutter 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.