Skip to content

tc45/cursor_prompts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Cursor AI - Rules and Prompts Library

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.

What are Rules and Prompts?

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.

How to Use This Repository

  1. Clone the Repository:

    git clone <repo-url>
  2. 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.
  3. Configure Your Cursor Environment:

    • Global Rules:

      • Navigate to File -> Preferences -> Cursor Settings.
      • Under the Features section, find the Rules text 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.
    • 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.
    • 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.

Contribution

Contributions are welcome! If you have a great rule or prompt that has improved your workflow, feel free to open a pull request.

About

A repository to store prompts and rules for the Cursor AI editor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published