Cursor Rules Generator

Processed locally

Generate .cursor/rules .mdc files, AGENTS.md, CLAUDE.md, and legacy .cursorrules for your stack. Free, no signup.

1. Configure your project

2. Generated files

Your generated files appear here

How to Use

  1. 1Choose a stack preset and any extras that match your repo.
  2. 2Select formats. Start with .mdc + AGENTS.md for most Cursor projects.
  3. 3Generate, review the preview, then download the ZIP into your repository.
  4. 4Commit the rules so your whole team gets consistent Agent behavior.

Where files go

Cursor project rules

.cursor/rules/my-app-core.mdc

alwaysApply / globs / description frontmatter (recommended).

Simple agents file

AGENTS.md (project root)

Works in Cursor and other agent tooling without frontmatter.

Claude Code

CLAUDE.md (project root)

Guidance file for Claude Code sessions.

Rules that actually help agents

  • •Keep rules short and actionable. Cursor recommends under ~500 lines.
  • •Prefer glob-scoped .mdc files over one giant always-on document.
  • •Encode repo-specific gotchas, not generic style guides a linter already covers.
  • •Update rules when the agent repeats the same mistake.
  • •Pair MCP extras with Instant Tools’ OpenAPI → MCP and MCP Tool Checker.

How the generator works

The generator is a TypeScript template builder, not a model. generateCursorRules in apps/web/src/lib/cursor-rules/generate.ts takes the project name, stack, extras, notes, and formats. It returns an array of files with a path and a string. No project code is read, and no request leaves the browser.

Each stack preset supplies a core rule body. Each extra adds a section or a separate file. An .mdc file starts with YAML frontmatter for description, globs, and alwaysApply. The other formats write a single AGENTS.md, CLAUDE.md, or legacy .cursorrules file. The ZIP download uses JSZip and runs in the page.

The preview shows the exact text you download. The tool does not add a code analysis step, so the output is only as specific as the preset and your custom notes.

Two real generations

We ran two project descriptions through the generator on 2026-11-16. The byte counts are the UTF-8 sizes of the generated files.

Tested on 2026-11-16.

ProjectStack and extrasFilesTotal bytes
instant-toolsMonorepo; TS strict, Tailwind, testing, SEO, security; mdc, AGENTS.md, CLAUDE.md88,998 B
recipe-box-apiNode API; TS strict, testing, security; mdc, AGENTS.md54,586 B

The monorepo run wrote five .mdc files: core, TypeScript, Tailwind, testing, and SEO. It also wrote AGENTS.md, CLAUDE.md, and README-RULES.md. The Node API run wrote three .mdc files,AGENTS.md, and README-RULES.md. The first lines of the monorepo core file were:

---
description: "Core conventions for instant-tools"
alwaysApply: true
---

# instant-tools: TypeScript monorepo

The generator kept the project name in the heading and the description. It did not discover the monorepo layout. That came from the stack preset and the custom note we typed.

Limits of a template generator

  • It does not read your repository. Generic presets cannot know your folder names, scripts, or test runner.
  • The output is a starter. Review it before you commit, and delete rules that do not match your project.
  • .mdc frontmatter is plain text. Cursor may ignore a glob that does not match a real path.
  • The legacy .cursorrules format lacks the scoping of modern .mdc rules. Use it only for older setups.
  • Generated rules can go stale. Update them when the stack or test command changes.

When to use something else

Frequently Asked Questions

What are Cursor rules?

Cursor project rules are instructions for Agent (Chat). Modern projects use .cursor/rules/*.mdc files with frontmatter (alwaysApply, globs, description). AGENTS.md is a simpler root markdown alternative.

Which format should I use?

Prefer .mdc project rules for Cursor (scoped, composable). Add AGENTS.md for broad agent compatibility. Use CLAUDE.md for Claude Code. Keep .cursorrules only for legacy setups.

Is this the same as Cursor’s /create-rule?

Cursor can generate rules from chat against your repo. This tool is a free, browser-local starter: pick a stack, extras, and download multi-format files without opening an IDE or uploading code.

Does my project data leave the browser?

No. Generation runs in your browser. Instant Tools does not upload your project name, notes, or selected options for this tool.

Can I include MCP / agent guidance?

Yes. Enable the MCP / agents extra for tool-naming, description quality, and secret-handling guidance that pairs with Instant Tools’ OpenAPI → MCP and MCP Tool Checker.

Is the Cursor Rules Generator free?

Yes. No signup, no watermarks beyond a small attribution line you can remove.