Add a feature to existing code

Extend code without breaking it.

chatgptclaude
Act as a senior developer. I want to add [feature] to this existing code: [paste]. Suggest the cleanest way to integrate it, write the changes, keep the existing behavior and style intact, and note anything to test. Explain your approach in a few lines. Language: [lang].

How to use this prompt

  1. Tap Copy prompt above.
  2. Replace the [bracketed] parts with your own details.
  3. Paste it into chatgpt, claude.