# Shell Check

> Run shellcheck to lint shell scripts for common issues and best practices

- Skill: `controlplaneio-fluxcd/shell-check` (Agent Skill)
- Install (CLI): `npx skillmds@latest add controlplaneio-fluxcd/shell-check`
- Raw SKILL.md: https://api.skillmd.com/api/skills/controlplaneio-fluxcd/shell-check/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: controlplaneio-fluxcd (https://skillmd.com/u/controlplaneio-fluxcd)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/controlplaneio-fluxcd/shell-check

---


# Shell Check

Use [shellcheck](https://www.shellcheck.net/) to analyze shell scripts
for syntax errors, semantic problems, and style issues.

## Usage

To check a single script:

```bash
shellcheck script.sh
```

To check all shell scripts in the current directory:

```bash
shellcheck *.sh
```

To check scripts recursively:

```bash
find . -name '*.sh' -exec shellcheck {} +
```

## Common Options

- `-e CODE` — exclude a specific warning (e.g. `shellcheck -e SC2086 script.sh`)
- `-s SHELL` — specify the shell dialect (`bash`, `sh`, `dash`, `ksh`)
- `-f FORMAT` — output format (`tty`, `json`, `gcc`, `diff`)

