Skip to main content

sane-bash

星标1
分支0
更新时间2026年7月13日 13:27

sane.bash — the modern Bash strict-mode boilerplate, an evolution of `set -euo pipefail` that adds errtrace, functrace, inherit_errexit, a stack-trace-on-failure ERR trap, an `exe()` echo-and-run helper, and opt-in xtrace. Use when generating or hardening any 'safe bash' / 'sane bash' script, production shell script, CLI wrapper, or CI/CD bash step that should fail fast with a readable stack trace. Triggers: 'sane bash', 'sane.bash', 'safe bash script', 'bash strict mode', 'set -euo pipefail', 'set -eEuo pipefail', 'errtrace', 'functrace', 'inherit_errexit', 'stack trace on failure', 'bash boilerplate', 'robust bash script', 'defensive bash'. Do NOT use for POSIX sh or non-Bash shells (relies on Bash 4.4+ features).

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly