A repository containing Cursor rules for AI-assisted coding in compatible editors like Cursor.
This repository contains a collection of rules that guide AI interactions when using Cursor or compatible editors. These rules enforce code standards, commenting styles, and communication preferences.
- Standardized code commenting rules
- Language-specific coding standards
- Test writing guidelines
- Communication style preferences
- Post-code generation compliance checks
Use the provided setup script to link these rules to your project:
# Clone this repository to your local machine
git clone https://github.com/qor5/cursorrules.git /path/to/cursorrules
# Navigate to any project directory where you want to use these rules
cd /path/to/your/project
# Run the setup script from this repository
/path/to/cursorrules/setup.sh
The setup script will:
- Create a
.cursor
directory in your project if it doesn't exist - Create a symbolic link to these rules from your project
- Update your
.gitignore
to ignore the.cursor
directory
If you prefer to set up manually:
- Create a
.cursor
directory in your project - Create a symbolic link from this repository's rules:
ln -s /path/to/cursorrules/.cursor/rules /path/to/your/project/.cursor/rules
- Add
.cursor
to your.gitignore
To contribute to this rule set:
- Fork this repository
- Create a new rule file in the
.cursor/rules
directory - Follow the naming convention:
[number]-[name].mdc
- Submit a pull request with your changes