← all policies/FailproofAI/policies
━━ git
warn-git-clean
Warns before git clean deletes untracked directories (-d) or ignored files (-x / -X)
━━ when it runs
PreToolUsebefore the tool call runs. a denial here means the command never executes at all.
watchesnarrowed to the Bash tool
this pack enforces: a match returns a real denial rather than being recorded and discarded. what the denial then does depends on the event above.
━━ parameters
these are the publisher's declared defaults, and a pack policy runs on them. values saved from the dashboard are stored under the bare policy name and are not currently read back for pack policies.
destructiveFlagsstring[]default["d","x","X"]git clean flag letters that make it worth warning about, checked alongside --force. Narrow to ['x','X'] to allow `git clean -fd`, or widen with 'f' to warn on a bare `git clean -f`.
━━ install
this one is opt-in. taking the pack without flags leaves it off until you tick it, so install it by name if you want only this.
- just this policy
- the whole pack
- turn just this off
- pick from a list
- uninstall the pack
ships in FailproofAI/policies · v2.0.0 · source ↗
━━ also in git
- block-push-masterBlock pushing to main/master
- block-force-pushPrevent force-pushing to any branch
- block-work-on-mainBlock git commits and merges on main/master branch
- warn-git-amendWarns before amending git commits, which rewrites history
- warn-git-stash-dropWarns before permanently deleting stashed changes
- warn-all-files-stagedWarns before staging all working tree files with git add -A / . / --all