Primary finding
jq dependency not validated; JSON mode will crash if jq is unavailable
- skills/skill-security-scan/scan.sh:251-258
- skills/skill-security-scan/scan.sh:260-268
- skills/skill-security-scan/scan.sh:311
With set -e, any jq not found or error will terminate the script. The CLI offers a --json mode but does not check for jq, leading to brittle behavior on systems lacking jq.
Recommendation
When --json is requested, verify 'command -v jq' exists; if missing, print a clear error and exit 2, or fall back to emitting minimal JSON without formatting. Consider vendoring a small JSON emitter or using Python if available.