Skip to content
akin-ozer avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers Bash and POSIX shell scripts through bash -n or sh -n, ShellCheck, and custom checks, with iterative rerun after each fix batch
  • Includes scripts/validate.sh as the primary entrypoint and scripts/shellcheck_wrapper.sh as 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 .sh files 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 -y

Installs 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:

  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

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

Similar to Bash Script Validator

More CLI & Terminal