Skip to content
Back to skills

Nextflow Hello Workflow

ASecurity

Use this skill to run a minimal Nextflow workflow through the repo-managed Java and Nextflow prefix, either locally or on the Slurm cluster. Do not use it for containerized production pipelines.

  • 38 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
ai-agentspythongojava

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill nextflow-hello-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nextflow Hello Workflow?

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

Security grade badge for Nextflow Hello Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-nextflow-hello-workflow/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-nextflow-hello-workflow)

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-hello-workflow
description: Use this skill to run a minimal Nextflow workflow through the repo-managed Java and Nextflow prefix, either locally or on the Slurm cluster. Do not use it for containerized production pipelines.
---

## Purpose
Verify that the repository-local Nextflow runtime works and execute a tiny deterministic workflow end to end, including a Slurm executor path.

## When to use
- You need a small, local Nextflow smoke test.
- You want a known-good example before adapting a larger workflow.
- You want to confirm that Nextflow can submit tiny jobs to the local Slurm cluster.

## When not to use
- You need container orchestration or production pipeline packaging.

## Inputs
- `examples/main.nf`
- Optional `--out-dir`, `--work-dir`, and executor settings
- For cluster runs: `--executor slurm` plus an optional partition

## Outputs
- Published greeting files in the chosen output directory
- JSON summary with the runtime version, produced files, and optional Slurm trace/accounting details

## Requirements
- The repo-local toolchain at `slurm/envs/nextflow-tools`
- Local filesystem write access for the work and output directories
- For cluster verification: `sbatch` and `sacct` access on the local Slurm cluster

## Procedure
1. Run `python3 skills/reproducible-workflows/nextflow-hello-workflow/scripts/run_nextflow_hello.py --out-dir scratch/nextflow-hello/results` for a local smoke path.
2. Run `python3 skills/reproducible-workflows/nextflow-hello-workflow/scripts/run_nextflow_hello.py --executor slurm --partition cpu --out-dir scratch/nextflow-hello-slurm/results --work-dir scratch/nextflow-hello-slurm/work --summary-out scratch/nextflow-hello-slurm/summary.json` for a cluster-backed smoke path.
2. Inspect the returned `files` list and the output directory contents.
3. For Slurm runs, inspect `trace_rows` and `slurm_jobs` in the summary.
4. Reuse the pattern in `examples/main.nf` when bootstrapping larger pipelines.

## Validation
- `nextflow info` succeeds through the repo-local wrapper environment.
- `nextflow run` completes without errors.
- Four greeting files are published to the output directory.
- For Slurm runs, the trace file contains native job IDs and `sacct` reports `COMPLETED` with `ExitCode 0:0`.

## Failure modes and fixes
- `java: command not found`: run through the provided wrapper script instead of calling `nextflow` directly.
- Write-path issues: switch `--out-dir` and `--work-dir` to writable locations.
- Raw `nextflow run` treats a relative script name like a remote pipeline: use the wrapper or pass an explicit local path.
- Slurm queue delays: rerun on `cpu` or adjust the partition if the cluster is busy.

## Safety and limits
- This skill verifies local and tiny Slurm-backed executor paths only.
- It does not prove container, cloud, or production-scale execution readiness.

## Examples
- `python3 .../run_nextflow_hello.py --out-dir scratch/nextflow-hello/results --work-dir scratch/nextflow-hello/work`
- `python3 .../run_nextflow_hello.py --executor slurm --partition cpu --summary-out scratch/nextflow-hello-slurm/summary.json`

## Provenance
- Nextflow installation docs: https://www.nextflow.io/docs/latest/install.html
- Nextflow first-script tutorial: https://www.nextflow.io/docs/latest/your-first-script.html
- Nextflow executor docs: https://www.nextflow.io/docs/latest/executor.html
- Slurm quick start: https://slurm.schedmd.com/quickstart.html

## Related skills
- `snakemake-toy-workflow-starter`
- `nf-core-pipeline-list`
- `slurm-job-debug-template`

Files in this skill

  • SKILL.md3.5 KB
  • assets/README.md439 B
  • assets/hello_run_outputs/Bonjour.txt15 B
  • assets/hello_run_outputs/Ciao.txt12 B
  • assets/hello_run_outputs/Hello.txt13 B
  • assets/hello_run_outputs/Hola.txt12 B
  • assets/hello_run_summary.json1.5 KB
  • assets/hello_slurm_summary.json4.1 KB
  • assets/latest-results/Bonjour.txt15 B
  • assets/latest-results/Ciao.txt12 B
  • assets/latest-results/Hello.txt13 B
  • assets/latest-results/Hola.txt12 B
  • assets/latest-slurm-results/Bonjour.txt15 B
  • assets/latest-slurm-results/Ciao.txt12 B
  • assets/latest-slurm-results/Hello.txt13 B
  • assets/latest-slurm-results/Hola.txt12 B
  • examples/README.md345 B
  • examples/main.nf399 B
  • metadata.yaml1.4 KB
  • refs.md325 B

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.

Comments

Loading comments…