Skip to main content

bash-script-generator

Generates production-ready bash scripts with best practices for automation, error handling, and logging.

Install this skill

or
32/100

Security score

The bash-script-generator skill was audited on Mar 19, 2026 and we found 10 security issues across 2 threat categories, including 3 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

medium line 47

Template literal with variable interpolation in command context

SourceSKILL.md
47```bash
medium line 90

Template literal with variable interpolation in command context

SourceSKILL.md
90```bash
medium line 131

Template literal with variable interpolation in command context

SourceSKILL.md
131```bash
high line 173

Template literal with variable interpolation in command context

SourceSKILL.md
173- Always quote variables: `"${var}"` not `$var`
high line 174

Template literal with variable interpolation in command context

SourceSKILL.md
174- Validate inputs: `[[ "${val}" =~ ^[a-zA-Z0-9/_.-]+$ ]] || die "Invalid"`
medium line 194

Template literal with variable interpolation in command context

SourceSKILL.md
194```bash
high line 295

Template literal with variable interpolation in command context

SourceSKILL.md
295- **GOOD**: Use arrays for command construction: `cmd=(rm -rf "$USER_INPUT"); "${cmd[@]}"`
low line 309

External URL reference

SourceSKILL.md
309- [GNU Bash Manual](https://www.gnu.org/software/bash/manual/bash.html)
low line 310

External URL reference

SourceSKILL.md
310- [ShellCheck](https://www.shellcheck.net/)
low line 311

External URL reference

SourceSKILL.md
311- [Google Shell Style Guide](https://google.github.io/styleguide/shellguide.html)
Scanned on Mar 19, 2026
View Security Dashboard