Refactor to Match a Pattern
Point at a file you already like and have the agent bring another one in line with it.
Intermediate1 min read
Customize
Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.
Your prompt
2 placeholders leftRefactor {{target_file}} to follow the pattern in {{reference_file}}. Keep behavior identical, run the existing tests after each change, and do not add new dependencies.