/nf-core-reviewer:vagkaratzas-reviewfrom nf-core-reviewer
Use when reviewing, scoring or evaluating an nf-core/modules pull request, or a module or subworkflow branch in a local nf-core/modules clone (including one an agent just built), the way vagkaratzas reviews them. Examples - "review nf-core/modules#1234", "score this module PR", "evaluate the new samtools/sort module".
Ships in nf-core-reviewer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You review as a bot standing in for vagkaratzas. Every rule, severity and the scoring formula live in rubric.md next to this file. Read it in full before judging anything.
REQUEST_CHANGES or COMMENT. Approving is always the human's call.scripts/review.py check hit only as a false positive, and say why in the review.na, and the review says it was not run.Placeholders: <modules_repo> is the user's nf-core/modules clone (ask if unknown). <skill_dir> is this file's folder. <work> is a scratch folder outside the clone: the session scratchpad when the platform has one, else ${TMPDIR:-/tmp}/vagkaratzas-review.
gh pr view <N> -R nf-core/modules --json title,author,body,files
gh pr diff <N> -R nf-core/modules > <work>/pr-<N>.diff
git -C <modules_repo> fetch https://github.com/nf-core/modules.git pull/<N>/head:refs/review/pr-<N>
git -C <modules_repo> worktree add --detach <work>/pr-<N> refs/review/pr-<N>
git -C <work>/pr-<N> rev-parse HEAD # must equal: gh pr view <N> -R nf-core/modules --json headRefOid -q .headRefOid
Review inside <work>/pr-<N>. Never gh pr checkout in <modules_repo>. Fetch into the PR's own ref, never FETCH_HEAD: other reviews running in parallel overwrite FETCH_HEAD. Name every file in <work> after the PR (pr-<N>-nftest.log), since <work> may be shared too.git -C <modules_repo> fetch https://github.com/nf-core/modules.git master
git -C <modules_repo> diff FETCH_HEAD...HEAD > <work>/<branch>.diff
modules/nf-core/<tool>[/<sub>] and subworkflows/nf-core/<name> folders in the diff.gh pr checks <N> -R nf-core/modules lists the checks on the PR's head commit.
nf-core lint modules (<tool/sub>) or nf-core lint subworkflows (<name>) job.confirm-pass-nf-test, plus confirm-pass-gpu for GPU components (both must pass); each sums up every <arch> | <profile> | <shard> job.pending or missing (CI waits for maintainer approval on a first-time contributor's PR) is not a pass: run that gate locally, or mark it na. Only confirm-pass-* and nf-core lint ... jobs count; a green Graphite or labeller check is not CI.gh api orgs/nf-core/members/<author> (204 member, 404 not). For a non-member, end the review body with: "CI only runs automatically for nf-core members. Please ask for a GitHub invitation in the nf-core Slack #github-invitations channel; once you've joined, CI will run on your next push.".github/skip_nf_test.json. Listed under every profile means CI ran no test: run G2 locally. Listed under some profiles: G2 stands on the others, and the review body names the skipped ones.nextflow lint with the Nextflow version CI pins, because results differ between versions. Set it in the same command, since shell state may not persist between commands:
NXF_VER=$(grep -oP 'NXF_VER:\s*"\K[^"]+' .github/workflows/nf-test.yml) nf-test test ...
Run nf-test with --profile=+singularity, and never with --update-snapshot: a snapshot mismatch is a failure.
cp -r <modules_repo>/.nf-test/plugins <work>/pr-<N>/.nf-test/, and rerun.nf-core modules lint can hang cloning nf-core/modules under an isolated HOME. Run it under timeout 600; if it times out, mark G1 na and say so in the body, rather than reporting a fail.python3 <skill_dir>/scripts/review.py check <component_dir> --diff <work>/<diff file>
Each row is rule PASS|FAIL|NA path:line diff|overall message. diff means the hit is on a line the PR added; overall means it was already there or on an untouched line.documentation/homepage links in meta.yml, or the tool's repository README). Pull the container to run <tool> <sub> --help only when the online docs don't list the file options. List every file option it reads and every file it writes, optional ones included, and compare against the module's inputs and outputs for M15. Name each missing one, with the flag that takes or produces it, in the review.main.nf, environment.yml, the tests, the snapshot, meta.yml and the PR body for the judgment rules. When there are several components, a rule fails if it fails in any of them. For a GPU component (environment.gpu.yml, task.accelerator, a process_gpu label or a gpu-tagged test), read https://nf-co.re/docs/developing/components/gpu-modules for E2, and judge main.gpu.nf.test and nextflow.gpu.config like the CPU test files.~/nf-core-reviews/<name>.verdicts.tsv with one rule<TAB>diff<TAB>overall row per rubric rule. Use modules-pr-<N> as <name> in PR mode and the branch name in local mode. Then run:
python3 <skill_dir>/scripts/review.py score ~/nf-core-reviews/<name>.verdicts.tsv
Use its scores, event, approval line and footer exactly as printed.~/nf-core-reviews/<name>.md in the format below, show it to the user, and stop.git -C <modules_repo> worktree remove <work>/pr-<N> and git -C <modules_repo> update-ref -d refs/review/pr-<N>.# nf-core/modules#<N>: <PR title>
event: <REQUEST_CHANGES|COMMENT>
diff_score: <x.yz>
overall_score: <x.yz>
## Inline comments
### <path>:<line>
<comment>
### <path>:<start>-<end>
<comment with a suggestion block>
## Review body
<TLDR: 1-3 bullets, the blocking points first>
<if the score printed "approval line: yes": Approval should be on its way soon.>
<if there are Overall-only findings: "While you are here (not blocking):" then one line per finding, `path:line` and the issue>
<if a gate was not run: "Not run: G2 (<reason>)">
Diff <x.yz>/10 · Overall <x.yz>/10
<footer printed by `review.py score`> · <your model ID, or "unknown">
Inline comments. Every failed finding on a line the PR added gets its own comment on that line or range. GitHub only accepts inline comments on lines inside the diff, so findings on untouched lines go in the body's "While you are here" list instead. Each comment:
```suggestion block holding the exact replacement lines whenever the fix is mechanical.(T1). It stays in the .md file for traceability, and is removed when posting.The body is a TLDR. It never repeats the inline comments one by one.
gh is available and authenticated..md file as the user left it, because they may have edited it. Strip the rule IDs ((T1)) from every comment and from the body, including its "While you are here" list, since PR authors don't know the rubric. Before posting, grep -nE '\([A-Z][0-9]+\)' <work>/review-<N>.json must print nothing. Write it to <work>/review-<N>.json:
{"event": "COMMENT", "body": "<review body>",
"comments": [{"path": "<path>", "line": 12, "side": "RIGHT", "body": "<comment>"},
{"path": "<path>", "start_line": 30, "line": 34, "start_side": "RIGHT", "side": "RIGHT", "body": "<comment>"}]}
gh user, use COMMENT: GitHub refuses REQUEST_CHANGES on your own PR.gh api repos/nf-core/modules/pulls/<N>/reviews --method POST --input <work>/review-<N>.json
Report the review URL from the response.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
nf-core-reviewer@vagkaratzas is listed by vagkaratzas/nf-core-module-dev — review the source before installing
npx claudepluginhub vagkaratzas/nf-core-module-dev --plugin nf-core-reviewer