Skip to content
Back to skills

Cwl Commandlinetool Starter

ASecurity

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.

  • 38 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythondockerdebugginggit

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill cwl-commandlinetool-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cwl Commandlinetool Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cwl Commandlinetool Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-cwl-commandlinetool-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-cwl-commandlinetool-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cwl-commandlinetool-starter
description: 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.
---

## 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-languages`
- `cwltool`

## Procedure
1. 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`.
2. Inspect the `raw_summary` block and the materialized `greeting.txt`.
3. Use `examples/hello.cwl` and `examples/hello-job.yml` as the base for a new local `CommandLineTool`.

## Validation
- `cwltool` validates 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-languages` exists and contains `cwltool`.
- Validation failure: run `python -m cwltool --validate` on 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
- https://www.commonwl.org/user_guide/
- https://github.com/common-workflow-language/cwl-v1.2

Files in this skill

  • SKILL.md1.9 KB
  • assets/README.md78 B
  • assets/cwl_hello_summary.json1.3 KB
  • examples/README.md285 B
  • examples/hello-job.yml24 B
  • examples/hello.cwl353 B
  • metadata.yaml1 KB
  • refs.md264 B
  • scripts/run_cwl_hello.py3.2 KB
  • tests/README.md127 B
  • tests/test_run_cwl_hello.py1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…