- Notifications
You must be signed in to change notification settings - Fork1.1k
Commitbcc74b2
authored
docs: improve code comment guidelines for AI agents (#20952)
This PR enhances the CLAUDE.md document with comprehensive guidelinesfor writing better code comments, specifically targeted at AI agents andLLM-generated code.## Changes- **Proper sentence structure**: Comments should end with punctuation- **Explain why, not what**: Focus on rationale rather than describingcode- **Line length and wrapping**: 80-character width with natural wrapping## ExampleThe guidelines include before/after examples showing the differencebetween well-formatted, meaningful comments and poorly written ones.## ImpactThese standards will help ensure AI-generated code includesprofessional, maintainable comments that align with project conventions.---🤖 This change was written by Claude Sonnet 4.5 Thinking using[mux](https://github.com/coder/mux) and reviewed by a human 🏂1 parent363ed5f commitbcc74b2
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
143 | 176 | | |
144 | 177 | | |
145 | 178 | | |
| |||
0 commit comments
Comments
(0)