nextflow-summary-to-galaxy-template
Read the original Nextflow source artifact, the summary-nextflow.json summary, the Nextflow-to-Galaxy reference-data brief, the Nextflow-to-Galaxy interface brief, and the Nextflow-to-Galaxy data-flow brief. Emit a gxformat2 skeleton with workflow inputs, workflow outputs, placeholder steps, rough connections, and TODO slots for later implementation Molds.
The reference-data, interface, and data-flow briefs guide the skeleton, but they do not replace source evidence. Treat the prior-step index as the working context: Nextflow source, source summary, reference-data brief, interface brief, data-flow brief, and any open questions carried forward.
Topology is this Mold’s job to settle. The output must be concrete gxformat2: workflow inputs with their final collection shapes and formats, workflow outputs, the step set, the producer→consumer edge graph, branches, and when: guards are all decided here. The upstream interface and data-flow briefs guide those decisions, but if they hedge or leave a topology choice open, this Mold makes the call from source evidence, IWC exemplars, and pattern pages — never emit a topology TODO. Wrapper resolution, by contrast, is evidence-gated, not source-gated: resolve each tool step to the tier its evidence supports — Resolved (fully concrete, no _plan_*), Identity-pinned (concrete tool_id, parameters and changeset left to the per-step Mold), or Deferred (tool_id: TODO) — as defined in galaxy-workflow-draft-format. Capture whatever you defer in the _plan_* family (_plan_state, _plan_context, _plan_in, _plan_out) so the per-step Mold has the source evidence and constraints it needs.
Source tendency: nf-core modules name their tool, pin a version, and carry the command: block, conda packages, and container tags — so steps reach Resolved when a pattern page or IWC exemplar covers the operation (fill tool_id, parameters, and port names from the worked example), and Identity-pinned when the module names the tool but its settings for this context stay open. Deferred is for domain-specific scientific tools with no covering pattern (alignment, variant calling, expression quantification, etc.) — pack _plan_context with the source command, conda specs, container tags, and pre/post conditions the per-step Mold needs to pick a wrapper. Emitting TODO over a pattern-covered recipe discards real evidence the per-step Mold cannot recover.
Output shape is gxformat2 with wrapper-tier relaxations and _plan_state / _plan_context / _plan_in / _plan_out per tool step — see galaxy-workflow-draft-format. Refinement open work for those planning fields lives in refinement.md.