best-practices

best-practices is a skill for Claude Code from jonasscheid/claude-nfcore-plugin. It costs 82 tokens per session (1,305 once invoked), scanned A, original, MIT.

A reference for nf-core coding conventions, where nf-core is a community standard for organizing and sharing Nextflow scientific workflows.

In plain words
What is it for?
Use it when checking strict Nextflow syntax, names for parameters and channels, output patterns, process labels, and general nf-core code structure.
Why use it?
It helps prevent style and structure mistakes that can make pipelines fail validation or be difficult for others to use.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the nf-core plugin — 4 skills, 6 agents, 2 hooks shipped together

Good fit Use it when checking strict Nextflow syntax, names for parameters and channels, output patterns, process labels, and general nf-core code structure.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add jonasscheid/claude-nfcore-plugin
Claude Code
/plugin install nf-core

Made for: Claude Code.

Or install nf-core, the plugin that ships this one along with the rest of its 4 skills, 6 agents, 2 hooks.

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 best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/jonasscheid/claude-nfcore-plugin/best-practices.svg)](https://agentmods.dev/skills/jonasscheid/claude-nfcore-plugin/best-practices)
Your own site
<a href="https://agentmods.dev/skills/jonasscheid/claude-nfcore-plugin/best-practices"><img src="https://agentmods.dev/badge/skills/jonasscheid/claude-nfcore-plugin/best-practices.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,305 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00082 $0.01305
Opus 5 $0.00041 $0.00652
Sonnet 5 $0.00016 $0.00261
Haiku 4.5 $0.00008 $0.00130

Measured 7d ago against content hash 3523a3ac234e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

best-practices 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 7d ago.

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.

skills/best-practices/SKILL.md · 139 lines

How it starts

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

nf-core Best Practices

Quick reference for nf-core conventions. For detailed pipeline/module workflows, use /nf-core:pipelines or /nf-core:modules.

Read ${CLAUDE_PLUGIN_ROOT}/shared/conventions.md for the full conventions reference including package manager setup.


Nextflow Strict Syntax (CRITICAL — Q2 2026)

All nf-core pipelines must pass nextflow lint by Q2 2026. Run strict syntax lint before nf-core community lint.

<cmd> nextflow lint .         # FIRST — strict syntax
<cmd> nf-core pipelines lint  # SECOND — community guidelines

Replace <cmd> with your package manager prefix — see ${CLAUDE_PLUGIN_ROOT}/nf-core.local.md.

Removed Syntax (Errors)

Not Allowed Use Instead
import groovy.json.JsonSlurper new groovy.json.JsonSlurper() (fully qualified)
class MyClass { } Move to lib/ directory
for (i in list) { } .each(), .collect(), .find()
while (cond) { } .each() or recursion
switch (x) { } if-else chains
addParams(...) Pass as explicit workflow inputs
env FOO (unquoted) env 'FOO' (always quote)
[meta, *items] (spread) [meta, items[0], items[1]] (enumerate)
final x = 1 / String s = 'hi' def x = 1 / def s: String = 'hi' (v25.10+)

Deprecated Syntax (Warnings — Future Errors)

Deprecated Use Instead
Channel.of(...) channel.of(...) (lowercase)
ch.map { it * 2 } ch.map { v -> v * 2 } (explicit params)
shell: section script: section

Preserving Complex Groovy Code

  • lib/ directory: Full Groovy support for helper classes (temporary solution)
  • Plugins: Recommended for reusable complex logic

Output Glob Patterns

Always use prefix-based output patterns. Broad wildcards capture staged input files.

// CORRECT
tuple val(meta), path("${prefix}.bam"), emit: bam

// INCORRECT — captures staged inputs too
tuple val(meta), path("*.bam"), emit: bam

Read the full file on GitHub · 139 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. 7d ago First seen · 139 lines · 82 tokens per session scan A 3523a3ac234e

Subscribe to this mod's changes

best-practices is a skill published in the GitHub repository jonasscheid/claude-nfcore-plugin (10 stars, last pushed 3mo ago), licensed MIT. It adds 82 tokens to every session and 1,305 once invoked, about $0.0004 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

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

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

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