check_git_safety
Scan staged or target files for conflict markers, hardcoded secrets, and debug statements to prevent unsafe commits.
Instructions
Scan target or staged files for conflict markers (<<<<<<<), hardcoded secrets/API keys, and leftover debug statements. Use before git commit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional array of specific file paths to scan. Defaults to all staged/modified Git files. | |
| project_path | No | Optional target project directory path. |