Lightlines
By wshobson

bash-defensive-patterns

wshobson12.5k installs

Make your Bash scripts safer when things fail.

What it does

Guides the agent in writing Bash scripts that handle errors, validate inputs, and clean up safely.

When to use it

Use when writing production automation, CI/CD scripts, system utilities, or scripts that must handle edge cases safely.

How to use it

It changes how the agent writes Bash scripts by applying strict mode, input validation, cleanup, and error-path testing.

What you provide

  • An existing project

Latest review

What you need · 1

The script patterns use Bash as their execution shell.


Access · 0

No additional actions listed.