# ShellCheck

Preserve shell argument boundaries

Lint scripts for the shell declared by their shebang. Review unquoted expansions, accidental word splitting and discarded exit statuses at the exact diagnostic line.

Category: Code quality
Languages: Shell

## Standard evidence

Rubric v1 · 4/8 verified · 4 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — SC2086 flags unquoted expansions that allow word splitting and glob expansion; intentional splitting has separately documented treatments. Reviewed 2026-11-28. [Source](https://www.shellcheck.net/wiki/SC2086)
- **Measurement** (verified) — ShellCheck attaches rule identifiers and source locations to findings and documents machine-readable reporting options. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/koalaman/shellcheck/master/README.md)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
- **CI enforcement** (verified) — Upstream's sample Travis job runs ShellCheck directly; warnings cause the check to fail. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/koalaman/shellcheck/master/README.md)
- **Getting started** (verified) — Upstream gives installation methods, a shellcheck script invocation and examples of findings. The CI example explains how a script with warnings fails the check. Reviewed 2026-11-28. [Source](https://raw.githubusercontent.com/koalaman/shellcheck/master/README.md)
- **Real-world adoption** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use ShellCheck in this repository to meet this standard: Preserve shell argument boundaries. Lint scripts for the shell declared by their shebang. Review unquoted expansions, accidental word splitting and discarded exit statuses at the exact diagnostic line. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Seikika package

[shell (Seikika kit)](https://github.com/seikika/seikika/tree/89eb0a2fcd2ffe67151df43f2a062ebc8a1e497c/packages/shell)

Add github:seikika/seikika/packages/shell@89eb0a2fcd2ffe67151df43f2a062ebc8a1e497c to the include list in .seikika/seikika.yaml. Copy check-shell.py from the pinned package into tools/ and set the command parameter to invoke it on your shell script paths. Run seikika install .seikika from the checkout root.

## References

- [Tool documentation](https://www.shellcheck.net/)
- [Agent skill](/skills/shellcheck/SKILL.md)
