# Shell Check

> Shell Check is an Agent Skill for testing & quality published in the controlplaneio-fluxcd/flux-operator repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

- Skill name: `shell-check`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/controlplaneio-fluxcd/flux-operator/blob/HEAD/config/testdata/skills/shell-check/SKILL.md
- Repository: controlplaneio-fluxcd/flux-operator (707 GitHub stars when collected)

## SKILL.md

# 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`)

---

Source: https://www.openparable.com/skill/testing-quality/shell-check (OpenParable). Cite the canonical URL above.
