💻

Bash Script Writer

Verified

by Community

Helps you write reliable bash scripts with proper error handling, argument parsing, input validation, and logging. Covers scripting best practices including set -euo pipefail, trap handlers, temporary file cleanup, and cross-platform compatibility.

bashscriptingautomationshellcli

Bash Script Writer

Write robust bash scripts with proper error handling, argument parsing, and cross-platform compatibility.

Usage

Describe the automation task and this skill will write a production-quality bash script.

Examples

  • "Write a deployment script that backs up the database first"
  • "Create a script to batch resize images in a directory"
  • "Build a setup script that installs all project dependencies"

Guidelines

  • Always start with set -euo pipefail for strict error handling
  • Use trap to clean up temporary files on exit
  • Validate all inputs and provide helpful usage messages
  • Quote all variables to handle spaces in paths
  • Use shellcheck to validate scripts before deploying