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_requirements function 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 shfmt when 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)

Do not use this skill for:

  • POSIX sh-only scripts (no Bash-specific features allowed)
  • Small one-liners or trivial command snippets (respond inline instead)
Related skills

More from asteroid-belt-llc/skills

Installs
13
GitHub Stars
3
First Seen
Jan 22, 2026