Back to guide/Developer Tools

Multi-File Editing

Scopes the change explicitly, lists affected files to prevent runaway edits, and asks for per-file explanations so you can review incrementally.

claude-code-tipsdescribe_changefile_or_module_1file_or_module_2
Edit View
Prompt
I need to {{describe_change}} across my codebase.

Affected areas:
- {{file_or_module_1}}
- {{file_or_module_2}}
- {{file_or_module_3}}

Requirements:
- Keep all existing tests passing
- Follow the naming conventions in CLAUDE.md
- Update any imports that change
- Do NOT modify files outside the listed areas

Make the changes file by file. After each file, briefly explain what changed and why.

Variables to customize

{{describe_change}}{{file_or_module_1}}{{file_or_module_2}}{{file_or_module_3}}

Why this prompt works

Scopes the change explicitly, lists affected files to prevent runaway edits, and asks for per-file explanations so you can review incrementally.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.