Update AGENTS.md with squash fix commits requirement#1263
Update AGENTS.md with squash fix commits requirement#1263alltheseas wants to merge 1 commit intodamus-io:masterfrom
Conversation
|
@kernelkind adding to AGENTS.md per your feedback |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughRewrote the Notedeck agent guidelines in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
good idea. I'm uncertain whether the AI will understand the meaning though. I'm more inclined to something like: |
|
Also updated with |
|
fixed in
|
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@AGENTS.md`:
- Line 109: The phrase "code to be human readable, and reviewable by human
developers" in AGENTS.md should be hyphenated for clarity; change it to "code to
be human-readable, and reviewable by human developers" by inserting a hyphen
between "human" and "readable" in that sentence.
- Around line 111-115: Remove the phrase "in order to" from the two sentences
that contain it: the end of item 6 ("...in order to see functions performance in
the profiler") should be changed to "...to see function performance in the
profiler" (also consider singular "function"), and the end of item 10 ("in order
to get a commit or PR to pass") should be changed to "to get a commit or PR to
pass"; update those two lines in AGENTS.md accordingly and ensure
spacing/grammar remains correct.
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@AGENTS.md`:
- Line 109: The sentence in AGENTS.md containing "Related to logically distinct
code, and standalone commits care must be taken for all **code to be
human-readable, and reviewable by human developers**." has awkward structure;
fix by inserting a comma after "commits" or rephrasing to "Related to logically
distinct code and standalone commits, care must be taken..." so the subject-verb
agreement and readability are correct—locate the clause containing "standalone
commits" and adjust punctuation/word order accordingly.
- Line 127: The sentence "Always prefer simplicity One line of code..." is a
run-on; insert punctuation after the phrase "Always prefer simplicity" (for
example a period, colon, or em-dash) to separate it from the following sentence
fragment so it reads correctly (e.g., "Always prefer simplicity. One line of
code is better than ten."). Update the AGENTS.md sentence containing "Always
prefer simplicity" accordingly.
🧹 Nitpick comments (2)
AGENTS.md (2)
124-124: Consider simplifying the phrasing.The phrase "Commits which have code which contain" is verbose. Streamlining to "Commits containing" would improve readability while preserving the reviewer's intended meaning.
✏️ Suggested edit
-19. Commits which have code which contain fixes or refactors which were introduced in the same PR should be **rebased such that the fixes are added to the original code history**. +19. Commits containing fixes or refactors introduced in the same PR should be **rebased such that the fixes are added to the original code history**.
125-126: Tighten phrasing for clarity.Both items contain minor wordiness:
- Line 125: The parenthetical explanation is redundant—the bold text already conveys the point.
- Line 126: "in solving" should be "when solving" or "to solve" for better grammar.
✏️ Suggested edits
-20. **Verify that existing code that can do the job is not ignored** (in lieu of creating code that performs the same function of existing code). +20. **Verify that existing code that can do the job is not ignored.**-21. **Do not accrue duplicate code.** Always revisit how existing code can be applied and/or refactored in solving new issues. +21. **Do not accrue duplicate code.** Always revisit how existing code can be applied and/or refactored when solving new issues.Based on learnings, these items correctly emphasize inspecting Notedeck code for reusable components before creating new code.
Consolidate 17 flat rules into 13 tiered rules (MUST/SHOULD/CONSIDER) to improve agent compliance. Merge redundant reuse-code rules, drop unenforceable aspirational guidance, and make every rule mechanically verifiable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@kernelkind @jb55 I updated this one after asking the agent to come up with instructions that have a lower chance of being ignored |
added
"squash self-referential fix/refactor commits"
Summary by CodeRabbit