migrate-nextflow-code

Installation
SKILL.md

Migrate Nextflow Code

Migrate Nextflow pipeline code to satisfy newer language requirements. Each migration is detection-driven: a tool reports what must change, you apply behavior-preserving fixes, then re-run the tool until it is clean.

Requires Nextflow 26.04 or later (for the nextflow lint command and the strict syntax parser, which is the default from 26.04 onward).

nf-core pipelines — check the template version before starting. If the pipeline has a .nf-core.yml, check which version of nf-core/tools last generated its template. If nf_core_version is unspecified or less than 3.0.0, stop. Tell the user to upgrade their template first (nf-core pipelines sync) before attempting any code migrations. This will resolve syntax errors in the template code and provide a cleaner baseline.

How to use this skill

This SKILL.md is an index. Identify which migration the user needs from the table below, then read the matching reference file for the full detect → fix → verify procedure before doing any work. Each reference file is self-contained.

Migration Use when the user… Read this file
Strict syntax …has strict syntax errors, or asks to run nextflow lint to find and fix errors references/strict-syntax.md
Topic channels …wants to replace the ch_versions plumbing (or another channel threaded through every workflow) with a topic channel references/topic-channels.md
Static typing …wants to add static types — typed process/workflow inputs and outputs, records (replacing tuples), or typed params references/static-typing.md
Workflow outputs …wants to replace publishDir directives with workflow outputs — a top-level output {} block and a publish: section in the entry workflow references/workflow-outputs.md
Installs
14
GitHub Stars
21
First Seen
Aug 22, 2026
migrate-nextflow-code — nextflow-io/agent-skills