From nextflow
Installs or upgrades Nextflow on the user's machine, including verifying and installing Java 17+ via SDKMAN if needed. Activates when the user wants to manage their Nextflow installation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nextflow:install-nextflowThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Install Nextflow (or upgrade an existing installation) and ensure the Java prerequisite is in place.
Install Nextflow (or upgrade an existing installation) and ensure the Java prerequisite is in place.
command -v nextflow && nextflow -version
If Nextflow is already installed:
nextflow -version.Run a self-update (it checks the latest release and updates if newer):
nextflow self-update
Confirm with the user before running it. After the update, re-run nextflow -version to verify.
If the install is already up to date, stop here.
Nextflow requires Java 17 or later. Check the installed Java version:
java -version
Note: java -version writes to stderr, not stdout. Capture both streams when parsing:
java -version 2>&1 | head -1
First, check whether SDKMAN is installed:
[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ] && echo "SDKMAN present" || echo "SDKMAN missing"
If SDKMAN is missing, install it:
curl -s "https://get.sdkman.io" | bash
Then load SDKMAN into the current shell session and install Java 21:
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 21-tem
After installation, verify:
java -version
Prefer curl; fall back to wget if curl is unavailable.
Detect which downloader is available:
command -v curl >/dev/null && echo "curl" || (command -v wget >/dev/null && echo "wget" || echo "none")
Using curl:
curl -fsSL https://get.nextflow.io | bash
Using wget (if curl is missing):
wget -qO- https://get.nextflow.io | bash
If neither curl nor wget is available, stop and ask the user to install one of them.
The installer drops a nextflow launcher in the current directory. Move it onto the user's PATH (confirm the destination with the user first):
chmod +x nextflow
mv nextflow ~/.local/bin/
Common alternatives are /usr/local/bin/ (may need sudo) or any directory already on PATH (echo $PATH).
nextflow -version
Confirm the reported version is 26.04 or later. Present the version to the user.
Stable Nextflow releases use calendar versioning in the form YY.MM.PATCH:
25.10.1 — patch 1 of the October 2025 release26.04.0 — first release of April 2026Compare versions as calendar dates, not semver — 26.04.0 is newer than 25.10.1.
Edge (preview) releases append the -edge suffix, e.g. 26.05.0-edge. They include unreleased features and are not recommended for production.
Switch the active channel via the NXF_EDGE environment variable:
export NXF_EDGE=1 # use edge releases
export NXF_EDGE=0 # back to stable releases (default)
This affects which release nextflow self-update and the launcher resolve to.
Pin any version (stable or edge) with NXF_VER. The launcher will download and use that exact version on the next run:
export NXF_VER=25.10.1 # pin a stable release
export NXF_VER=26.05.0-edge # pin an edge release
Unset NXF_VER (unset NXF_VER) to return to the latest version of the active channel.
When the user asks to install or run a specific version, set NXF_VER rather than reinstalling.
nextflow -version before deciding to install or upgrade.nextflow module, nextflow auth, and nextflow launch, which require this version.nextflow self-update, installing SDKMAN, or moving the nextflow launcher to a system directory.java -version writes to stderr; redirect with 2>&1 when parsing.nextflow -version after install/upgrade to confirm the result.NXF_VER instead of reinstalling.YY.MM.PATCH, not semver, so 26.04.0 is newer than 25.10.1.npx claudepluginhub nextflow-io/agent-skills --plugin nextflowGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.