Use in Cursor, Windsurf, Codeium, or any AI-assisted editor.
Rule
# Read before editing
Read the file or relevant section before making changes. Do not assume structure, names, or content.
- **Before editing:** Open and read the file (or the specific function, component, or block) you are about to change. Note existing imports, types, and patterns.
- **Avoid:** Guessing variable names, assuming a file has a certain structure, or editing based on outdated or inferred context.
- **When refactoring:** Understand call sites and usages before renaming or moving code.