FREE CURSOR RULES GENERATOR
Tick your stack, set strictness, download .mdc files, a SKILL.md or an AGENTS.md.
This free Cursor rules generator turns your stack picks into separate .mdc rule files, each with description, globs and alwaysApply frontmatter and under 50 lines. It runs in your browser, can export a single SKILL.md or AGENTS.md instead, and grades the result with the same checks as the Rules File Grader.
Loading tool…
Each file starts with frontmatter holding description, globs and alwaysApply, followed by short bullet rules. The core file sets alwaysApply: true; every stack file sets alwaysApply: false and uses globs so it only loads when you touch matching files.
It changes how many rules each file gets (3, 4 or 5) and, on Strict, adds extra guardrails to the core file such as asking before adding dependencies. Files stay under 50 lines at every level.
Use .mdc if you want rules scoped by file glob in Cursor. Use SKILL.md for guidance the agent loads on demand, and AGENTS.md if you want one plain file other agent tools can read. The Config Converter can move files between formats later.
No. Generation and grading run in your browser and no signup is needed.
They are a starting point built from common conventions. Edit them to match your repo, then re-grade, and add rules from real mistakes the agent makes in your codebase.
By Rakshit Yadav · Published 2026-10-25 · Last updated 2026-10-25. Next: build an on-demand command or convert between formats.
[ RUNS IN YOUR BROWSER • DROP A FILE OR TAP GENERATE • NO SIGNUP ]
Go further
Engineering, Marketing, or Both: agents, skills, and slash commands you drop into any Cursor project.
--- description: Project-wide guardrails for every task globs: alwaysApply: true --- - Make the smallest change that solves the task; do not refactor unrelated files. - Never invent APIs, env vars or package names; check the repo or docs first. - Run the project's lint and test commands before saying a task is done. - Never commit secrets; read them from environment variables.
--- description: Next.js App Router conventions globs: app/**/*.ts,app/**/*.tsx alwaysApply: false --- - Default to Server Components; add 'use client' only for state, effects or browser APIs. - Fetch data in Server Components or Route Handlers, not in useEffect. - Give every route segment that loads data a loading.tsx and an error.tsx. - Validate Route Handler and Server Action input at the boundary before using it.
--- description: TypeScript strictness globs: **/*.ts,**/*.tsx alwaysApply: false --- - Keep strict mode on; no @ts-ignore without a comment explaining why. - Avoid any; use unknown and narrow, or a zod-inferred type. - Use import type for type-only imports. - Export one main thing per file and name the file after it.
--- description: Stripe billing conventions globs: app/api/**/*.ts,src/**/billing/**/*.ts alwaysApply: false --- - Verify webhook signatures with the raw request body before acting on an event. - Make webhook handlers idempotent; store processed event ids. - Grant access from webhook events, not from the checkout success redirect. - Never put the secret key in client code; use the publishable key there.