plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Overt emphasis on file length in thermonuclear code review.

Open BenevolentFutures opened this issue 6 months ago • 2 comments

Although your thermodermicular code review does seem decent, clearly the engineer who wrote it had strong opinions regarding file length. A thousand line file was a completely reasonable limit in the olden days. However, now that we're using agents to manage skill, logical grouping matters more than individual file readability.

BenevolentFutures avatar May 22 '26 02:05 BenevolentFutures

Hey @BenevolentFutures, for anyone reading later, the rule in question is item 1 of cursor-team-kit/skills/thermo-nuclear-code-quality-review/SKILL.md: do not let a PR push a file from under 1k lines to over 1k without a strong reason, with an explicit waiver clause when the file stays clearly organized. It is a crossing-the-threshold check on the diff, not a verdict on existing long files, which narrows it more than the title suggests. Your point that agents read by logical unit rather than by scrolling is fair, and the counter-argument the skill is built on is that a file crossing 1k lines in one PR is usually a signal about the PR's scope, not the file. Softening it to a scope question ("should this be decomposed first?") is already how the suggested wording in the skill phrases it. Whether the threshold itself moves is the skill owner's call; this issue stays open as the request.

deanrie avatar Oct 21 '26 13:10 deanrie

Ah did not realize that it was this crossing-1k-threshold that triggered review, that is more understandable, thanks for the clarification!

BenevolentFutures avatar Oct 22 '26 06:10 BenevolentFutures