docs: add code comment brevity rule to global agent context - #147
docs: add code comment brevity rule to global agent context#147UnstoppableMango wants to merge 1 commit into
Conversation
Comments should document behavior the code does not make obvious. Longer reasoning belongs in markdown under docs/. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe AI global context now guides concise, behavior-focused comments. It recommends refactoring for clarity and placing historical reasoning in documentation. ChangesComment Guidance
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This updates global guidance for concise, behavior-focused code comments without changing runtime behavior or public interfaces. No merge-readiness risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🟢 Approval recommended
The change is low-risk documentation-only guidance with no functional impact on configurations or modules.
Pull request overview
Updates the global agent context guidance to encourage concise, behavior-focused code comments, steering longer rationale toward markdown documentation.
Changes:
- Added a “code comment brevity” rule emphasizing comments that clarify non-obvious behavior.
- Encouraged refactoring over explanatory comments when code can be made self-explanatory.
- Suggested placing decision/history context in markdown documentation rather than inline comments.
File summaries
| File | Description |
|---|---|
| modules/ai/global-context.md | Adds guidance for brief, high-signal code comments and directs longer rationale to markdown docs. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comments should document behavior the code does not make obvious.
Longer reasoning belongs in markdown under docs/.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Summary by CodeRabbit