Bash Script Validator
Validation pipeline for shell scripts that layers syntax checks, ShellCheck analysis, and custom security and portability rules.
- CCM score
- 58 of 100
- skills.sh installs
- 788
- GitHub stars
- 345
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers Bash and POSIX shell scripts through
bash -norsh -n, ShellCheck, and custom checks, with iterative rerun after each fix batch - Includes
scripts/validate.shas the primary entrypoint andscripts/shellcheck_wrapper.shas a cached fallback, plus reference docs for ShellCheck codes and common mistakes - Enforces exit codes of 0 for clean, 1 for warnings, and 2 for errors, and requires each fix to cite a specific documentation subsection
- Designed for pre-CI review of
.shfiles and for constrained environments where ShellCheck is missing or the target file is read-only
Install
$ npx -y skills add akin-ozer/cc-devops-skills --skill bash-script-validator -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Bash Script Validator
Overview
This skill validates Bash and POSIX shell scripts with layered checks:
- Syntax validation (
bash -norsh -n) - ShellCheck static analysis (system binary or wrapper fallback)
- Custom security, portability, and optimization checks
Use the default flow below, then branch to fallbacks only when the environment is constrained.
Trigger Guidance
Use this skill when the request includes script quality, linting, syntax checking, or shell portability work.
Trigger Phrases
- "Validate this bash script"
- "Lint this
.shfile" - "Find security issues in this shell script"
- "Why does this script fail ShellCheck?"
- "Make this script POSIX compliant"
- "Review this shell script before CI"
Non-Trigger Examples
- General Linux command questions with no script file
- Kubernetes, Terraform, or pipeline validation tasks that do not involve shell scripts
- Pure prose editing tasks
Deterministic Execution Model
Run commands from this skill directory:
cd devops-skills-plugin/skills/bash-script-validator
Step 1: Preflight
Details
- Repository
- github.com/akin-ozer/cc-devops-skills
- Categories
- CLI & Terminal, Code Review & Quality
- First seen
- Jun 3, 2026
Questions
Can I validate bash scripts with ShellCheck using a Claude skill?
Yes, the bash-script-validator skill validates, lints, audits, or fixes bash, shell, and .sh scripts via ShellCheck. It runs a syntax check first, then ShellCheck static analysis, then custom security and portability checks.
How do I install the bash-script-validator skill?
Run npx -y skills add akin-ozer/cc-devops-skills --skill bash-script-validator -y in a project. After installing, the agent can validate a script and explain each ShellCheck finding with a suggested fix.
Does bash-script-validator need ShellCheck installed?
ShellCheck is used when available: the skill can use a system binary or a wrapper fallback. If neither works, it still runs syntax and custom checks and reports the reduced coverage.
Where does bash-script-validator rank in its category?
It is in the CLI & Terminal category and ranks in the top 100 there. Other skills near it include herdr, gws-shared, opentui, cf-cli and pnpm.
More from akin-ozer/cc-devops-skills
All 31- Dockerfile Generator785
- Gitlab Ci Validator771
- K8s Yaml Validator765
- Helm Validator762
- Bash Script Generator754
- Jenkinsfile Validator752
- Terragrunt Validator747
- K8s Yaml Generator737
- Github Actions Validator734
- Azure Pipelines Generator733
- Gitlab Ci Generator728
- Github Actions Generator727
- Terraform Generator726
- Azure Pipelines Validator723
- Terraform Validator723
- Helm Generator717
- Makefile Validator711
- Makefile Generator697
- Promql Generator696
- Promql Validator688
- Logql Generator682
- Fluentbit Generator679
- Fluentbit Validator676
- Loki Config Generator662
Similar to Bash Script Validator
More CLI & Terminalshellcheck-configurationSkillwshobson/agents12.3K installsSetup and triage guide for ShellCheck static analysis, covering shell script linting, suppressions, and portability.
shellSkillpproenca/dot-skills717 installsShell scripting guide of 49 rules for safe, portable, and maintainable bash and POSIX sh scripts.
shellcheckPluginTheBushidoCollective/han201 starsValidation and quality enforcement for Bash and shell scripts using ShellCheck with portability and error handling skills.
dockerfile-validatorSkillakin-ozer/cc-devops-skills834 installsDeterministic Dockerfile validation that reports severity-ranked findings with explicit fallbacks when tools are unavailable.
makefile-validatorSkillakin-ozer/cc-devops-skills711 installsDeterministic Makefile validation that layers GNU make syntax checks, mbake formatting, and custom security rules.
bash-masterSkilljosiahsiegel/claude-plugin-marketplace467 installsExpert Bash scripting guide covering safety, portability across Linux, macOS, WSL, Git Bash, and containers.