/skills:migrate-nf-core-static-typesfrom skills
Use when migrating, or reviewing a PR that migrates, an nf-core / Nextflow pipeline to typed parameters or static types — e.g. "add parameter types", "typed params block", "strict typing", "nextflow.enable.types", "convert to records", bumping to Nextflow >= 26.04, or nf-core lint failing on nextflow_config / schema_params after moving params into main.nf.
Ships in skills. 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.
None: SKILL.md is the whole skill.
Migration happens in two stages. Ship them as separate PRs:
params {} block in main.nf. This changes little and is safe to ship first.nextflow.enable.types = true, typed process and workflow I/O, and records. This is a large refactor.Source: https://docs.seqera.io/nextflow/tutorials/static-types. Re-read it before starting, because the syntax is still changing.
| File | Change |
|---|---|
main.nf | Add params { name: Type = default } above the entry workflow {}. Base it on nextflow_schema.json and reuse each property's description as a // comment. |
nextflow.config | Keep only the params the config itself reads (see rule below). Delete the rest. Set manifest.nextflowVersion = '!>=26.04.0'. |
conf/modules.config | Wrap every ext.args/ext.prefix/ext.* that reads params.* in a closure { ... }. |
nextflow_schema.json | Keep in sync. Add "format": "file-path" / "directory-path" for every Path param. |
subworkflows/local/utils_nfcore_<pipeline>_pipeline/main.nf | Make helper functions (validateInputParameters, genomeExistsError, getGenomeAttribute, toolCitationText, …) take params as arguments instead of reading the global params. |
workflows/<pipeline>.nf | Update the call sites of those helpers. |
.nf-core.yml | Under lint:, set nextflow_config: false and schema_params: false, with a # TODO comment, until nf-core/tools supports typed params. Open a tracking issue. |
.github/workflows/nf-test.yml | Set NXF_VER to "26.04.0" (quoted) and "latest-everything". |
README.md, CHANGELOG.md | Update the Nextflow badge. Add a changelog entry and list the Nextflow bump under Dependencies; it breaks users on older versions. |
conf/test*.config usually needs no change, because config-level param overrides still work.
The config reads it at resolution time → it goes in nextflow.config only. Otherwise → it goes in the main.nf params block only.
Params that belong in config:
outdir, publish_dir_mode, trace_report_suffix, monochrome_logscustom_config_*, config_profile_*genome, igenomes_base, igenomes_ignorepublishDir (enabled: params.save_x, path: without a closure)Never declare a param in both places. The two defaults drift apart, and reviewers will flag it.
| Value | Type |
|---|---|
| file, directory, DB, remote URL to a file | Path (not String), with format: file-path / directory-path in the schema |
| optional with no default | Type?, e.g. String?, Path? |
| flag | Boolean. It defaults to false when no default is given. |
| integer / decimal | Integer / Float. Match the schema's integer / number. |
size like '25.MB' | consider MemoryUnit |
| required input | input: Path, non-nullable with no default |
ext.args needs closuresWithout a closure, ext.args is evaluated at config time. Params declared only in the main.nf block have no value yet, so they render as null on default runs. CLI overrides still work, which hides the bug.
// before
ext.args = "-k ${params.kmers}"
// after
ext.args = { "-k ${params.kmers}" }
Only start this after Stage 1 is merged. Check the tutorial first for whether typed and legacy (nf-core/modules) processes can be mixed. Expect to migrate modules/local, subworkflows/local and workflows/ first.
nextflow.enable.types = true to every script that uses typed processes or workflows.tuple val(meta), path(x) becomes record(id: String, x: Path), path becomes Path, and val becomes a concrete type. Use Bag<Path> for collections.file(), files(), stdout(), env() and eval(), wrapped in record(...).record Sample { id: String; ... } types. Give take: types (ch: Channel<Sample>) and give emit: typed assignments..out (assign results instead), .set{} / .tap{}, the | / & dataflow operators, implicit it, Channel.from (use channel.of), and the each qualifier (use combine()).params.* inside process scripts. Pass them as inputs or through ext.args.Useful tools:
nextflow lint . must pass before you start.manifest.nextflowVersion and CI NXF_VER are both >= 26.04.0.nextflow.config and main.nf.nextflow_schema.json with a matching type, and vice versa.Path, and its schema entry has format.params.* read in conf/modules.config is inside a closure, unless that param stays in config..nf-core.yml have a TODO and a tracking issue.ext.args in .command.sh.What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/drawio-nf-core-metromapsUse when creating, updating, or exporting an nf-core / Nextflow pipeline metro map (subway-style workflow diagram) with draw.io (app.diagrams.net) through Claude in Chrome: redrawing the map for a new release, adding or removing module stations and lanes, editing an existing draw.io metro map, drawing a map of how several pipelines chain (stations = pipelines with their logos), or exporting light and dark PNG/SVG versions into docs/images. Not for maps drawn with Inkscape, the nf-metro plugin, or other tools.
/plan-nf-core-releasesUse when creating, revising, or re-prioritising a release roadmap (ROADMAP.md) for an nf-core / Nextflow pipeline: deciding what goes into the next version, splitting a large feature across releases, choosing minor vs major (breaking) version, or mapping open GitHub issues, PRs, and a maintainer's to-do list onto upcoming releases. Do not trigger for writing the CHANGELOG, cutting/tagging a release, or implementing roadmap items.
Other plugins' skills for the same job
/redesignUse this skill only when the user explicitly asks to redesign code, such as "redesign this code", "redesign this module", or invokes $redesign. Do not trigger for ordinary code review, refactoring, cleanup, naming, documentation, or comment-writing requests unless the user specifically asks for a redesign.
npx claudepluginhub vagkaratzas/skills --plugin skills