Targeted File Editing
Pinpoints the exact location and scope of each edit. The explicit constraints prevent Cline from reformatting the entire file or making 'helpful' but unwanted adjacent changes.
Edit {{file_path}} to {{change_description}}.\n\nSpecific changes:\n- In the {{section_name}} section (around line {{line_number}}), {{edit_1}}\n- {{edit_2}}\n- {{edit_3}}\n\nConstraints:\n- Do NOT modify any other functions or exports in this file\n- Do NOT change the import statements unless the new code requires a new import\n- Do NOT reformat or re-indent code you didn't change\n- Preserve all existing comments\n\nAfter making the changes, show me a summary of exactly what was modified (like a diff).
Variables to customize
Why this prompt works
Pinpoints the exact location and scope of each edit. The explicit constraints prevent Cline from reformatting the entire file or making 'helpful' but unwanted adjacent changes.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Forcing the agent to plan before acting prevents premature execution and wasted steps. Explicit dependency mapping enables parallel execution and catches logical gaps early.
Tool Selection AgentThe ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.
Prompt CompressorExplicitly requiring all functional requirements to be preserved prevents the model from over-compressing and losing critical instructions.
Memory Management AgentExplicit memory read/write instructions create agents that improve over time. Categorization keeps memories organized, and the deduplication rule prevents context bloat.