Skip to content
Log in

Comment Pass

Removes comments restating the code and adds the ones explaining why, which is the only kind that does not go stale into a lie.

0

Share this prompt

Free — no card needed

Create a free account

to open Comment Pass — and the other 364 prompts across 21 categories.

We store your email address to send these. We never sell it or pass it to advertisers. Withdraw at any time. Privacy Policy.

Already have an account?

CategoryCodingForDevelopersTested onClaudeChatGPTGemini

Running it, start to finish

  1. Paste the code with the decisions that are not visible in it.
  2. Delete the restating comments and fix the false ones.
  3. Replace what you can with better names.

What you get back

The output this produces, every time.

  • Deletes comments that restate the code, which are the ones that drift into lies.
  • Identifies where a better name or an extracted function beats a comment.
  • Flags comments asserting invariants the code does not actually enforce.

Getting better results

Where this usually goes wrong, and how to avoid it.

  • Tell it the hidden decisions. The why is the only thing worth commenting and it is the one thing not visible in the code. That field is the whole input.
  • Fix the already-false comments first. A stale comment is worse than none because readers trust it and act on it.
  • Put history in the commit message. A comment serves someone reading this line today. The story of how it changed belongs in git or an ADR.

More Coding prompts

All Coding

Written for The AI University. Every prompt in this library is original work — authored, tested and revised here, not collected from elsewhere. 365 of them, free with an account.