Bash Secure Scripting

Authors, reviews, and hardens Bash scripts for the stability and security properties a linter cannot verify on its own, including strict-mode semantics and the cases errexit ignores, cleanup and locking on every exit path, injection-safe handling of untrusted input and filenames, PATH and environment control, temporary files and permissions, and credential handling, verified with shellcheck, bash -n, and the repository's formatter in a bounded loop. Use when creating or editing a shell script, a sourced shell library, or shell embedded in CI steps, container entrypoints, systemd units, cron jobs, or git hooks, and when reviewing quoting, eval, set -euo pipefail, traps, temporary files, privilege or sudo use, or secrets in shell code.

konstruktoid 886f7d7 7 files · 70.7 KB Updated

File contents

konstruktoid/agent-instructions-skills/tree/main/skills/bash/bash-secure-scripting commit 886f7d79d3

Frequently asked questions

npx skillmds@latest add konstruktoid/bash-secure-scripting