scientific-workflow-automation
Skill1 starsChanged 6 months agoApache-2.0View on GitHub
Design and maintain reproducible scientific workflows, with
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- developer-tool-installation-policySkill
- git-refactor-hygieneSkill
- project-repository-setupSkill
- scientific-accelerator-portabilitySkill
- scientific-build-systemsSkill
- scientific-ciSkill
- scientific-cli-benchmarkSkill
- scientific-cli-designSkill
- scientific-code-styleSkill
- scientific-container-workflowsSkill
- scientific-data-analysis-and-visualizationSkill
- scientific-data-managementSkill
- scientific-documentationSkill
- scientific-io-and-data-formatsSkill
- scientific-notebook-workflowsSkill
- scientific-numerics-reviewSkill
- scientific-package-managementSkill
- scientific-parallel-debuggingSkill
- scientific-performance-portabilitySkill
- scientific-profilingSkill
- scientific-release-and-publicationSkill
- scientific-reproducibilitySkill
- scientific-reviewSkill
- scientific-testingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
35 rules. About 0 are common, 27 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈27
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when a scientific project needs an explicit, reproducible workflow for running multi-step analyses, simulations, …
- Distinctive: line 29
Use this skill when:
- Very specific: line 38
Do not use this skill to replace ordinary build, test, or lint commands.
- Distinctive: line 44
Prefer Nextflow for multi-step scientific workflows that need to scale from laptops to HPC clusters or cloud environments, especially when …
- Very specific: line 49
Use make only for small local developer tasks such as make test, make format, or make clean.
- Distinctive: line 54
Do not force Nextflow onto a one-command script or a simple repository quality workflow.
- Distinctive: line 59
When this skill applies:
- Distinctive: line 61
Read the repository AGENTS.md first, if present.
- Distinctive: line 65
Keep scientific code in scripts, modules, or executables.
- Distinctive: line 71
Prefer incremental workflow extraction over rewriting the whole project at once.
- Very specific: line 99
Keep main.nf readable and focused on high-level workflow structure.
- Very specific: line 100
Put executor, container, resource, and profile settings in nextflow.config or included config files.
- Distinctive: line 103
Use named processes with clear input and output contracts.
- Distinctive: line 104
Keep process scripts small.
- Very specific: line 106
Prefer explicit publishDir behavior over unclear output side effects.
- Distinctive: line 114
Add HPC or cloud profiles only when the project has a real execution target.
- Distinctive: line 115
Keep site-specific account, partition, queue, reservation, and filesystem details out of public generic defaults.
- Distinctive: line 117
Document which profile was tested and which values users must adapt.
- Distinctive: line 118
Keep resource requests conservative for example profiles.
- Distinctive: line 124
Prefer containers for workflow-level portability when dependencies are non-trivial.
- Distinctive: line 126
Keep container image names, tags, or digests explicit.
- Distinctive: line 128
Document when host modules, MPI, GPU drivers, or filesystem mounts remain outside the container boundary.
- Very specific: line 130
Avoid relying on unpinned latest images for reproducible workflows.
- Distinctive: line 138
Avoid overwriting durable results without an explicit output directory.
- Distinctive: line 140
Keep temporary work directories separate from published outputs.
- Distinctive: line 148
Add a tiny local smoke test when the workflow is part of the repository contract.
- Distinctive: line 150
Keep CI workflow tests small enough to run on generic hosted runners.
- Distinctive: line 153
Do not put full scientific production runs in default CI.
- Distinctive: line 168
Prefer fixing the smallest reproducible failing example before scaling out.
- Distinctive: line 185
Run the smallest available workflow example locally when practical.
- Very specific: line 186
Run nextflow run main.nf -profile local or the repository's documented equivalent for smoke validation.
- Distinctive: line 188
Check that generated outputs land in documented output directories.
- Very specific: line 189
Verify .gitignore excludes work directories, caches, and generated results.
- Distinctive: line 190
If Nextflow is unavailable, validate the file structure and state that runtime validation was not performed.
- Distinctive: line 195
When using this skill, briefly note:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Scientific Workflow Automation
Use this skill when a scientific project needs an explicit, reproducible workflow for running multi-step analyses, simulations, postprocessing, or data pipelines.
Repository AGENTS.md instructions take precedence over this skill.
Purpose
Apply a pragmatic default for:
- turning ad hoc shell history into version-controlled workflow entry points;
- choosing when Nextflow is the right orchestration layer;
- separating workflow orchestration from scientific application code;
- defining inputs, outputs, parameters, profiles, and run directories clearly;
- making small local runs and larger HPC or cloud runs share one workflow contract.
When To Use
Use this skill when:
- a project has several dependent run, transform, analysis, or reporting steps;
- a workflow should run locally and scale to batch schedulers or cloud executors;
- reruns, caching, or resume behavior matter;
- containerized execution should be part of the reproducibility story;
- users need one documented command path instead of many manual shell steps.
Do not use this skill to replace ordinary build, test, or lint commands. Use
project-repository-setup, scientific-build-systems, or scientific-ci for
those concerns.
Default Position
Prefer Nextflow for multi-step scientific workflows that need to scale from laptops to HPC clusters or cloud environments, especially when the workflow benefits from containers, caching, executor profiles, and clean failure diagnostics.
Use make only for small local developer tasks such as make test,
make format, or make clean. Do not make a large scientific pipeline depend
on a fragile Makefile when Nextflow's process model, executor support, and
resume semantics are a better fit.
Do not force Nextflow onto a one-command script or a simple repository quality workflow. The orchestration layer should earn its complexity.
Working Approach
When this skill applies:
- Read the repository
AGENTS.mdfirst, if present. - Identify the scientific workflow steps, data dependencies, parameters, and expected outputs.
- Decide whether the workflow is simple enough for scripts or needs Nextflow.
- Keep scientific code in scripts, modules, or executables; keep Nextflow responsible for orchestration.
- Define a tiny local test input before scaling to larger data or HPC runs.
- State what the workflow runs, how to resume it, and which profiles were validated.
Prefer incremental workflow extraction over rewriting the whole project at once.
Recommended Layout
A practical Nextflow-oriented layout is:
main.nf
nextflow.config
bin/
helper-script
conf/
local.config
hpc.config
data/
README.md
examples/
tiny/
results/
.gitignoreAdjust to existing repository conventions. Do not create empty directories without near-term use.
Nextflow Structure
- Keep
main.nfreadable and focused on high-level workflow structure. - Put executor, container, resource, and profile settings in
nextflow.configor included config files. - Expose scientific parameters through
params, not hardcoded paths. - Use named processes with clear input and output contracts.
- Keep process scripts small; move reusable logic into version-controlled scripts or package code.
- Prefer explicit
publishDirbehavior over unclear output side effects.
The workflow should make it obvious which files are inputs, intermediates, published results, and logs.
Profiles and Portability
- Provide a small
localprofile for laptop or CI smoke tests. - Add HPC or cloud profiles only when the project has a real execution target.
- Keep site-specific account, partition, queue, reservation, and filesystem details out of public generic defaults.
- Document which profile was tested and which values users must adapt.
- Keep resource requests conservative for example profiles.
Profile names should describe execution context, not one user's machine.
Containers and Environments
- Prefer containers for workflow-level portability when dependencies are non-trivial.
- Keep container image names, tags, or digests explicit.
- Separate container build instructions from workflow execution instructions.
- Document when host modules, MPI, GPU drivers, or filesystem mounts remain outside the container boundary.
- Avoid relying on unpinned
latestimages for reproducible workflows.
Container guidance should align with scientific-container-workflows if that
skill is added later.
Inputs, Outputs, and Resume Behavior
- Provide a tiny input set that exercises the workflow quickly.
- Avoid overwriting durable results without an explicit output directory.
- Explain how
-resumeis expected to work and when users should not use it. - Keep temporary work directories separate from published outputs.
- Record command line, profile, config, code version, and key parameters when outputs are meant to be auditable.
Nextflow's cache is useful, but it is not a substitute for clear provenance.
Validation and CI
- Add a tiny local smoke test when the workflow is part of the repository contract.
- Keep CI workflow tests small enough to run on generic hosted runners.
- Validate syntax and a minimal execution path before claiming the workflow is usable.
- Do not put full scientific production runs in default CI.
- Capture enough logs to diagnose failed processes without rerunning the whole workflow blindly.
For larger workflows, CI should prove structure and basic behavior, not scientific completeness.
Failure Diagnostics
- Preserve Nextflow logs and failed process command files when diagnosing.
- Inspect
.command.sh,.command.err,.command.out, and trace reports when available before changing resource settings. - Distinguish workflow wiring errors from scientific-code failures.
- Change one dimension at a time: input, container, profile, resource request, or process script.
- Prefer fixing the smallest reproducible failing example before scaling out.
Clear failure diagnosis is one of the reasons to prefer Nextflow over a large chain of shell scripts.
Anti-Patterns
- encoding the main scientific workflow as a long, fragile
Makefile; - putting substantial scientific logic directly inside process heredocs;
- hardcoding user-local absolute paths;
- committing Nextflow work directories, caches, or generated results;
- publishing example configs with real private accounts or allocations;
- adding many profiles that nobody has tested;
- treating
-resumeas a provenance mechanism.
Validation Defaults
- Run the smallest available workflow example locally when practical.
- Run
nextflow run main.nf -profile localor the repository's documented equivalent for smoke validation. - Check that generated outputs land in documented output directories.
- Verify
.gitignoreexcludes work directories, caches, and generated results. - If Nextflow is unavailable, validate the file structure and state that runtime validation was not performed.
Output Expectations
When using this skill, briefly note:
- which workflow steps, parameters, profiles, or outputs were added or changed;
- whether Nextflow is now the primary workflow engine or only one option;
- which tiny local run or syntax checks were validated;
- what remains site-specific, large-scale, or untested.
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.

