Cwl commandlinetool starter
Skill ma-compbio-lab/SkillFoundry/skills/reproducible-workflows/cwl-commandlinetool-starter
Use this skill to author and run a minimal Common Workflow Language CommandLineTool and one-step workflow with cwltool. Do not use it for containerized production execution or complex scatter/gather workflows.From its SKILL.md
npx -y skills add ma-compbio-lab/SkillFoundry --skill cwl-commandlinetool-starterAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.9 KB, 403 tokens by cl100k_base, as published. Nobody here has run it
Purpose
Run a small local CWL example end to end and use it as a starter for command-line tool wrapping.
When to use
- You need a verified local CWL example.
- You want a starter for wrapping a simple command-line tool in CWL.
When not to use
- You need cluster scheduling or production orchestration.
- You need Docker-only workflows.
Inputs
- A CWL workflow or command-line tool file
- A YAML or JSON job input file
- Optional output directory and summary path
Outputs
- The workflow output file
- A JSON run summary with the parsed CWL outputs and the rendered greeting text
Requirements
slurm/envs/workflow-languagescwltool
Procedure
- Run
python3 skills/reproducible-workflows/cwl-commandlinetool-starter/scripts/run_cwl_hello.py --message "hello from cwl" --workspace scratch/cwl/workspace --summary-out scratch/cwl/summary.json. - Inspect the
raw_summaryblock and the materializedgreeting.txt. - Use
examples/hello.cwlandexamples/hello-job.ymlas the base for a new localCommandLineTool.
Validation
cwltoolvalidates and runs successfully.- The summary records a greeting text and an output file named
greeting.txt.
Failure modes and fixes
- Missing runtime: verify
slurm/envs/workflow-languagesexists and containscwltool. - Validation failure: run
python -m cwltool --validateon the CWL file before debugging execution.
Safety and limits
- This skill disables containers and runs a local toy example only.
- Extend carefully before wrapping destructive commands or large data paths.
Provenance
What ships with it: 10 files
8.1 KB alongside SKILL.md, 2 of them executable
assets/
- cwl_hello_summary.json1.3 KB
- README.md78 B
examples/
- hello.cwl353 B
- hello-job.yml24 B
- README.md285 B
scripts/
- run_cwl_hello.pyruns3.2 KB
tests/
- README.md127 B
- test_run_cwl_hello.pyruns1.4 KB
- metadata.yaml1.0 KB
- refs.md264 B