Transform code so it reads like pragmatic, hand-maintained production code without changing behavior. Use when asked to humanize awkward or machine-like code, improve naming, comments, labels, log messages, docstrings, or local structure, and make files feel natural, idiomatic, domain-aware, and consistent with the surrounding codebase while preserving public APIs, data contracts, SQL semantics, tests, and external side effects.
Rewrite supplied code so it reads like normal team-written production code. Preserve behavior, contracts, and local conventions; improve clarity, naming, comments, labels, and small-scale structure without churning the file.
Expect:
conservative, balanced, or aggressivepreserve public method names or do not touch SQLInfer missing style cues from nearby code before asking questions. Ask only when missing context makes a behavior-preserving rewrite unsafe.
Apply these priorities in order:
data, payload, value, obj, temp, helper, util, processData, handleResponse, or finalResult.Return output in this order:
Before returning, check: