agentleFS
AarononthewebAaronontheweb/dotnet-cursor-rules/.cursor/rules/meta.mdc

dotnet-cursor-rules / rules

Cursor rule134 starsChanged 22 months agoApache-2.0View on GitHub

A meta-rule for using Cursor to update *.mdc file in this repository.

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

We split this meta.mdc into the rules it gives an agent

12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't modify existing line endings

    line 12
  2. Distinctive:

    Keep line length consistent with existing code

    line 18
  3. Very specific:

    Always commit changes to *.mdc files directly

    line 23
  4. Very specific:

    Ensure changes to *.mdc files are synchronized with their implementation

    line 24
  5. Distinctive:

    Prefer modifying existing files over creating new ones unless explicitly requested

    line 26
  6. Distinctive:

    When adding new content, first check if it fits within an existing rule file

    line 27
  7. Distinctive:

    Only create new rule files when:

    line 32
  8. Distinctive:

    Document the rationale for creating new files in their README.md

    line 36
  9. Distinctive:

    Keep indentation consistent with file style

    line 43
  10. Distinctive:

    Keep file structure consistent

    line 46
  11. Distinctive:

    Don't move files without updating all references

    line 47
  12. Distinctive:

    Always include "do" and "don't" examples when showing specific changes to files or syntax

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
meta.mdc
---
description: A meta-rule for using Cursor to update *.mdc file in this repository.
globs: *.mdc
---
# Cursor Rules

This document outlines the meta-rules for cursor operations in this repository.

## Line Ending & Formatting Rules

1. **Line Endings**
   - Don't modify existing line endings
   - Preserve CRLF/LF as found in the original file

2. **Whitespace**
   - Preserve trailing whitespace where it exists
   - Maintain existing indentation style (spaces vs tabs)
   - Keep line length consistent with existing code

## File Handling

1. **MDC Files**
   - Always commit changes to `*.mdc` files directly
   - Ensure changes to `*.mdc` files are synchronized with their implementation
   - Maintain consistent formatting within MDC files
   - Prefer modifying existing files over creating new ones unless explicitly requested
   - When adding new content, first check if it fits within an existing rule file


2. **File Creation**

   - Only create new rule files when:
     - Explicitly requested by the user
     - The content doesn't logically fit in any existing rule file
     - Creating a new file would significantly improve organization and clarity
   - Document the rationale for creating new files in their README.md

## Code Style & Structure

1. **Formatting**
   - Preserve existing code formatting patterns
   - Maintain consistent naming conventions
   - Keep indentation consistent with file style

2. **Organization**
   - Keep file structure consistent
   - Don't move files without updating all references
   - Maintain existing import/include order

## Rule Content

1. **Examples**
    - Always include "do" and "don't" examples when showing specific changes to files or syntax
    - Include helpful comments that explain why an example is a "do" or a "don't"

## Documentation

1. **README.md**
    - Each `*.mdc` file is lumped into a folder with a `README.md` file explaining what the rule does and when it's used. 

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.