Skip to content
On this page

Cursor Rules

Overview

Cursor Rules provide AI-powered coding assistance with predefined context and conventions specific to our projects. This helps maintain consistency and follows our established patterns.

Using Libaro Cursor Rules

Our team maintains a centralized repository of cursor rules at: https://bitbucket.org/libaro/cursor-rules

Setup Instructions

  1. Clone the cursor-rules repository:

    bash
    git clone https://bitbucket.org/libaro/cursor-rules.git
  2. Copy the appropriate .cursorrules file:

    • Browse the available rules in the repository
    • Copy the relevant .cursorrules file to your project root
    • Rename it to .cursorrules (note the dot prefix)
  3. Activate in Cursor:

    • Cursor will automatically detect the .cursorrules file
    • The AI will use these rules for context and code generation
    • Rules apply to the entire project directory

Best Practices

  • Choose the right rules: Select the cursor rules file that matches your project type
  • Keep rules updated: Regularly sync with the latest rules from the repository
  • Project-specific customization: You can modify rules for specific project needs
  • Team consistency: Ensure all team members use the same base rules

Available Rule Sets

Check the cursor-rules repository for the complete list of available rule sets and their descriptions.

Troubleshooting

  • Ensure .cursorrules is in your project root directory
  • Restart Cursor if rules don't seem to be applied
  • Verify file permissions allow Cursor to read the rules file