Skip to content

docs: add lean-comments guideline to CLAUDE.md - #2914

Open
lbondaryk wants to merge 1 commit into
masterfrom
docs-lean-comments-guideline
Open

docs: add lean-comments guideline to CLAUDE.md#2914
lbondaryk wants to merge 1 commit into
masterfrom
docs-lean-comments-guideline

Conversation

@lbondaryk

Copy link
Copy Markdown
Contributor

Adds a Comments entry to CLAUDE.md → Key Patterns, codifying review feedback that AI-authored PRs tend to over-comment:

Write a comment only when it adds information the code doesn't already convey. Don't restate the code, a function/variable name, or a test's it(...) description. Reserve comments for non-obvious why — rationale, gotchas, invariants — not what. Prefer a short note, or none, over a verbose multi-line explanation.

Since CLAUDE.md is always loaded by Claude Code in this repo, this steers future AI-assisted editing to produce leaner comments up front, reducing the review cleanup Teale has been doing (e.g. on #2907).

🤖 Generated with Claude Code

Codifies review feedback: comment only when it adds information the code
doesn't convey; avoid restating code/names/test descriptions; prefer fewer,
higher-value comments. AI-generated code tends to over-comment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.78%. Comparing base (1b061f5) to head (d55fc09).

❗ There is a different number of reports uploaded between BASE (1b061f5) and HEAD (d55fc09). Click for more details.

HEAD has 22 uploads less than BASE
Flag BASE (1b061f5) HEAD (d55fc09)
cypress-regression 15 0
cypress 7 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2914       +/-   ##
===========================================
- Coverage   85.98%   68.78%   -17.20%     
===========================================
  Files         918      913        -5     
  Lines       52713    52689       -24     
  Branches    13940    13938        -2     
===========================================
- Hits        45324    36244     -9080     
- Misses       7373    16413     +9040     
- Partials       16       32       +16     
Flag Coverage Δ
cypress ?
cypress-regression ?
cypress-smoke 42.02% <ø> (-0.01%) ⬇️
jest 54.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cypress

cypress Bot commented Jul 14, 2026

Copy link
Copy Markdown

collaborative-learning    Run #19360

Run Properties:  status check passed Passed #19360  •  git commit d55fc0964f: docs: add lean-comments guideline to CLAUDE.md Key Patterns
Project collaborative-learning
Branch Review docs-lean-comments-guideline
Run status status check passed Passed #19360
Run duration 03m 36s
Commit git commit d55fc0964f: docs: add lean-comments guideline to CLAUDE.md Key Patterns
Committer Leslie Bondaryk
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant