Ban the word "legacy" in code comments and commit messages - #1134
Open
mark-sil wants to merge 1 commit into
Open
Ban the word "legacy" in code comments and commit messages#1134mark-sil wants to merge 1 commit into
mark-sil wants to merge 1 commit into
Conversation
The code-comment standard allowed "legacy X" as a behavioral-parity WHY. Once the code it refers to is deleted, the word names nothing a reader can look up, and they cannot tell whether the behavior is still required. Ban the term in comments and in commit messages, which are both read long after the referent is gone. PR descriptions and review discussion stay exempt: they are read alongside the diff while the context is live, so the team's own word is the clearest one there. State the scope in AGENTS.md, where it is in context regardless of which skill fires, then repeat the relevant half where each artifact is authored -- the two skills for the ban, pr-pitch for the exemption, so a PR body is not written under a rule that does not apply to it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
papeh
requested changes
Sep 11, 2026
papeh
left a comment
Contributor
There was a problem hiding this comment.
LG overall. One change request.
| This covers the assertion messages of new tests too. Commit messages | ||
| follow the same rule (`.claude/skills/commit-messages/SKILL.md`). PR | ||
| descriptions and review discussion are exempt, so do not coin a | ||
| euphemism to avoid the word there. |
Contributor
There was a problem hiding this comment.
I don't think we want to coin a euphemism anywhere. "PR Descriptions and review discussions are exempt from this rule" should suffice.
Contributor
Author
There was a problem hiding this comment.
I can remove it, but my preference would be to leave it. Because of the ban in other places, Claude thought it would be best to use the word "classic' instead of "legacy" in a PR I was working on. Telling Claude not to "coin a
euphemism" was Claude's suggestion as a way to prevent it from doing that.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The code-comment standard allowed "legacy X" as a behavioral-parity WHY. Once the code it refers to is deleted, the word names nothing a reader can look up, and they cannot tell whether the behavior is still required.
Ban the term in comments and in commit messages, which are both read long after the referent is gone. PR descriptions and review discussion stay exempt: they are read alongside the diff while the context is live, so the team's own word is the clearest one there.
State the scope in AGENTS.md, where it is in context regardless of which skill fires, then repeat the relevant half where each artifact is authored -- the two skills for the ban, pr-pitch for the exemption, so a PR body is not written under a rule that does not apply to it.
This change is