scientific-container-workflows
Skill1 starsChanged 6 months agoApache-2.0View on GitHub
Design and maintain scientific container workflows, preferring
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-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
- scientific-workflow-automationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. About 0 are common, 23 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
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
- could be automatic: a setting could enforce it
- Distinctive: line 10
Use this skill when a scientific project needs containerized environments for portable builds, reproducible runs, workflow execution, or …
- Distinctive: line 27
Use this skill when:
- Very specific: line 36
Do not use this skill to replace language-level package management for simple projects.
- Distinctive: line 42
Prefer Apptainer or Singularity for scientific and HPC runtime environments.
- Distinctive: line 46
Use Docker or Podman locally for image development, dependency debugging, or CI builds when that is the practical path.
- Distinctive: line 50
Do not assume Docker is available on HPC compute nodes.
- Distinctive: line 54
When this skill applies:
- Distinctive: line 56
Read the repository AGENTS.md first, if present.
- Distinctive: line 61
Keep image recipes version-controlled.
- Distinctive: line 62
Add or run a tiny smoke test that exercises the intended runtime path.
- Distinctive: line 65
Prefer improving an existing container path over introducing a second competing container workflow.
- Distinctive: line 92
Use different names if the repository already has a clear convention.
- Very specific: line 98
Prefer checked-in definition files or documented OCI sources over undocumented .sif images.
- Very specific: line 101
Keep .sif files out of Git unless there is an exceptional, documented reason.
- Distinctive: line 104
Avoid assuming writable container filesystems at runtime.
- Distinctive: line 105
Document required host modules, drivers, filesystems, and scheduler behavior.
- Distinctive: line 112
Use Docker or Podman as local build and debugging tools when useful.
- Distinctive: line 113
Keep Dockerfiles or OCI image references pinned enough for reproducibility.
- Very specific: line 114
Avoid unpinned latest tags for public or archival workflows.
- Distinctive: line 115
Document how local images become Apptainer-compatible images when HPC runtime matters.
- Distinctive: line 117
Do not design the public workflow around Docker-only runtime assumptions if the intended users run on shared clusters.
- Very specific: line 124
Prefer HPCCM for non-trivial Apptainer or Singularity definition files, especially when the container includes compilers, MPI, CUDA, math …
- Very specific: line 128
Treat HPCCM Python recipes as the source of truth.
- Very specific: line 169
Use developer-tool-installation-policy when deciding whether HPCCM is only a personal drafting tool or a project-pinned generator that must …
- Distinctive: line 175
Document compiler, MPI, CUDA, BLAS/LAPACK, HDF5, NetCDF, and language runtime assumptions clearly.
- Distinctive: line 182
Do not hide required host modules or bind mounts in one user's job script.
- Distinctive: line 192
Keep tiny input smoke tests available for validating image and workflow integration together.
- Distinctive: line 205
Run a smoke test from the image: version checks, imports, executable startup, or one tiny workflow example.
- Very specific: line 207
Verify .gitignore excludes .sif, work directories, caches, and generated outputs unless there is a deliberate exception.
- Distinctive: line 212
Do not treat a successful container build as proof that the scientific workflow is correct.
- Distinctive: line 228
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 Container Workflows
Use this skill when a scientific project needs containerized environments for portable builds, reproducible runs, workflow execution, or HPC deployment.
Repository AGENTS.md instructions take precedence over this skill.
Purpose
Apply a pragmatic default for:
- choosing when containers are the right reproducibility mechanism;
- using Apptainer or Singularity as the preferred HPC runtime format;
- using Docker or Podman locally when convenient for development or CI;
- keeping container recipes reproducible and reviewable;
- documenting what remains outside the container boundary.
When To Use
Use this skill when:
- dependencies include compilers, MPI, CUDA, BLAS/LAPACK, HDF5, NetCDF, Python/R/Julia stacks, or system libraries;
- local and HPC environments need a shared runtime contract;
- a Nextflow or other scientific workflow should run in containers;
- container recipes or images have drifted from documented usage;
- a project needs smoke tests for a containerized workflow.
Do not use this skill to replace language-level package management for simple
projects. Use scientific-package-management when a normal Python, R, or Julia
environment is enough.
Default Position
Prefer Apptainer or Singularity for scientific and HPC runtime environments. They fit shared clusters, unprivileged execution, scheduler workflows, and site filesystem constraints better than Docker on compute nodes.
Use Docker or Podman locally for image development, dependency debugging, or CI builds when that is the practical path. Make the HPC runtime contract explicit through Apptainer or Singularity.
Do not assume Docker is available on HPC compute nodes.
Working Approach
When this skill applies:
- Read the repository
AGENTS.mdfirst, if present. - Identify whether the container is for development, CI, workflow execution, release reproducibility, or HPC runtime use.
- Find the source of truth:
Apptainer.def, an HPCCM recipe, Dockerfile, OCI image reference, or documented external image. - Keep image recipes version-controlled; keep large built images out of Git.
- Add or run a tiny smoke test that exercises the intended runtime path.
- State what is inside the image and what still depends on the host system.
Prefer improving an existing container path over introducing a second competing container workflow.
Recommended Layout
For a single image:
containers/
container.py
container.def
README.mdFor multiple images:
containers/
hpccm/
runtime.py
build.py
apptainer/
runtime.def
build.def
README.mdUse different names if the repository already has a clear convention. Keep the source-of-truth recipe and generated definition file close enough that drift is obvious in review.
Apptainer and Singularity
- Prefer checked-in definition files or documented OCI sources over
undocumented
.sifimages. - Build images from reproducible recipes when practical.
- Keep
.siffiles out of Git unless there is an exceptional, documented reason. - Bind project, data, scratch, and output paths explicitly.
- Avoid assuming writable container filesystems at runtime.
- Document required host modules, drivers, filesystems, and scheduler behavior.
Apptainer improves runtime portability, but it does not eliminate all host coupling.
Docker and Podman
- Use Docker or Podman as local build and debugging tools when useful.
- Keep Dockerfiles or OCI image references pinned enough for reproducibility.
- Avoid unpinned
latesttags for public or archival workflows. - Document how local images become Apptainer-compatible images when HPC runtime matters.
- Do not design the public workflow around Docker-only runtime assumptions if the intended users run on shared clusters.
Local container convenience should not obscure the HPC execution contract.
HPCCM-Generated Definition Files
Prefer HPCCM for non-trivial Apptainer or Singularity definition files, especially when the container includes compilers, MPI, CUDA, math libraries, Python/R/Julia, or multi-stage build logic.
Treat HPCCM Python recipes as the source of truth. Regenerate the .def file
every time the .py recipe changes. Do not hand-edit generated .def files
unless the change is immediately backported into the HPCCM recipe.
Typical generation command:
python3 containers/container.py --format singularity > containers/container.defFor recipe variants:
python3 containers/container.py \
--format singularity \
--cuda-version 12.4 \
--mpi openmpi \
> containers/container.defFreshness check for CI or local review:
python3 containers/container.py --format singularity > /tmp/container.def
diff -u containers/container.def /tmp/container.defFor multiple recipes:
for recipe in containers/hpccm/*.py; do
name=$(basename "$recipe" .py)
python3 "$recipe" --format singularity > "/tmp/$name.def"
diff -u "containers/apptainer/$name.def" "/tmp/$name.def"
donePin the HPCCM version when exact generated output stability matters. If an
HPCCM upgrade changes generated definitions, treat the .def diff as a
reviewed generated-file update.
Use developer-tool-installation-policy when deciding whether HPCCM is only a
personal drafting tool or a project-pinned generator that must be installed in
CI and documented for contributors.
Dependencies and Host Coupling
- Document compiler, MPI, CUDA, BLAS/LAPACK, HDF5, NetCDF, and language runtime assumptions clearly.
- For GPU images, document host driver and container runtime requirements.
- For MPI images, state whether MPI is fully inside the image or coupled to the host MPI stack.
- For Python/R/Julia stacks, keep language dependencies reproducible inside the image or clearly delegated to project package metadata.
- Do not hide required host modules or bind mounts in one user's job script.
GPU and MPI containers are often host-coupled. Document that coupling rather than pretending the image is fully portable.
Workflow Integration
- For Nextflow workflows, keep Apptainer/Singularity settings in profiles or config files, not scattered across shell snippets.
- Align container names, tags, and paths with workflow parameters.
- Keep tiny input smoke tests available for validating image and workflow integration together.
- Record the image URI, digest, SIF path, or definition-file commit when results must be reproducible.
Container guidance should reinforce scientific-workflow-automation and
scientific-reproducibility, not replace them.
Validation Defaults
- Regenerate
.deffiles from HPCCM recipes before building or submitting jobs. - Build the image when practical, or state clearly why build validation was not possible.
- Run a smoke test from the image: version checks, imports, executable startup, or one tiny workflow example.
- Verify
.gitignoreexcludes.sif, work directories, caches, and generated outputs unless there is a deliberate exception. - For HPC-bound images, validate the job script or workflow profile separately from the image build.
Do not treat a successful container build as proof that the scientific workflow is correct.
Anti-Patterns
- committing large
.sifimages to source control; - building containers interactively with no recipe;
- assuming Docker is available on HPC compute nodes;
- relying on unpinned
latestimages for reproducible workflows; - hiding required host modules, GPU drivers, or MPI coupling;
- mixing build caches, datasets, and durable results into the image;
- hand-editing generated
.deffiles without updating the HPCCM recipe; - treating a container as a substitute for tests.
Output Expectations
When using this skill, briefly note:
- which recipe, definition file, image, or workflow profile was changed;
- whether Apptainer/Singularity, Docker, Podman, or HPCCM is the source of truth;
- which
.defregeneration, image build, or smoke test was run; - what remains host-specific, HPC-specific, 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.

