bash-review

Review bash scripts for security issues and best practices using shellcheck.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/janewilkin/bismuth-digital-llc-web --skill bash-review-janewilkin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bash-review
Source: https://github.com/janewilkin/bismuth-digital-llc-web/tree/main/.claude/skills/bash-review
Command: npx skills add https://github.com/janewilkin/bismuth-digital-llc-web --skill bash-review-janewilkin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify and flag common errors, security vulnerabilities, and portability issues in bash scripts, ensuring they are robust and reliable.

Core Features & Use Cases

  • Security Auditing: Detects critical security flaws like command injection and unsafe eval.
  • Error Handling Checks: Verifies the presence of essential error-handling directives (set -e, set -u, set -o pipefail).
  • Portability Analysis: Flags bashisms that may cause issues on different systems.
  • Use Case: Before deploying a new deployment script, run this Skill to catch potential bugs and security risks.

Quick Start

Use the bash-review skill to analyze all bash scripts in the current directory.

Frequently Asked Questions about bash-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my bash scripts for security vulnerabilities and command injection risks?

To check bash scripts for security vulnerabilities, you can use automated analysis to detect critical flaws like command injection and unsafe eval, alongside warnings for improper quoting and error handling. This process ensures scripts are robust before deployment.

What is the best way to find bashisms and portability issues in shell scripts?

Finding bashisms and portability issues in shell scripts involves analyzing the code to flag syntax that may cause failures on different systems. This portability analysis identifies non-compliant constructs that hinder cross-platform execution.

How do I lint bash scripts to ensure proper error handling?

To lint bash scripts for proper error handling, the analysis verifies the presence of essential directives like `set -e`, `set -u`, and `set -o pipefail`. This catches missing safeguards and highlights warnings for unhandled errors.

Can I review all .sh files in my repository at once?

Yes, you can review all .sh files in your repository at once. The analysis operates on specified files, recent changes, or all .sh files in the directory, applying shellcheck and manual analysis to identify best practice violations.

Does shellcheck detect all common pitfalls in bash scripting?

Shellcheck detects many common pitfalls in bash scripting, but combining it with manual analysis provides deeper security auditing. This dual approach identifies critical vulnerabilities, portability concerns, and best practice suggestions that automated linting might miss.