feat(code-review): add self-documenting comment & doc hygiene lens#735
Conversation
Adds a new normative Core Analysis lens to the CR skills: comments / PHPDoc / inline docs added or modified by the diff that only restate what the code already says must be deleted, with two preserved exceptions - rationale / considered alternatives / domain language (belongs in ADRs & glossaries) and navigation pointers (@rules/..., @skills/..., links to collaborating classes). - rules/code-review/general.mdc: new "Self-Documenting Code - Comment & Doc Hygiene Analysis" section plus a Core Analysis Walk-through bullet. - skills/code-review/SKILL.md: thin reference in the Core Analysis walk so every CR wrapper inherits it via the always-run engine. - tests/Installer/CodeReviewContentTest.php: content-pin test for the lens prose and both exceptions. - CHANGELOG.md: feat(code-review) entry. Closes #733
|
Status: CR done — converged (0 Critical · 0 Moderate) Minor[Minor] Security rationale / invariants are not named in Exception 1 — residual classification ambiguity. SummaryThe diff is pure normative prose plus a content-pin test across 4 files ( |
Summary
rules/code-review/general.mdc: comments / PHPDoc / inline docs added or modified by the diff that only restate what the code already says must be deleted.@rules/…,@skills/…, links to collaborating classes/methods).skills/code-review/SKILL.mdCore Analysis walk so every CR wrapper (code-review-github,code-review-jira,code-review-bugsnag) inherits the lens through the always-run engine — no wrapper edits needed.tests/Installer/CodeReviewContentTest.phppinning the lens prose and both exceptions verbatim.CHANGELOG.mdentry.Closes #733
Test plan
composer buildgreen locally (skill-check 100/100, phpcs, pint, rector, phpstan, 326 tests / 100% coverage)argos/athenacode review + security review loop (runs after this draft PR)