CLAUDE.md / Rules File Generator

PreviewCLAUDE.md
# Project Rules

What This Tool Does

CLAUDE.md / Rules File Generator is built for deterministic developer and agent workflows.

Generate CLAUDE.md, .cursorrules, and copilot-instructions.md files for your project with templates.

Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.

Last updated:

This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.

Agent Invocation

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.

/rules-file-generator/

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

How to Use CLAUDE.md / Rules File Generator

  1. 1

    Answer project and coding style questions

    Fill out a form describing your project (type, tech stack, team size), coding standards (indentation, naming), and AI-specific preferences (conciseness, style).

  2. 2

    Select rule file type

    Choose which rule files to generate: CLAUDE.md (for Claude), .cursorrules (for Cursor IDE), or copilot-instructions.md (for GitHub Copilot).

  3. 3

    Customize rules before download

    Review the generated rules. Add domain-specific guidelines (e.g., 'always validate user input', 'use design pattern X'). Remove irrelevant rules.

  4. 4

    Download or copy files

    Download individual files or all at once. For repos, add these files to your root directory (.cursorrules goes in project root, CLAUDE.md at repo root).

  5. 5

    Share with your team

    Commit rule files to your repo so all team members (and their AI tools) follow the same standards. Update as coding standards evolve.

Frequently Asked Questions

What is CLAUDE.md?
CLAUDE.md is a markdown file in your project root that gives Claude Code project-specific instructions — coding conventions, architecture rules, file structure notes, and constraints to follow when generating code.
What is .cursorrules?
A configuration file that tells Cursor AI about your project's tech stack, coding style, and rules to follow. It's placed in your project root and Cursor reads it automatically.
Do I need a rules file for every AI assistant?
Each assistant reads its own file format (CLAUDE.md, .cursorrules, .github/copilot-instructions.md, .windsurfrules, .clinerules). This tool generates all formats from the same inputs.
Can I import my existing rules file?
Yes, paste or upload your existing CLAUDE.md, .cursorrules, or other rules file to populate the form, then edit and regenerate in any format.
What should I put in my rules file?
Start with tech stack, coding style preferences, and key constraints. The form guides you through the most impactful sections: project context, naming conventions, architecture patterns, and things to avoid.