mirror of
https://github.com/stablyai/orca
synced 2026-04-21 14:17:16 +00:00
docs(agents): tighten code-comment rule to short, why-only (#883)
This commit is contained in:
parent
3bbe9ed712
commit
8ea1f2ee33
1 changed files with 5 additions and 3 deletions
|
|
@ -1,8 +1,10 @@
|
|||
# AGENTS.md
|
||||
|
||||
## Code Comments: Document the "Why"
|
||||
## Code Comments: Document the "Why", Briefly
|
||||
|
||||
When writing or modifying code driven by a design doc or non-obvious constraint, you **must** add a comment explaining **why** the code behaves the way it does.
|
||||
When writing or modifying code driven by a design doc or non-obvious constraint, add a comment explaining **why** the code behaves the way it does.
|
||||
|
||||
Keep comments short — one or two lines. Capture only the non-obvious reason (safety constraint, compatibility shim, design-doc rule). Don't restate what the code does, narrate the mechanism, cite design-doc sections verbatim, or explain adjacent API choices unless they're the point.
|
||||
|
||||
## File and Module Naming
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue