create-workflow
Skill25 starsChanged 48 days agoApache-2.0Archived repositoryView on GitHub
INVOKE THIS SKILL IMMEDIATELY when user asks to: write/create/build a Nextflow pipeline or workflow, create any bioinformatics pipeline (RNA-seq, DNA-seq, variant calling, ChIP-seq, etc.), or compose/chain Nextflow modules (process or workflow modules) from the Nextflow Registry. This skill handles all Nextflow workflow creation tasks.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- aictrl-dev/skillstheir own version, first seen Oct 22, 2026
- TanKaizokuO/claude-skillstheir own version, first seen Oct 20, 2026
- Astatide1337/Skillstheir own version, first seen Oct 20, 2026
- buildpad-ai/skillstheir own version, first seen Oct 16, 2026
- OpenCTI-Platform/openctitheir own version, first seen Oct 8, 2026
- getlark/skillstheir own version, first seen May 18, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- OpenCTI-Platform/opencti★ 10ksame name
- ZhixiangLuo/10xProductivity★ 472same name
- aictrl-dev/skills★ 18same name
- Astatide1337/Skills★ 1same name
- buildpad-ai/skills★ 1same name
- getlark/skills★ 1same name
- TanKaizokuO/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- install-nextflowSkill
- launch-workflowSkill
- migrate-nextflow-codeSkill
- run-moduleSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. 0 are common, 17 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
17
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Create complete Nextflow workflows by composing validated modules from the Nextflow Registry.
- Distinctive: line 39
No wrapper workflow needed
- Distinctive: line 42
DO NOT write a wrapper workflow as a "fix"
- Very specific: line 43
Instead: run nextflow module view <module> to get correct parameters
- Distinctive: line 46
Only write a workflow in Step 4: when composing multiple validated modules together.
- Very specific: line 54
Use nextflow module search <term> to find Registry modules for each processing step
- Distinctive: line 60
When a workflow module matches a chain of steps in the plan, use it instead of hand-wiring the same process modules.
- Very specific: line 61
Use nextflow module view <name> to understand inputs/outputs of each module (for a workflow module: its take: inputs in call order and its …
- Distinctive: line 71
Wait for user to review and approve the proposed plan
- Distinctive: line 73
Only proceed when user explicitly agrees
- Distinctive: line 77
NEVER skip this step: After user agreement:
- Distinctive: line 83
Only proceed to next module after current one succeeds
- Distinctive: line 86
If a command fails, stop and show the user the command used and the output generated before trying something else
- Distinctive: line 94
Only after ALL modules run successfully:
- Very specific: line 103
Write the workflow script compositing all validated steps using Nextflow managed modules (no ./ prefix — Nextflow automatically downloads …
- Very specific: line 121
Use -resume flag to leverage cached results when appropriate
- Distinctive: line 122
Use absolute paths, never relative paths
- Very specific: line 125
When specifying multiple files, separate with comma and wrap in double quotes: --input "file1.fq,file2.fq"
- Distinctive: line 126
ALWAYS expand wildcards/globs to comma-separated file lists before running
- Distinctive: line 134
Prefer an existing workflow module over hand-wiring the process modules it already chains together
- Very specific: line 136
Do not write wrapper workflows to test single modules - use Skill(skill="run-module") instead
- Very specific: line 137
Use nextflow module search to find modules, then nextflow module view for details
- Distinctive: line 140
Check the task work directory using the task ID from stdout
- Distinctive: line 142
Verify input files exist and are accessible
- Distinctive: line 143
Check resource requirements (memory, CPUs) match available resources
- Very specific: line 155
Step 3 (Validate Modules): Use run-module skill for each module validation
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Nextflow Workflow Writer
Create complete Nextflow workflows by composing validated modules from the Nextflow Registry.
Modules are published under namespaces (e.g. nf-core/fastqc), and these skills compose modules from any of them.
Requires Nextflow 26.04 or later (for the nextflow module commands used during validation). Including workflow modules requires Nextflow 26.10 or later.
Registry modules come in two kinds (shown as Kind: by nextflow module view):
- Process modules — one tool, e.g.
nf-core/star/align - Workflow modules — a reusable subworkflow chaining several modules, e.g.
nf-core/fastq_align_star(STAR alignment + samtools sort/index/stats)
NEVER write a wrapper workflow just to run/test a single module.
❌ WRONG - Writing a workflow to run one module:
// DO NOT DO THIS - not even when a module run fails!
include { FASTQC } from 'nf-core/fastqc'
workflow { FASTQC(Channel.fromPath('data/*.fq.gz')) }✅ CORRECT - Use the run-module skill:
Skill(skill="run-module")The run-module skill:
- Uses
nextflow module search/viewto discover and get proper inputs/parameters - Runs modules directly via
nextflow module run <namespace>/<module> - No wrapper workflow needed
⚠️ When a module run fails due to missing args:
- DO NOT write a wrapper workflow as a "fix"
- Instead: run
nextflow module view <module>to get correct parameters - Fix the command-line arguments and re-run directly
Only write a workflow in Step 4 when composing multiple validated modules together.
4-Step Workflow Creation Process
ALWAYS follow this structured process when creating a new workflow:
Step 1: Identify Modules and Propose Plan
- Use
nextflow module search <term>to find Registry modules for each processing step - Look for workflow modules that already cover a chain of steps.
nextflow module searchrarely ranks them high enough to appear, so query the registry API with thekind=Workflowfilter:
When a workflow module matches a chain of steps in the plan, use it instead of hand-wiring the same process modules.curl -s "https://registry.nextflow.io/api/v1/modules?query=align%20reads%20STAR&kind=Workflow&limit=10" \ | python3 -c 'import json,sys; [print(r["name"], "-", r["description"]) for r in json.load(sys.stdin)["results"]]' - Use
nextflow module view <name>to understand inputs/outputs of each module (for a workflow module: itstake:inputs in call order and itsemit:outputs) - Present a plan to the user with:
- List of identified modules, marking each as process or workflow module
- Processing sequence (which module runs first, second, etc.)
- Data flow between modules (outputs → inputs)
STOP and wait for user approval before proceeding.
Step 2: User Agreement
- Wait for user to review and approve the proposed plan
- Address any questions or modifications requested
- Only proceed when user explicitly agrees
Step 3: Validate Modules ONE BY ONE (MANDATORY)
NEVER skip this step. After user agreement:
- Determine appropriate test data for validation
- For EACH module in the plan, sequentially:
- Install and run with test data: Invoke
Skill(skill="run-module") - Verify outputs - confirm expected data is produced
- Only proceed to next module after current one succeeds
- Untyped workflow modules (most nf-core ones) fail
nextflow module runwith "cannot be executed directly because it is not typed". This is expected, not a failure to fix: do NOT write a wrapper workflow for it, and do not stop to ask the user. Record it in the validation log as "validated in Step 4" and move on. It gets validated by the end-to-end run in Step 4.
- Install and run with test data: Invoke
- Log ALL module run commands and their outputs to a debug file with the
.modules-validation-prefix - If a command fails, stop and show the user the command used and the output generated before trying something else
Note: The
run-moduleskill usesnextflow modulecommands for discovery, configuration, and execution — modules are installed on-the-fly.
DO NOT proceed to Step 4 until ALL modules have been individually validated.
Step 4: Compose Final Workflow
Only after ALL modules run successfully:
- Configure
nextflow.configwith Wave + Conda:wave.enabled = true wave.strategy = 'conda,container' docker.enabled = true Write the workflow script compositing all validated steps using Nextflow managed modules (no
./prefix — Nextflow automatically downloads and installs them from the Nextflow Registry):include { MODULE_A } from 'nf-core/module_a' include { MODULE_B } from 'nf-core/module_b' workflow { MODULE_A(input_ch) MODULE_B(MODULE_A.out.results) }Workflow modules use the same include syntax (
include { FASTQ_ALIGN_STAR } from 'nf-core/fastq_align_star') and are called with positional arguments in theirtake:order, as listed bynextflow module view. For untyped workflow modules, the input descriptions fromnextflow module vieware approximate. Read the installedmodules/<namespace>/<name>/main.nfto see which process each input feeds, and build the channel shape that process expects (e.g.[meta, index]tuples). On first run, Nextflow installs each one undermodules/<namespace>/<name>/together with its dependencies in a nestedmodules/directory. Commit themodules/directory with the pipeline.- Run the complete workflow using the same test data to validate end-to-end. This is the validation step for any untyped workflow module skipped in Step 3.
Critical Guidelines
Command Execution
- Use
-resumeflag to leverage cached results when appropriate - Use absolute paths, never relative paths
File Handling
- When specifying multiple files, separate with comma and wrap in double quotes:
--input "file1.fq,file2.fq" - ALWAYS expand wildcards/globs to comma-separated file lists before running
- Reference task IDs from stdout to locate output files in work directories
Module Include Syntax
include { MOD } from 'nf-core/module'— Nextflow managed module (default). Nextflow automatically downloads and installs it from the Nextflow Registry. Always prefer this form. (nf-corehere is the namespace; substitute the actual namespace of the module you are using.)include { MOD } from './modules/nf-core/module/main.nf'— Local file path, resolved against the working directory. Only use when referencing locally modified modules.
Module Selection
- Prefer an existing workflow module over hand-wiring the process modules it already chains together
- Find workflow modules via the registry API
kind=Workflowfilter (see Step 1);nextflow module searchrarely surfaces them - Do not write wrapper workflows to test single modules - use
Skill(skill="run-module")instead - Use
nextflow module searchto find modules, thennextflow module viewfor details
Debugging Protocol
- Check the task work directory using the task ID from stdout
- Examine
.command.log,.command.err, and.command.outfiles - Verify input files exist and are accessible
- Check resource requirements (memory, CPUs) match available resources
Skill Delegation (IMPORTANT)
Delegate module-specific tasks to specialized skills using the Skill tool:
| Task | Invoke Skill |
| Install/run/test a module | Skill(skill="run-module") |
When to Delegate
- Step 3 (Validate Modules): Use
run-moduleskill for each module validation
Example: Step 3 Validation
For each module in your plan:
1. Invoke: Skill(skill="run-module") → install, run with test data, and verify outputs
2. Only proceed to next module after successThese skills contain detailed instructions for their specific tasks and ensure consistent execution patterns.
Quick Reference
Step 1: Identify process + workflow modules → Propose plan to user
Step 2: Wait for user agreement
Step 3: Validate ALL modules ONE BY ONE with test data (untyped workflow modules: defer to Step 4)
Step 4: Compose final workflow (only after Step 3 succeeds)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.

