@artale/pi-git-guard
v1.0.0
Published
Git safety guard: protect branches, scan secrets, prevent mistakes
Maintainers
Readme
@artale/pi-git-guard
Git safety guard for Pi coding agent. Prevents mistakes before they ship.
Commands
pi git-guard check → Git status, branch, staged files
pi git-guard scan → Scan staged files for secrets
pi git-guard enable → Install branch protection hooksTools
git_guard_check- Pre-flight check before commits/pushesgit_guard_scan- Detect leaked secrets in staged filesgit_guard_enable- One-time hook installation
Why
- Catch leaked API keys before they reach GitHub
- Prevent force-push disasters on main
- Warn on commits that are too large
- Zero config, opinionated defaults
Install
npm install -g @artale/pi-git-guardThen in pi:
Use @artale/pi-git-guardDetection
Scans for:
- OpenAI API keys (
sk-...) - GitHub tokens (
ghp_...) - Stripe keys (
sk_live_...,sk_test_...) - AWS access keys (
AKIA...) - Slack tokens (
xox[baprs]-...) - SSH private keys
- Hardcoded passwords/secrets
- Email:password patterns
