Basic information
About write-script-bash
MUST use when writing Bash scripts.
write-script-bash is an agent skill listed in the AddMCP.net directory, published by windmill-labs. Runtime: Rust. The repository has 18,350 GitHub stars. Source code is hosted on github.com. Related topics: ai-agents, airflow-alternative, internal-tools, open-source, orchestration.
Overview
What is write-script-bash?
name: write-script-bash description: MUST use when writing Bash scripts.
CLI Commands
Place scripts in a folder. After writing, run:
wmill script generate-metadata- Generate .script.yaml and .lock fileswmill sync push- Deploy to Windmill
Use wmill resource-type list --schema to discover available resource types.
Bash
Structure
Do not include #!/bin/bash. Arguments are obtained as positional parameters:
# Get arguments
var1="$1"
var2="$2"
echo "Processing $var1 and $var2"
# Return JSON by echoing to stdout
echo "{\"result\": \"$var1\", \"count\": $var2}"
Important:
- Do not include shebang (
#!/bin/bash) - Arguments are always strings
- Access with
$1,$2, etc.
Output
The script output is captured as the result. For structured data, output valid JSON:
name="$1"
count="$2"
# Output JSON result
cat << EOF
{
"name": "$name",
"count": $count,
"timestamp": "$(date -Iseconds)"
}
EOFEnvironment Variables
Environment variables set in Windmill are available:
# Access environment variable
echo "Workspace: $WM_WORKSPACE"
echo "Job ID: $WM_JOB_ID"Videos
Tutorials, guides, and showcases related to write-script-bash. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In