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 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.