What it does
A Cursor rules file with general clean code habits. It asks for named constants instead of magic numbers, meaningful names, comments that explain why, small single-purpose functions, no repeated code, clear structure, encapsulation and readable tests.
Use cases
- 01Replace hard-coded values with named constants
- 02Split a long function into focused, well-named ones
- 03Keep comments for the reasons behind a decision