
Bash Script Validator
This validates bash and shell scripts using a layered approach: syntax checks with bash -n, ShellCheck static analysis with smart fallbacks when it's missing, and custom rules for security and portability issues. You get subsection-level citations for every fix, which is genuinely useful when you need to justify changes in review or understand the underlying pattern. The rerun policy is strict, requiring validation after each batch of fixes until the script stabilizes or you explicitly document why warnings remain. It handles constrained environments gracefully, falling back to syntax-only checks when ShellCheck isn't available and telling you exactly what coverage you lost. Good for CI gates or cleaning up legacy scripts where you need an audit trail.
- skills.sh installs
- 734
- GitHub stars
- 337
- last updated
- Aug 21, 2026
Install
$ npx -y skills add akin-ozer/cc-devops-skills --skill bash-script-validator --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/akin-ozer/cc-devops-skills
- Categories
- DevOps & CI/CD, Code Review & Quality, Debugging, Automation & Workflows, CLI & Terminal
- First seen
- Jun 3, 2026
More from akin-ozer/cc-devops-skills
All 31- Gitlab Ci Validator725
- K8s Yaml Validator715
- Helm Validator712
- Bash Script Generator710
- Jenkinsfile Validator706
- Terragrunt Validator703
- K8s Yaml Generator694
- Azure Pipelines Generator692
- Github Actions Validator686
- Gitlab Ci Generator686
- Github Actions Generator684
- Terraform Validator681
- Azure Pipelines Validator680
- Terraform Generator680
- Helm Generator674
- Makefile Validator671
- Makefile Generator659
- Promql Generator656
- Promql Validator646
- Fluentbit Generator640
- Logql Generator640
- Fluentbit Validator637
- Loki Config Generator622
- Ansible Validator1.6K