Skip to main content
Ganesh Joshi
Back to AI Rules

Read before editing

Updated 2026-02-14

Read the file or relevant section before making changes; don't assume structure, names, or content. Use in any AI-assisted editor.

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.
Read before editing | AI Rules | Ganesh Joshi