rseng-code-review
Skill20 starsChanged 4 months agoMITView on GitHub
Covers reviewing existing code and whole projects, not just new diffs: structured codebase audits that produce ranked findings and then implement the agreed improvements, recurring project reviews after major tasks and milestones, review scoping by risk and tier, and turning review findings into tracked work and lessons. Use PROACTIVELY after major tasks and milestones, and when the user asks for a code review, codebase audit or health check of existing code, wants improvements suggested and applied, mentions reviewing the project after a milestone or before a release or submission, or when inherited or long-unreviewed code needs a structured pass. For diff-time pre-review of new work see rseng-pair-programming; for PR-time review process and rules see rseng-version-control-review.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rseng-agent-securitySkill
- rseng-ai-declarationSkill
- rseng-archivingSkill
- rseng-big-data-processingSkill
- rseng-ci-cdSkill
- rseng-citation-hygieneSkill
- rseng-citation-metadataSkill
- rseng-code-qualitySkill
- rseng-community-governanceSkill
- rseng-community-metricsSkill
- rseng-contributor-onboardingSkill
- rseng-data-management-plansSkill
- rseng-data-managementSkill
- rseng-debuggingSkill
- rseng-defensive-codingSkill
- rseng-dependency-managementSkill
- rseng-discoverySkill
- rseng-documentationSkill
- rseng-fact-checkingSkill
- rseng-fairguardSkill
- rseng-fair-mlSkill
- rseng-fair-softwareSkill
- rseng-gpu-computingSkill
- rseng-green-computingSkill
- rseng-honestySkill
- rseng-hpc-computingSkill
- rseng-human-verificationSkill
- rseng-language-guidesSkill
- rseng-legacy-codeSkill
- rseng-lessons-learnedSkill
- rseng-license-complianceSkill
- rseng-licensingSkill
- rseng-maintenance-sustainabilitySkill
- rseng-management-planningSkill
- rseng-notebooksSkill
- rseng-numerical-accuracySkill
- rseng-open-science-practicesSkill
- rseng-open-source-migrationSkill
- rseng-pair-programmingSkill
- rseng-performance-profilingSkill
- rseng-project-kickoffSkill
- rseng-project-scaffoldingSkill
- rseng-project-trackingSkill
- rseng-provenanceSkill
- rseng-publishing-releasingSkill
- rseng-quality-frameworkSkill
- rseng-regulatory-complianceSkill
- rseng-reproducibilitySkill
- rseng-reproducible-environmentsSkill
- rseng-research-integritySkill
- rseng-science-communicationSkill
- rseng-scientific-file-formatsSkill
- rseng-scientific-visualizationSkill
- rseng-securitySkill
- rseng-software-designSkill
- rseng-software-metricsSkill
- rseng-software-peer-reviewSkill
- rseng-software-publishingSkill
- rseng-software-reuseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 84
After a major task, milestone or before a release/submission, review the PROJECT, not just the code - a lightweight standing agenda:
- Distinctive: line 139
Check whether any of these applies before moving on:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code and project review
Most review attention goes to new diffs; most risk lives in the code nobody has looked at for a year. This skill covers the retrospective forms: reviewing the EXISTING codebase with findings ranked and then implemented, and reviewing the PROJECT on a cadence - after milestones, before releases and submissions. Division of labor: rseng-pair-programming owns diff-time pre-review of new work; rseng-version-control-review owns the review process and rules; this skill owns review as an undertaking on what is already there. Review-then-implement is a two-phase contract: findings first, agreement second, changes third - never silent rewriting under the review's flag.
The codebase review
Scope before depth - review the code that matters most:
- Map risk: recently churned complex modules (rseng-software-metrics' hotspot map), result-bearing code paths (what feeds published numbers), security surfaces (rseng-security), and anything the tests do not reach (rseng-testing's coverage). Review THOSE deeply; skim the rest.
- Sweep with the pack's lenses, each producing findings with file:line evidence: correctness and silent-failure modes (rseng-defensive-coding), numerical practice (rseng-numerical-accuracy), design and coupling (rseng-software-design), performance red flags on hot paths (rseng-performance-profiling), hygiene and dead code (rseng-code-quality), reproducibility hazards - unseeded randomness, unpinned environments, hidden state (rseng-reproducibility, rseng-notebooks).
- Rank honestly: must-fix (wrong results possible, data loss, security), should-fix (maintenance debt with a price), and nice (style beyond the linter's remit). Tier calibrates the bar (rseng-quality-framework): analysis code is not reviewed to infrastructure standards.
- Deliver findings BEFORE changing anything: the ranked report with evidence is the review; the user picks what gets implemented (defaults offered: all must-fix, should-fix by effort).
Implementing the agreed improvements
- One finding, one commit: small reviewable changes referencing the finding (rseng-version-control-review), tests first or alongside for behavior-touching fixes - and characterization tests BEFORE touching anything load-bearing and untested (rseng-legacy-code's safety net; review of legacy code IS the legacy workflow).
- Behavior-preserving by default: refactors keep the tests green; anything that changes results is flagged loudly and decided by the human (the science is theirs - rseng-pair-programming's boundary).
- Re-run the full verification after the batch: tests, linters, metrics delta (rseng-software-metrics shows the improvement measurably - report before/after numbers).
- Route the residue: declined findings recorded with reasons in the decision log (rseng-project-tracking), recurring patterns into lint rules or checklists, and the transferable insights into LESSONS.md (rseng-lessons-learned).
The recurring project review
After a major task, milestone or before a release/submission, review the PROJECT, not just the code - a lightweight standing agenda:
- Code: the codebase review above, scoped to what changed since last time plus one rotating deep-dive area.
- Quality posture: indicator walk (rseng-quality-framework), FAIR/security assessments re-run and deltas reported (rseng-fairguard, rseng-security).
- Records current: README and docs truthful (rseng-documentation), citation and contributor records match reality (rseng-citation-metadata), aidecl.yaml up to date (rseng-ai-declaration), tracker and milestones honest (rseng-project-tracking).
- Reproducibility spot-check: the one-command path still works from clean (rseng-reproducibility).
- Close the loop: findings become tracked tasks with owners; the review note (date, scope, findings, actions) goes into the project record - and the next review starts by checking the last one's actions landed.
Offer this review PROACTIVELY at natural moments - a milestone just closed, a release is near - as a short menu ("want the post-milestone review? code, records, repro - about 20 minutes"), respecting a decline (rseng-trainer's consensual-offer rule).
Review craft
The comment discipline from rseng-pair-programming applies unchanged: evidence with every claim, reasons with every request, blocking separated from preference, praise where it is earned - and for research code, "what does this number correspond to physically" remains a first-class review question (rseng-research-integrity). Reviews are of code, never of authors; findings in inherited code especially are archaeology, not blame (rseng-lessons-learned's blame-free wording).
Working with this skill
This skill is source-independent: it encodes structured code-review practice applied retrospectively to research software. It composes the pack's lenses into one undertaking and feeds rseng-project-tracking and rseng-lessons-learned.
Learn more (verified):
- https://google.github.io/eng-practices/review/ - Google engineering review practices
- https://bssw.io/items?topic=peer-code-review - BSSW peer code review resources
- https://conventionalcomments.org - conventional comments
<!-- related-skills:begin -->Related skills
Check whether any of these applies before moving on:
- rseng-fairguard - assessment reruns during milestone reviews
- rseng-legacy-code - characterization tests before implementing fixes
- rseng-lessons-learned - findings become recorded lessons
- rseng-project-tracking - findings become tracked tasks
- rseng-quality-framework - tier calibrates the review bar
- rseng-software-metrics - hotspot map scopes the review
<!-- related-skills:end -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

