Code Comments & Documentation
CodingWriting
Set what to document and for whom, and get comments and docs added without the logic being touched.
Fill the blanks and it copies as you filled it
Add comments and documentation to this code: - Documentation target: - Audience: - Output: keep the original logic untouched, only add comments/docs
0 of 3 blanks filled · anything left blank copies with its brackets
What this prompt does
Compared with asking the same thing without the length and format lines.estimate
Estimated output tokens
700
Asked loosely
700
This prompt
Energy (Wh)
1.215
Asked loosely
1.215
This prompt
Tokens estimated from characters; energy measured by Jegham et al. 2025.
A shorter answer, but the same energy band — the measurements are per band.
Reported backfire — Specifying output formatA 78% increase in one GPT-4o scenario. The paper classifies this one as apply-selectively
Where these figures come from
Published figures for the rule itself — not what this prompt saves.
Specifying output format
49%mean reduction · 95% CI 37–61%
Podder et al. 2026 BP#6 · 14 use cases / 45 prompts
by modelGPT-4o 40%Command R+ 50%Mistral-7B 57%