concise-shell-prose
Keep shell comments and help output concise; preserve machine directives and data.
Why
Source should contain executable behavior and rare concise constraints. Comment walls and operational runbooks in help heredocs duplicate documentation.
Fix
Keep necessary comments within two nonempty lines and 40 words, and literal help output within three nonempty lines and 40 words. Move longer instructions to existing documentation; use an exact-code justified exception for a required longer contract.
Examples
if [[ ${1:-} == --help ]]; then cat << 'DOC'Usage: appConfigure the account.Prepare the workspace.Read the deployment runbook.DOCficat > settings.ini << 'DATA'[service]name = 'worker'mode = 'safe'region = 'west'DATA# First explanation.# More explanation.# Yet more explanation.run# The remote token expires before this lock can be retried.runFiles
**/*.sh**/*.bash