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 (**/*.swift)
Detected from: globs
Convert to
Save as: .cursor/rules/swiftui.mdc
--- globs: **/*.swift alwaysApply: false --- - Use the @Observable macro for model classes instead of ObservableObject and @Published. - Own observable models with @State, pass them down as plain properties, and use @Bindable when a child needs bindings. - Use NavigationStack (or NavigationSplitView) with value-based navigationDestination, never NavigationView. - Use .foregroundStyle instead of .foregroundColor. - Start async work with the .task modifier, not Task inside onAppear; it cancels when the view disappears. - Use async/await instead of completion handlers, and keep UI state updates on the main actor. - Keep views small and extract subviews; avoid AnyView. - Use SF Symbols, Dynamic Type text styles and accessibility labels on icon-only buttons. - Write new tests with Swift Testing (@Test, #expect) unless the project uses XCTest.
Format source: Cursor docs.
How scope maps between agents
| When it applies | Cursor .mdc | Claude Code | GitHub Copilot | Kiro | Antigravity / Devin |
|---|---|---|---|---|---|
| Always on | alwaysApply: true | no paths | applyTo: "**" | inclusion: always | trigger: always_on |
| Matching files | globs | paths | applyTo | inclusion: fileMatch | trigger: glob |
| Agent decides | description | (use a Skill) | description (VS Code) | inclusion: auto | trigger: model_decision |
| Manual | no description, no globs | (use a Skill) | neither (VS Code) | inclusion: manual | trigger: 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.