Bash Script Validator
ListedThis tool analyzes Bash scripts for syntax errors and potential issues, ensuring your code runs smoothly and avoids unexpected behavior.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add akin-ozer/cc-devops-skills --skill bash-script-validator -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
akin-ozer
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill failed 1 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.
No undeclared network calls: failed
Contacts 1 host that is neither well-known infrastructure nor declared in the skill's frontmatter: www.shellcheck.net.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
Hosts contacted
www.shellcheck.netundeclaredWhat it found
- devops-skills-plugin/skills/bash-script-validator/scripts/validate.sh:276contacts www.shellcheck.net
print_info "See https://www.shellcheck.net/wiki/ for detailed explanations"
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned akin-ozer/cc-devops-skills at 276af751e6.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- 276af751e6
- Scanned
- 17 files, 4,718 lines
About this skill
What it does
The bash-script-validator skill analyzes bash scripts for common syntax errors and potential issues. It checks for things like missing semicolons, incorrect variable usage, and unbalanced brackets. This helps ensure the script is executable and functions as intended before deployment or execution.
When to use it
- Pre-deployment Checks: Validate a bash script before deploying it to a production environment to catch errors early.
- Automated CI/CD Pipelines: Integrate validation into your continuous integration pipeline to prevent broken scripts from being merged.
- Script Debugging: Quickly identify syntax and structural problems when troubleshooting a failing bash script.
- Code Reviews: Use it as part of code review processes for bash scripts within a team.
Key capabilities
- Syntax error detection
- Variable usage checks
- Bracket balancing verification
Example prompts
- "Validate this bash script: [script content]"
- "Check the syntax of my bash file named 'deploy.sh'."
- "Can you analyze this script for potential errors? [script content]"
Tips & gotchas
The skill focuses on basic syntax and structural checks; it does not perform semantic analysis or test the script's logic. Ensure your scripts are properly formatted and contain necessary shebang lines (e.g., #!/bin/bash) for accurate validation.