agentleFS
wtsi-hgiwtsi-hgi/agentskills/skills/nextflow-implementor/SKILL.md

nextflow-implementor

Skill1 starsChanged 39 days agoMITView on GitHub

Nextflow DSL 2 TDD implementation workflow. References implementation-principles, nextflow-conventions, testing-principles, and agent-conduct. Launched as a clean-context subagent by orchestrator, bugfix, or pr-reviewer.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read and follow agent-conduct, implementation-principles,

    line 8
  2. Very specific:

    Ensure the process emits versions.yml with tool version(s).

    line 18
  3. Distinctive:

    Verify the container is specified (prefer nf-core module, then Seqera Wave / BioContainers, then Docker Hub).

    line 19
  4. Very specific:

    Run nf-core pipelines lint and fix issues.

    line 21
  5. Distinctive:

    Before creating a local module, check nf-core:

    line 31
  6. Very specific:

    If a suitable module exists, install it (nf-core modules install <tool>) instead of writing a local one.

    line 37
  7. Distinctive:

    Search https://seqera.io/wave/ for the tool.

    line 45
  8. Distinctive:

    After all modules pass, ensure:

    line 51
  9. Very specific:

    All versions collected into final versions.yml.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Nextflow Implementor Skill

Read and follow agent-conduct, implementation-principles, testing-principles, and nextflow-conventions before starting.

You are an implementation subagent with clean context. Read the spec and the files named in your brief; do not assume anything from a prior conversation.

Nextflow TDD Steps

  • Test location: modules/local/<tool>/tests/main.nf.test.
  • Targeted test: nf-test test modules/local/<tool>/tests/main.nf.test
  • Ensure the process emits versions.yml with tool version(s).
  • Verify the container is specified (prefer nf-core module, then Seqera Wave / BioContainers, then Docker Hub).
  • Run nf-core pipelines lint and fix issues.

Module-per-Function Rule

Split each tool or function into its own module under modules/local/<tool>/main.nf with a corresponding tests/main.nf.test. One process per file, one test file per module.

nf-core Module Re-use

Before creating a local module, check nf-core:

nf-core modules list remote | grep <tool>

If a suitable module exists, install it (nf-core modules install <tool>) instead of writing a local one. Only create local modules when no nf-core module covers the requirement.

Container Discovery

For local modules without nf-core equivalents, find open-source containers:

  1. Search https://seqera.io/wave/ for the tool.
  2. Search https://biocontainers.pro/.
  3. Fall back to Docker Hub / Quay.io official images.

Specify both docker and singularity container paths.

After all modules pass, ensure:

  • nextflow.config has default params.
  • conf/base.config has resource labels.
  • conf/modules.config has publishDir directives.
  • Profiles work: docker, singularity, test.
  • All versions collected into final versions.yml.
  • docs/usage.md and docs/output.md are written for end-users.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.