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 (**/*.py, **/templates/**/*.html)

Detected from: globs

Convert to

Save as: .cursor/rules/django.mdc

---
globs: **/*.py, **/templates/**/*.html
alwaysApply: false
---

- Change models, then run makemigrations and commit the generated migration. Never edit a migration that has already been applied.
- Avoid N+1 queries: use select_related for foreign keys and prefetch_related for many-to-many and reverse relations.
- Validate input with forms, ModelForms or serializers, never by reading request.POST directly.
- Use get_object_or_404 in views and reverse() or {% url %} for links; never hard-code URLs.
- Reference the user model with settings.AUTH_USER_MODEL or get_user_model(), not django.contrib.auth.models.User.
- Use timezone.now(), not datetime.now(), and wrap multi-step writes in transaction.atomic().
- Read secrets and DEBUG from environment variables; never commit SECRET_KEY or set DEBUG = True for production.
- Keep CSRF protection on; do not add csrf_exempt to make a form work.
- Write tests with django.test.TestCase and run manage.py test (or pytest) 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.