This repository is a curated collection of rules and prompts designed to enhance your workflow with the Cursor AI editor. The goal is to document and share effective configurations that lead to better, more consistent, and more efficient AI-assisted development.
In Cursor, Rules and Prompts are powerful tools to customize the AI's behavior.
- Rules: These are persistent instructions that guide the AI's behavior across all interactions within a specific scope (globally or per-project). They help enforce coding standards, define architectural patterns, and provide context about your tech stack.
- Prompts: These are situational, on-demand instructions you provide to the AI for a specific task, such as generating a new feature, fixing a bug, or refactoring code.
By combining well-crafted rules and prompts, you can create a highly personalized and effective AI development environment.
-
Clone the Repository:
git clone <repo-url>
-
Explore the Directories: This repository is organized into three main sections:
global_rules/: Contains rules intended to be applied globally across all your projects.project_rules/: Contains example rules that can be used as a starting point for specific projects.prompts/: A collection of reusable prompts for common development tasks.
-
Configure Your Cursor Environment:
-
Global Rules:
- Navigate to
File -> Preferences -> Cursor Settings. - Under the
Featuressection, find theRulestext area. - Copy the content from any of the files in the
global_rules/directory and paste it here. You can combine or modify them to fit your needs.
- Navigate to
-
Project Rules:
- For rules specific to one of your projects, create a
.cursor/rules/directory in your project's root. - Copy any relevant rule files from the
project_rules/directory in this repo into your project's.cursor/rules/directory. - Cursor will automatically pick up and apply these rules for that project.
- For rules specific to one of your projects, create a
-
Prompts:
- The prompts in the
prompts/directory are for reference. Copy and paste them into the Cursor chat or composer when you need them, modifying the placeholders as necessary.
- The prompts in the
-
Contributions are welcome! If you have a great rule or prompt that has improved your workflow, feel free to open a pull request.