Skip to content
Back to skills

Shellcheck Shell Script Static Analyzer

ASecurity

Run static analysis on bash and shell scripts using ShellCheck to detect syntax errors, semantic pitfalls, and portability issues. Produces machine-readable diagnostics with fix suggestions.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 2, 2026
ai-agentsgoshellbashdockergitsecurity

Works with

  • claude code
  • terminal

Security analysis

A100/100

Scanned June 2, 2026

npx -y skills add agentskillexchange/skills --skill shellcheck-shell-script-static-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shellcheck Shell Script Static Analyzer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shellcheck Shell Script Static Analyzer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-shellcheck-shell-script-static-analyzer/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-shellcheck-shell-script-static-analyzer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "ShellCheck Shell Script Static Analyzer"
slug: "shellcheck-shell-script-static-analyzer"
description: "Run static analysis on bash and shell scripts using ShellCheck to detect syntax errors, semantic pitfalls, and portability issues. Produces machine-readable diagnostics with fix suggestions."
github_stars: 39204
verification: "security_reviewed"
source: "https://github.com/koalaman/shellcheck"
category: "Code Quality & Review"
framework: "Claude Code"
tool_ecosystem:
  github_repo: "koalaman/shellcheck"
  github_stars: 39204
---

# ShellCheck Shell Script Static Analyzer

Run static analysis on bash and shell scripts using ShellCheck to detect syntax errors, semantic pitfalls, and portability issues. Produces machine-readable diagnostics with fix suggestions.

## Installation

Use the upstream install or setup path that matches your environment:
- brew install shellcheck
- conda install -c conda-forge shellcheck
- docker run --rm -v "$PWD:/mnt" koalaman/shellcheck:stable myscript
- $ brew install cabal-install

Requirements and caveats from upstream:
- From Docker Hub:
- This section describes how to build ShellCheck from a source directory. ShellCheck is written in Haskell and requires 2GB of RAM to compile.

Basic usage or getting-started notes:
- Run shellcheck yourscript in your terminal for instant output, as seen above.
- For example, in a Makefile:
- To run ShellCheck via [pre-commit](https://pre-commit.com/), add the hook to your .pre-commit-config.yaml:

- Source: https://github.com/koalaman/shellcheck
- Extracted from upstream docs: https://raw.githubusercontent.com/koalaman/shellcheck/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/shellcheck-shell-script-static-analyzer/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.