scan_staged
Scan git-staged files for security vulnerabilities before committing to catch issues early. Reports only on newly-staged lines by default.
Instructions
Scan git-staged files for security vulnerabilities before committing. Run this before every commit to catch issues early. No input needed — automatically reads staged files. Diff-aware by default: reports only issues on newly-staged lines (set diff_aware:false for whole staged files).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: markdown (human) or json (machine-readable for agents) | markdown |
| diff_aware | No | Report only findings on newly-staged lines (true, default) vs. all lines in staged files (false) |