Workflow Clinic is a GSoC 2026 project focused on improving the portability, reproducibility, and cloud-readiness of scientific workflows.
The project aims to analyze workflow languages such as Nextflow and Snakemake, convert them into a common intermediate representation called WorkflowBundle, and identify workflow portability issues through automated validation and analysis.
By using a common workflow model inspired by the DAW (Data Analysis Workflow) metamodel, Workflow Clinic can reason about workflows independently of their original language and provide consistent diagnostics, recommendations, and future repair capabilities.
Scientific workflows are often tightly coupled to specific execution environments, storage systems, schedulers, or local infrastructure.
This can make workflows difficult to:
- Share
- Reproduce
- Port across platforms
- Execute in cloud environments
- Integrate with GA4GH-compliant services
Workflow Clinic aims to help workflow authors identify and resolve these issues before deployment.
- Nextflow support
- Snakemake support
- Common WorkflowBundle representation
- Portability diagnostics
- Storage validation
- Resource validation
- Metadata validation
- Workflow structure validation
- Rule-based workflow checks
- AI-assisted diagnostics
- Confidence-based recommendations
- Suggested fixes
- Automated transformations
- Validation of generated fixes
git clone https://github.com/revaarathore11/ga4gh_workflow_clinic_gsoc_2026-.git
cd ga4gh_workflow_clinic_gsoc_2026-python -m venv .venv
source .venv/bin/activatepip install -e ".[dev]"pytestruff check .ruff format .Workflow Clinic includes an AI Critic Agent to enrich diagnostic findings with AI-powered, cloud-readiness remediation advice.
To enable the AI to perform a high-level review of your workflow (discovering complex logic bugs, implicit dependencies, or anti-patterns) AND generate detailed remediation advice for all findings, run the examine command with the --enhance (-e) flag:
workflow-clinic examine main.nf --enhanceNote: If no API key is provided, --enhance will fall back to using a local knowledge base for basic remediation and will skip the high-level audit discovery phase.
The AI Critic is engineered with strict system prompts that feed it all previously discovered static issues (e.g., W001, W002). This prevents the LLM from duplicating existing findings, forcing it to focus exclusively on discovering complex bugs, shell scripting anti-patterns, and implicit dependencies that static rules miss. It is also strictly instructed not to hallucinate issues just to fill quotas.
You can configure any supported LiteLLM model (e.g., OpenAI, Gemini, Anthropic, Groq, Mistral) by setting the respective environment variable.
Create a .env file in your working directory to permanently save configuration details:
OPENAI_API_KEY="sk-proj-..."
# CLINIC_MODEL="gpt-4o" # Optional: Overrides the auto-detected default modelModel Auto-Detection: The AI Critic automatically resolves the appropriate default model based on which API key is present in your environment (e.g., OPENAI_API_KEY defaults to gpt-4o-mini).
To view all supported providers and their default models, run:
workflow-clinic list-modelsYou can temporarily override the default model directly on the command line:
workflow-clinic examine main.nf --enhance --model gpt-4o --api-key sk-proj-...Warning
Security Notice: Avoid passing explicit --api-key arguments in shared or public environments as they can leak into your shell history (history) or process listings (ps aux). Using environment variables or a .env file is the highly recommended security practice.
Current target languages:
- Nextflow
- Snakemake
Potential future support:
- CWL
- WDL
Workflow Files
β
Parser
β
WorkflowBundle
β
Rule Engine
β
AI Critic
β
Doctor
Workflow Clinic is being designed with future compatibility in mind for:
- GA4GH TES
- GA4GH WES
- GA4GH TRS
- Workflow Run RO-Crate
This project is licensed under the Apache License 2.0.