akin-ozer avatar

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-code

Installs into .claude/skills of the current project.

Files

Bash Script Validator

Overview

This skill validates Bash and POSIX shell scripts with layered checks:

  1. Syntax validation (bash -n or sh -n)
  2. ShellCheck static analysis (system binary or wrapper fallback)
  3. 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 .sh file"
  • "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
1akin-ozer avatarterragrunt-validatorakin-ozer/cc-devops-skillsValidate, lint, audit, or check Terragrunt .hcl/terragrunt.hcl files, stacks, modules, compliance.703skills.sh installs
2akin-ozer avatarazure-pipelines-validatorakin-ozer/cc-devops-skillsValidate, lint, audit, or review azure-pipelines.yml — syntax, security, best practices.680skills.sh installs
3akin-ozer avatarmakefile-validatorakin-ozer/cc-devops-skillsValidate, lint, audit, or check Makefiles and .mk files for errors.671skills.sh installs
4web-infra-dev avatarchrome-bridge-automationweb-infra-dev/midscene-skillsVision-driven browser automation using Midscene Bridge mode. Operates entirely from screenshots — no DOM or accessibility labels required. Can interact with all661skills.sh installs
5akin-ozer avatarloki-config-generatorakin-ozer/cc-devops-skillsGenerate/create Loki configs — ingester, querier, compactor, ruler, S3/GCS/Azure backends.622skills.sh installs
6yzlnew avatartikz-flowchartyzlnew/infra-skillsCreates professional TikZ flowcharts with standardized themes, including Google Material-like and Anthropic-inspired options.278skills.sh installs