check-bash
Check bash script syntax without executing. Use before committing bash scripts or when verifying syntax correctness.
When & Why to Use This Skill
This Claude skill provides a specialized utility for static syntax validation of Bash scripts. It allows developers to verify the structural integrity and correctness of shell scripts without actual execution, preventing potential runtime errors and ensuring code reliability before deployment or version control commits.
Use Cases
- Pre-commit Validation: Use this skill to check Bash scripts for syntax errors before committing code to a repository, ensuring only valid scripts enter the codebase.
- CI/CD Pipeline Integration: Incorporate syntax checking as an automated quality gate in continuous integration workflows to catch shell script regressions early.
- Legacy Script Auditing: Quickly verify the syntax of older or inherited shell scripts during refactoring or system migrations without the risk of accidental execution.
- Safe Debugging: Validate complex scripts with nested loops or conditionals to identify missing brackets or malformed commands in a safe, non-executable environment.
| name | check-bash |
|---|---|
| description | Check bash script syntax without executing. Use before committing bash scripts or when verifying syntax correctness. |
Check Bash Syntax
Validate syntax without execution.
.claude/skills/check-bash/scripts/check-bash.sh script1.sh script2.sh
For combined fix + check, use fix-line-endings-check-bash.