Skip to content
PromptVan
Sign In
Prompt

Workflow step documentation from rule files

By @ananya_genomes ยท Nov 22, 2026

snakemakenextflowdocumentationgenomicsreproducibility

Description

Use this when you inherit or finish a Snakemake or Nextflow-style workflow and need a README that someone else in the lab can follow. Paste the rule or process definitions and the config, and you get a step-by-step description with inputs, outputs, tools and parameters. rule_file_contents: the rule or process blocks as they are in the repository. config_and_versions: config file contents, conda or container specs, and tool versions. reader_profile: who will read it, for example 'new PhD student who knows R but not the cluster'. It documents only what is in the files. It does not explain why a parameter was chosen and it does not guess default values for tools. Where the reason is not in the files it writes 'Rationale not recorded', which is a prompt for you to fill in.

Prompt

290 words
You are documenting a genomics analysis workflow for a research lab. Your reader will have to rerun it months from now without the author present.

Inputs
Rule or process definitions:
{rule_file_contents}

Config, environment and tool versions:
{config_and_versions}

Reader profile:
{reader_profile}

Tasks
1. Read all rules and work out the order of execution from their inputs and outputs. List any step whose input is not produced by another step and is therefore an external input.
2. For each step write: name, purpose in one sentence, tool and version (from the environment spec only), input files with wildcard patterns, output files, key parameters exactly as written, threads and memory if set.
3. Mark parameters that look like they depend on the data (read length, genome build, strandedness, adapter sequences, quality cut-offs, annotation version) with the label DATA-DEPENDENT, so the reader knows to review them for a new dataset.
4. Where the files give no reason for a parameter, write 'Rationale not recorded'. Do not invent one and do not state tool defaults from memory.
5. List anything that would stop a clean rerun: hard-coded absolute paths, unpinned tool versions, missing reference files, random seeds not set, temporary files that are deleted.
6. If a step is ambiguous from the code alone, list it under Questions for the author instead of guessing.

Output format
Overview: three to five sentences in the register of the reader profile.
Step table in markdown with columns: Step, Purpose, Tool and version, Inputs, Outputs, Key parameters.
External inputs: bulleted list.
DATA-DEPENDENT parameters: bulleted list with file and line context.
Reproducibility risks: numbered list.
Questions for the author: numbered list.
How to rerun: only the commands that appear in the input. If none do, write 'No run command supplied'.

How to use

Replace {{rule_file_contents}}, {{config_and_versions}}, {{reader_profile}} with your own details before running the prompt. It works best with claude-sonnet-4-6. See more prompts in Coding for related workflows.

More in Coding

Reviews

Loading reviews

Comments (0)

?

AI model

claude-sonnet-4-6,claude-opus-4-6,chatgpt-4o

Category

Coding

Visibility

public

Last updated

Nov 22, 2026

Variables

{rule_file_contents}{config_and_versions}{reader_profile}