From a87abe2f9eb4526166e0bf8bd7376ec87d7747f4 Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Sun, 8 Nov 2026 17:29:11 +0000 Subject: [PATCH] dev: Add commenting guidelines for LLM contributors (#9077) --- CONTRIBUTING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5d2b9ed84..7b9588858 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -31,6 +31,8 @@ This guidance applies to all contributor prose. It includes pull request titles, - Limit procedures to 20 words per sentence. Limit descriptions to 25 words per sentence. - Put one instruction in each sentence. - Do not use idioms, metaphors, or hedging. +- Never write transient comments or comments that document point-in-time intent (e.g. notes about what changed, why an edit was made, or what was there before). +- Write comments that document what the code does only when the code is not self-documenting. The goal is text that each reviewer can understand in one read.