Coding Editorial example

Cline prompt for refactoring a function across a repo

An editorial example for refactoring a function across a repo in Cline, written for our guide and not tested against the vendor

For
Cline
Source
AI Tool Atlas guide: Cline
Checked
Oct 2, 2026

The prompt

Editorial example from our guide
Rename the fetchUser helper to getUser across the repo, update imports, and run the tests.
How to use this prompt: fill the variables, run it in Cline, check the resultYOU FILL INReady to runPaste the prompt as isNo variables to replaceTHE PROMPTCline15 words · 1 linesource: editorial exampleYOU GETThe resultAn editorial example for refactor…check the result against the tipscopy, paste, run in Clinefill → run → check · prompts are copied word for word from their source
How to use this prompt: what to fill in, where to run it, what comes back

How to check the result

  • Read each diff before approving
  • Run your test suite
  • Use a checkpoint to restore if a step went wrong

This prompt was written as an example for our guide and has not been run against the tool. Expect to adapt it to your case. How we document tools.

Where to run it

More coding prompts