bash-script-generator
Installation
SKILL.md
Structured Bash Script Generator
What You'll Do
- 📥 Gather the script's goal, required positional/flag arguments, environment variables, and external program dependencies
- đź§± Produce a Bash 3.2-compatible script skeleton with a
check_requirementsfunction that validates inputs and dependencies kindly - 🛡️ Ensure the script sets safe defaults (
set -euo pipefail), quotes expansions, and keeps logic portable to macOS/Linux Bash 3.2 - ✨ Format the script with
shfmtwhen available and return a polished result ready for immediate use
When to Use This Skill
Use this skill whenever the user asks for a new bash script or a major refactor of an existing script and they expect:
- Guardrails around required arguments, environment variables, or external tools
- Friendly, actionable error messages when prerequisites are missing
- Compatibility with older Bash versions (macOS default 3.2)