OpenParable
Skip to content
← Back to skills

Shell Check

Testing & Quality
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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/controlplaneio-fluxcd/flux-operator/blob/HEAD/config/testdata/skills/shell-check/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/shell-check, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Shell Check

Use shellcheck to analyze shell scripts for syntax errors, semantic problems, and style issues.

Usage

To check a single script:

shellcheck script.sh

To check all shell scripts in the current directory:

shellcheck *.sh

To check scripts recursively:

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)