run-module
Skill21 starsChanged 4 months agoApache-2.0View on GitHub
Run Nextflow Registry modules natively using `nextflow module` commands. Use when running, listing, or getting info about Nextflow modules.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- create-workflowSkill
- install-nextflowSkill
- launch-workflowSkill
- migrate-nextflow-codeSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Run modules from the Nextflow Registry natively using nextflow module commands.
- Very specific: line 32
Run nextflow module view <module> to get the command template
- Very specific: line 40
Use nextflow module search with a natural language term — it performs similarity search on module name, description, and features:
- Distinctive: line 153
Use absolute paths: when possible
- Distinctive: line 158
DO NOT write a wrapper workflow: Instead:
- Very specific: line 172
After fastqc: "Quality scores look good.
- Very specific: line 173
After bwa/mem: "Alignment complete.
- Very specific: line 174
After fastp: "Trimming done.
- Distinctive: line 176
Always frame next-step suggestions as questions to the user.
- Distinctive: line 178
Only list or inspect output files in the work directory if the module or user specifically requires it — do not do this by default.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run Nextflow Modules
Run modules from the Nextflow Registry natively using nextflow module commands. Everything is self-contained — no external tools or MCP needed. Modules are installed on-the-fly when run.
Modules are published under namespaces (e.g. nf-core/fastqc), and the nextflow module commands work with any of them.
Requires Nextflow 26.04 or later (for the nextflow module commands).
⛔ NEVER WRITE WRAPPER WORKFLOWS
If a module fails due to missing arguments or incorrect parameters:
❌ WRONG - Writing a wrapper workflow:
// NEVER DO THIS - even if the module fails!
include { FASTQC } from 'nf-core/fastqc'
workflow { FASTQC(Channel.fromPath('*.fq.gz')) }✅ CORRECT - Use nextflow module view to get the correct parameters:
nextflow module view nf-core/fastqcWhen a module run fails:
- Run
nextflow module view <module>to get the command template - Fix the arguments based on the template
- Re-run with
nextflow module run <module> ...
NEVER create a wrapper workflow as a "fix" for missing arguments.
Step 1: Search for the Module
Use nextflow module search with a natural language term — it performs similarity search on module name, description, and features:
nextflow module search "quality control"
nextflow module search "alignment"
nextflow module search "variant calling"
nextflow module search "BAM statistics"Step 2: Get Module Info and Run Template
Once you've identified the module, get its detailed info and the command template:
nextflow module view nf-core/fastqcThis returns the module description, inputs, parameters, and the exact run command template. Use this template as the basis for your run command.
Step 3: Substitute Template Values and Run
Replace placeholder values in the template with the user's concrete values (file paths, parameters), then execute. No explicit install is needed — modules are fetched on-the-fly:
nextflow module run nf-core/fastqc \
--input "/path/to/sample.fq.gz" \
--outdir resultsContainer Provisioning with Wave + Conda
Modules require containers for their underlying tools. Configure nextflow.config to use Wave + Conda so containers are provisioned on-the-fly from each module's conda packages:
wave.enabled = true
wave.strategy = 'conda,container'
docker.enabled = trueThis avoids the need to manually build or pull container images — Wave provisions them from the module's declared conda dependencies.
Commands Reference
| Command | Description |
nextflow module search <term> | Similarity search by name/description/feature |
nextflow module view <name> | Detailed info about the module and how to run it |
nextflow module run <name> [options] | Run a module (installed on-the-fly) |
nextflow module list | List available modules |
Examples
Single-end FASTQ Quality Control
# 1. Search
nextflow module search "quality control"
# 2. Get the template
nextflow module view nf-core/fastqc
# 3. Run with concrete values
nextflow module run nf-core/fastqc \
--input "data/sample.fq.gz" \
--outdir results_fastqcPaired-end Alignment
# 1. Search
nextflow module search "bwa alignment"
# 2. Get the template
nextflow module view nf-core/bwa/mem
# 3. Run with concrete values
nextflow module run nf-core/bwa/mem \
--input "data/reads_1.fq.gz,data/reads_2.fq.gz" \
--reference "data/genome.fa" \
--outdir results_bwaComplete Workflow: Search → Info → Run
- Search for the module:
nextflow module search "quality control for FASTQ" - Get info and run template:
nextflow module view nf-core/fastqc - Substitute template placeholders with actual values from the user's data
- Run the module:
nextflow module run nf-core/fastqc \ --input "data/sample.fq.gz" \ --outdir results - Process output — Read the stdout, summarize key results, and suggest the logical next step to the user
Critical Rules
- SEARCH FIRST — Always use
nextflow module searchto find the right module - GET THE TEMPLATE — Always run
nextflow module viewbefore running a module - SUBSTITUTE TEMPLATE VALUES — Replace all placeholders with concrete values from the user's data
- NEVER write wrapper workflows — If a run fails, use
nextflow module viewto get correct args - NEVER guess parameters — Always get them from the info template
- Expand wildcards first — Use
ls data/*.fqthen comma-separate results - Quote multi-file inputs —
--input "file1,file2,file3" - Use absolute paths when possible
- ALWAYS PROCESS STDOUT OUTPUT — After a successful run, present a summary and suggest the logical next step
When Module Run Fails
DO NOT write a wrapper workflow. Instead:
- Run
nextflow module view nf-core/<module> - Compare the template with your command to find discrepancies
- Fix your
nextflow module runcommand with correct arguments - Re-run the corrected command
Step 4: Process Run Output (MANDATORY)
The nextflow module run command prints its output to stdout. After a module run, you MUST:
- Read the stdout output from the run command
- Present a clear summary of the results to the user — highlight key metrics, status, and any warnings or errors
- Infer the next step — Based on the output and the module that was run, suggest what the user might want to do next. Examples:
- After
fastqc: "Quality scores look good. Would you like to proceed to alignment withbwa/mem?" - After
bwa/mem: "Alignment complete. Would you like to sort the BAM withsamtools/sortor get stats withsamtools/stats?" - After
fastp: "Trimming done. Would you like to align the trimmed reads?"
- After
Always frame next-step suggestions as questions to the user.
Only list or inspect output files in the work directory if the module or user specifically requires it — do not do this by default.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

