Repository navigation
Code review guidelines: add item 14, don't reinvent the wheel - #265
Conversation
…264) Companion to Morrison-Lab/ai-config#603, which enshrines DRW as a dev and review principle and starts a central big-picture-principles catalog. Follows the hedged proposed-in-ai-config#N citation convention while that PR is open. Per #247/#249 precedent, a CLAUDE.md-only guidelines change takes no changelog.d fragment. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01V5v5mUjURB2YW1nJW2Ai9S
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
Code reviewReviewed the new One finding, posted inline: the phrase VerdictNeeds minor tweaks -- the citation content and structure of the PR are otherwise sound; only the one inline wording clarification is outstanding before merge. |
…nd 1) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01V5v5mUjURB2YW1nJW2Ai9S
|
Claude finished review — View run The review is complete. Summary of what I found and posted on PR #265: Verified accurate: the new item 14's citations to One finding posted inline (#265 (comment), CLAUDE.md lines 709-712): the phrase A second candidate finding (citation-sentence structure differing from item 6's pattern) was checked and invalidated as a subjective stylistic preference, not a rule violation — it was not posted. Top-level summary comment: #265 (comment) VerdictNeeds minor tweaks — one inline wording clarification outstanding; otherwise ready for merge. |
|
ARD summary for review round 1 (048eb38):
The same finding was posted in two duplicate inline threads; both are replied to and resolved. The push has already triggered the next review round. Generated by Claude Code |
Code reviewRound-2 review. Confirming the prior review's sole finding is resolved, and posting one new finding. Prior finding resolved: the ambiguous New finding, posted inline (CLAUDE.md:705): item 14's "trustworthy external source" examples — Also re-verified both external citations ( VerdictNeeds minor tweaks — one new, non-blocking wording suggestion outstanding (the marketplace-qualifier finding above); the round-1 finding is resolved and everything else checks out. |
|
Claude finished review — View run Code review summary — #265PR: "Code review guidelines: add item 14, don't reinvent the wheel" — adds a single new Round-1 finding, now resolved: the prior round flagged the New finding (posted inline, non-blocking): CLAUDE.md:705 — the "trustworthy external source" list ( Both external citations ( Posted: 1 inline comment + 1 top-level summary comment referencing the prior review. VerdictNeeds minor tweaks — one new, non-blocking wording suggestion outstanding; the round-1 finding is resolved and everything else checks out. |
…A-pinned (review round 2) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01V5v5mUjURB2YW1nJW2Ai9S
|
ARD summary for review round 2 (bdd7547):
Round 1's finding was confirmed resolved by the round-2 review. All inline threads are resolved; the push has triggered round 3. Generated by Claude Code |
|
Claude finished review — View run Code Review — PR #265 (round 3)I reviewed the current head commit ( Round-2 finding resolved. The previous review (comment, posted 2026-07-18T01:01:17Z) flagged that "the GitHub Actions marketplace" lacked a quality qualifier, unlike its sibling list entries. The current text now reads:
This matches the round-2 suggestion and goes further, tying the requirement back to Round-1 finding remains resolved (verified again): the "checked existing options, nothing fit" note still specifies its location — "a note in the PR description or a code comment." Re-verified both external citations directly (per this document's own item 4, fact-check external sources):
No new issues found in this round's diff. I checked for scope creep beyond the round-2 fix (none), numbering/link syntax (consistent with items 1–13), and AI-authorship tells (em-dash usage is heavy but consistent with the rest of the document's established style, not a new tell introduced by this diff). VerdictReady for merge — both prior rounds' findings are resolved, external citations re-verified as accurate, and no new issues surfaced in this round's diff. |
Closes #264. Companion to d-morrison/ai-config#603.
Adds
### 14. Don't reinvent the wheeltoCLAUDE.md's Code review guidelines: when a diff adds a new function or feature, check whether the functionality already exists — in one of the lab's own repos or in a trustworthy external source (base R, r-lib, tidyverse, a well-maintained CRAN package, the Actions marketplace) — and flag hand-rolled equivalents, preferring depending on, forking, or contributing to the existing implementation over re-building from scratch, with the standard escape hatches (unfit API, unmaintained, license-incompatible, heavy dependency for a one-liner).Follows the existing pattern of items 3–13 (global standing rules cited from the
d-morrison/ai-configcorpus), using the hedged "proposed in ai-config#603 — once merged, the fragment lives atshared/principles/dont-reinvent-wheel.md" convention while the companion PR is open; the already-publishedshared/coding/prefer-packaged-functions.md(the R-function case) is cited in present tense.No
changelog.d/fragment, per #247/#249 precedent for CLAUDE.md-only guideline changes. Verified clean againstlint-markdown's bundled default config (MD013 is disabled there; the blanket 80-char default that flags pre-existing lines is not what CI runs).Generated by Claude Code