Skip to content
Back to skills

Nextflow

CSecurity

Use when writing, debugging, or optimizing Nextflow pipelines for computational chemistry, bioinformatics, or HPC workflows. Covers DSL2 syntax, process/channel/workflow composition, configuration, containers, and execution on HPC/cloud.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 4, 2026
ai-agentsgojavabashdockerawsgcpazuredebugging

Security analysis

C71/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro scans all 7 files and shows the line behind each finding

Scanned June 4, 2026

npx -y skills add Kdevos12/ALKYL --skill nextflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nextflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nextflow
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/kdevos12-nextflow/badge)](https://www.skillsdirectory.com/skills/kdevos12-nextflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nextflow
description: Use when writing, debugging, or optimizing Nextflow pipelines for computational chemistry, bioinformatics, or HPC workflows. Covers DSL2 syntax, process/channel/workflow composition, configuration, containers, and execution on HPC/cloud.
---

# Nextflow

Workflow language for scalable and reproducible computational pipelines — write once, run anywhere (local, HPC, AWS, GCP, Azure).

## When to Use This Skill

- Writing or debugging Nextflow DSL2 pipelines (`.nf` files)
- Composing processes into workflows with channel dataflow
- Configuring executors (SLURM, LSF, AWS Batch, Google Batch)
- Managing containers (Docker, Singularity/Apptainer, Conda) for reproducibility
- Building chemistry/bioinformatics pipelines (BLAST, aligners, RDKit, ORCA, Gaussian)
- Understanding `-resume` / cache behavior
- Modularizing pipelines with `include` / module aliases

## Quick Start — Minimal DSL2 Pipeline

```nextflow
// main.nf
params.input  = 'data/*.sdf'
params.outdir = 'results'

process RUN_ORCA {
    publishDir params.outdir, mode: 'copy'
    container  'quay.io/biocontainers/orca:5.0.4--h2f1ea3e_0'

    input:
    path mol

    output:
    path "*.out"

    script:
    """
    orca ${mol}.inp > ${mol}.out
    """
}

workflow {
    mols = channel.fromPath(params.input)
    RUN_ORCA(mols)
}
```

Run it:
```bash
nextflow run main.nf -profile docker -resume
```

## Router — What to Read

| Task | Reference |
|------|-----------|
| Processes, channels, input/output qualifiers, script types | `references/core-concepts.md` |
| Workflows, named workflows, pipe/and operators, modules, composition | `references/pipeline-patterns.md` |
| `nextflow.config`, executors, profiles, HPC/cloud, cache/resume | `references/execution-config.md` |
| Docker, Apptainer/Singularity, Conda, Wave, reproducibility | `references/containers-envs.md` |
| Channel factories, operators, file handling, remote files | `references/files-channels.md` |
| Chemistry/bioinformatics patterns (BLAST, RDKit, ORCA, MD) | `references/chem-bioinformatics.md` |

## Key Concepts at a Glance

| Concept | What it is |
|---------|------------|
| `process` | Runs a script/command; defines `input`, `output`, directives |
| `workflow` | Composes processes and operators via dataflow channels |
| `channel` | Asynchronous stream of values connecting processes |
| `val` / `path` | Input qualifiers — `val` for data, `path` for staged files |
| `publishDir` | Copies task output to a user-visible results directory |
| `executor` | Where tasks run: local, slurm, awsbatch, google-batch… |
| `-resume` | Reuses cached task results; skips unchanged tasks |
| `module` | Reusable `.nf` file included with `include { X } from './module'` |

## Installation

```bash
# Requires Java 11+
curl -s https://get.nextflow.io | bash
./nextflow self-update          # upgrade to latest
nextflow -version               # verify

# Enable DSL2 strict parser (recommended for new pipelines)
export NXF_SYNTAX_PARSER=v2
```

## Related Skills

- `rdkit` — Molecular preprocessing before pipeline ingestion
- `deepchem` — ML models on molecular datasets (can be wrapped in NF processes)
- `cheminformatics` — SMILES, molecular file formats (SDF, MOL2, XYZ)

Files in this skill

  • SKILL.md3.2 KB
  • references/chem-bioinformatics.md9.1 KB
  • references/containers-envs.md5.3 KB
  • references/core-concepts.md6.2 KB
  • references/execution-config.md8.1 KB
  • references/files-channels.md6.7 KB
  • references/pipeline-patterns.md5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.