Script

Apply strict-mode Bash scripting conventions: minimal validation, concise logic, executable scripts, and no unnecessary comments or echoes.

SDiamante13 Updated 7 repo stars

File contents

STARTER_CHARACTER = 💻

  • Use #!/usr/bin/env bash as shebang.
  • Always use set -euo pipefail for safety and debugging.
  • Keep scripts minimal: no unnecessary comments or echoes.
  • Only do minimal input validation; print a usage message to stderr and exit if inputs are missing or invalid.
  • Do not check for installed commands if failure will be obvious on use.
  • Make script executable: chmod +x <script>.
  • Prefer concise, direct logic over verbosity.

SDiamante13/dotfiles/tree/main/claude/skills/script commit e357970b5a

Frequently asked questions

npx skillmds@latest add sdiamante13/script