research-code-review

research-code-review is a skill for Claude Code from fbabelle/PrettySeriousResearcher. It costs 65 tokens per session (1,609 once invoked), scanned A, original, Apache-2.0.

A review process for research code that checks its purpose, fit with the project, tradeoffs, statistical validity, and tests.

In plain words
What is it for?
It is for reviewing or changing algorithms, experiment harnesses, run code, and pull requests in research projects.
Why use it?
It helps reveal unclear goals, conflicts with existing decisions, unnecessary complexity, and changes that do not have passing tests.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Part of the research-paper-skills plugin — 17 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fbabelle/prettyseriousresearcher/research-code-review
Any agent
npx skills add fbabelle/PrettySeriousResearcher --skill research-code-review
Clone the repo
git clone --depth 1 https://github.com/fbabelle/PrettySeriousResearcher

Made for: Claude Code.

Or install research-paper-skills, the plugin that ships this one along with the rest of its 17 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for research-code-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/fbabelle/prettyseriousresearcher/research-code-review.svg)](https://agentmods.dev/skills/fbabelle/prettyseriousresearcher/research-code-review)
Your own site
<a href="https://agentmods.dev/skills/fbabelle/prettyseriousresearcher/research-code-review"><img src="https://agentmods.dev/badge/skills/fbabelle/prettyseriousresearcher/research-code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01609
Opus 5 $0.00032 $0.00805
Sonnet 5 $0.00013 $0.00322
Haiku 4.5 $0.00006 $0.00161

Measured today against content hash a6b2cf419ad3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

research-code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/research-code-review/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Research code-review gate

A correctness-and-judgment gate that runs after any code is written or changed in Phases 2–3, and when reviewing a PR. It has two halves: the 4-step design judgment (this skill's core) and test discipline. Mechanical bug-hunting is delegated to the built-in /code-review skill so this one stays focused on judgment.

The 4-step review (apply in order, every time)

  1. What is the change trying to solve? State the goal in one sentence. If you can't, the change is unclear — stop and clarify before reviewing further. Tie it back to the research question or the experiment it serves.
  2. Conflict & pattern-fit. Does it conflict with the existing design/decisions? Does it follow the surrounding code's patterns, naming, and conventions (match the repo's house style, not a new personal one)? Flag silent contradictions with earlier choices.
  3. Tradeoffs — benefit vs shortcoming. What does it buy, and at what cost (complexity, speed, memory, coupling, statistical validity)? Is the tradeoff worth it for a research artifact, or is it premature optimization / over-engineering? Name the shortcoming explicitly even when recommending the change.
  4. Legibility & validity. Is it readable and correct? For research code specifically: does it preserve experimental validity — no data leakage, correct train/val/test temporal split, fixed/recorded seeds, metrics computed as claimed, results reproducible from the committed code?

Write the review as those four points, not a vibe. It's legitimate to conclude "no change needed" — don't manufacture findings (see research-reflection on avoiding tilted, change-for-its-own-sake behavior).

Extra checks for statistical machinery

  • Guarantee ≠ power. Code implementing a statistical guarantee (error control, calibration, coverage) can be theoretically valid yet practically broken by a tuning choice — the guarantee still "holds" while the procedure alarms constantly or never. Verify empirical behavior at realistic problem scale (false-alarm rate, power/delay, on inputs matching real SNR), not just the math↔code map. A validity test suite should include an empirical check of the guarantee's usefulness, not only its correctness.
  • Guarantee ≠ usability for multi-stream / rank-threshold rules. A multiplicity procedure (BH-style rank thresholds, family-wise combinations) can carry a correct bound and still be unusable when the per-stream statistic has a null plateau that sits above the lower-rank thresholds — an all-healthy library then gets declared en bloc while the (loose) bound is satisfied. Before adopting any combined rule, simulate it on an all-null population at realistic scale and pin the failure mode as a regression test if you reject it; the per-stream rule with a union bound is often the honest default.
  • Every null cell against its nominal bound. A spike or validity verdict must tabulate each null-hypothesis condition (every dependence / noise / regime variant) against the guarantee's nominal level — not summarise "holds empirically." Any cell above the bound is a validity violation that becomes a prioritized open ADR before any downstream claim builds on the machinery; stored results routinely contain a violation the verdict prose never surfaced.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +7 lines a6b2cf419ad3
  2. 5d ago First seen · 44 lines · 65 tokens per session scan A 540153ccc9bc

Subscribe to this mod's changes

research-code-review is a skill published in the GitHub repository fbabelle/PrettySeriousResearcher (2 stars, last pushed today), licensed Apache-2.0. It adds 65 tokens to every session and 1,609 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens