.cursorrules Code Guidelines

Code Analysis Tool

Analyzes code for compliance with .cursorrules AI guidelines, highlighting issues like missing error handling and inconsistent coding style.

Automated Refactoring Service

Automatically refactors code to adhere to guidelines such as avoiding magic numbers and ensuring modular design.

Project Consistency Checker

Checks for consistent coding style, performance, and security across multiple files, avoiding unnecessary updates.

Developer Assistant Extension

Provides real-time feedback on code edits, emphasizing explicit variable names and avoiding unnecessary confirmations.

Code Optimization Platform

Suggests performance improvements and modular design strategies while prioritizing security and version compatibility.

Unit Test Suggestions App

Automatically generates unit tests for new or modified code, focusing on coverage without revealing current implementation.

Version Compatibility Analyzer

Checks code changes for compatibility with specified language or framework versions to ensure smooth integration.

Edge Case Identifier

Scans code to identify potential edge cases and suggests handling strategies for robust error handling.

Context-Aware Code Reviewer

Provides feedback on edits using context-generated files, ensuring no unnecessary confirmations and preserving files.

Modular Design Educator

Educates developers on implementing modular design principles for reusability and maintainability.

Assertion Validator

Checks the presence and correct use of assertions in code within CI/CD pipelines for enhanced validation.

Hardcoded Values Detector

Scans codebases for magic numbers and suggests replacements with named constants for clarity and maintainability.

Error Handling Enhancer

Suggests improvements in error handling mechanisms with recommendations for robust logging practices.

Overview of .cursorrules prompt

The .cursorrules file outlines a set of rules and guidelines to be followed when editing or suggesting changes to code. It emphasizes verifying information, making changes file-by-file, preserving existing code, and avoiding unnecessary confirmations or updates. It advises against using apologies, unnecessary whitespace changes, or summarizing changes made. There is a focus on ensuring real file links are provided, using explicit variable names, and following a consistent coding style. Performance, security, error handling, modular design, version compatibility, edge cases, and test coverage are prioritized. The file discourages the use of “magic numbers” and encourages using assertions to catch errors early.

Updated: March 14, 2025