add-subworkflow

Scaffold Bactopia subworkflows with main.nf, tests, and configuration files.

521|81|Updated Feb 22, 2019
One-click install
npx skills add https://github.com/bactopia/bactopia --skill add-subworkflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-subworkflow
Source: https://github.com/bactopia/bactopia/tree/main/.claude/skills/add-subworkflow
Command: npx skills add https://github.com/bactopia/bactopia --skill add-subworkflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a reusable Bactopia subworkflow that orchestrates one or more existing modules. It creates a main.nf file wired with GroovyDoc comments and a standard test scaffold, reducing boilerplate and ensuring a consistent interface for workflows.

Core Features & Use Cases

  • Scaffold a subworkflow that wires modules together and provides a GroovyDoc-enabled main.nf.
  • Generate tests for the subworkflow, including nf-test specs, nextflow.config, and test configuration files.
  • Operate in an interactive fashion to determine which modules are included and how test data should be discovery-driven.
  • Ideal for adding new subworkflows to glue existing modules into a cohesive orchestration layer.

Quick Start

Ask the AI to scaffold a new Bactopia subworkflow; it will create main.nf and the accompanying tests and config files.

Frequently Asked Questions about add-subworkflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a Nextflow subworkflow to orchestrate existing modules?

You can scaffold a subworkflow by interactively selecting existing modules to include, which generates a GroovyDoc-enabled main.nf file alongside test skeletons and configuration scaffolds for orchestration.

What is the best way to add tests when creating a new Bactopia subworkflow?

Generating nf-test specs, a nextflow.config file, and test configuration files automatically during the subworkflow scaffolding process ensures consistent test coverage and reduces boilerplate.

Do I need existing modules before scaffolding a Bactopia subworkflow?

Yes, you need existing modules because this scaffolding process is designed to glue existing modules together into a coherent orchestration layer with integrated testing.

Can I use interactive prompts to configure how test data is discovered for nf-test?

Yes, the scaffolding process operates interactively to determine which modules are included and how test data should be discovery-driven for the generated nf-test specifications.

What files are generated when scaffolding a subworkflow in Nextflow?

Scaffolding a subworkflow generates a GroovyDoc-enabled main.nf file, nf-test skeletons, and configuration scaffolds to reduce boilerplate and ensure a consistent workflow interface.