Skip to content

Cursor Rules Generator

Generate .cursorrules, .windsurfrules, .clinerules, CLAUDE.md or Copilot instructions from your stack, conventions, testing approach and rules.

Cursor Rules Generator

Preview.cursorrules
Tech Stack: Next.js, React, TypeScript
Project Type: Web App
Naming: camelCase for variables, PascalCase for components
Imports: Absolute paths with aliases (@/)
Patterns:
- Functional components only
- Clean architecture
Testing: Jest + React Testing Library

Preview updated, 8 lines

Updated . Provided as is. Check the output before you rely on it in production.

How to use Cursor Rules Generator

  1. 1

    Pick Cursor or Windsurf

    Select Cursor for a .cursorrules file or Windsurf for .windsurfrules. The same form also produces CLAUDE.md, Copilot and Cline formats.

  2. 2

    Describe your stack

    Start from a quick template or fill in tech stack, project type, naming convention, import style and testing approach.

  3. 3

    Add never-do and custom rules

    List the mistakes the assistant must avoid and any project-specific conventions.

  4. 4

    Copy or download

    Copy the generated file or download it, then save it at your project root.

Questions and answers

What is a .cursorrules file?
A .cursorrules file at your project root gives Cursor's AI standing instructions about your stack, conventions and constraints. This generator writes one from your tech stack, naming and import style, patterns, testing approach and never-do rules, or the same rules for Windsurf, Cline, Claude Code or Copilot.
Where does .windsurfrules go?
Also at the project root. Windsurf reads it automatically, the same way Cursor reads .cursorrules.
Can I generate CLAUDE.md or Copilot instructions here?
Yes. Switch the assistant to Claude Code or GitHub Copilot and the same inputs produce that assistant's format.
For AI agents: how to call this tool

Machine-readable contract, endpoints and examples. Humans can ignore this section.

Best Path For Builders

Browser workflow

Runs instantly in the browser with private local processing and copy/export-ready output.

Browser Workflow

This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.

/cursor-rules-generator/

For automation planning, fetch the canonical contract at /api/tool/cursor-rules-generator.json.