Original prompt Engineering
Adjust code to match style guides
The prompt
Revise [code] to follow [style guide]. Explain each material change and preserve observable behavior. Flag rules that conflict with the supplied runtime or project conventions.
Copyable text only. No model runs here, and no source material is uploaded.
When to use it
Separate formatting changes from behavior changes during a code cleanup.
Prepare the source material
- Code snippet
- Style guide
- Runtime constraints
Review before using the result
Run the project's formatter and relevant tests; a cleaner appearance does not establish behavioral equivalence.