lint_script
Pre-scan an entire shell script for destructive commands before saving or running it. Returns line-numbered warnings for risky operations like rm -rf /, curl | sudo bash, and disk writes.
Instructions
Safety-scan a WHOLE shell script (multi-line text) BEFORE writing or running it. Runs the same offline danger engine as check_command_safety over every logical line (comments/shebangs stripped, backslash-continuations joined) and returns each destructive or risky command with its line number: rm -rf /, curl | sudo bash, dd/mkfs/shred to a device, chmod -R 777 /, git push --force, CI ${{ }}-injection sinks, and more. Ideal for an AI agent to pre-scan a script it just generated before saving or executing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The full shell-script text to scan (may contain many lines). |