- Home
- Skills
- Code Quality & Review
- Pre-Push Leak Guard
Pre-Push Leak Guard
Automated Git hygiene audit to catch AI agent configs, credentials, and scratch files before they reach your repository.
$9
Works with the AI Agents you already use
Pre-Push Leak Guard
Example session with this skill installed
Audit my staged files for any leaks and fix my .gitignore before I push to main.
- Read your context and instructions
- Compiled the pre-push leak guard
I have scanned the repository for sensitive files, AI configurations, and temporary artifacts. I found several files that should not be tracked.
Leak Audit Report
| Category | Path / Line | Git State | Safe Remediation |
|---|---|---|---|
| AI Agent Configs | CLAUDE.md | Staged | git rm --cached CLAUDE.md |
| Sensitive Env | .env.local | Untracked | Add to .gitignore |
| Scratch Scripts | scratch/fix_bug_v1.py | Staged | git rm --cached -r scratch/ |
| Dumps & Logs | dump.sql | Tracked | git rm --cached dump.sql |
Verdict: [BLOCKED - LEAKS DETECTED]
I have performed the following actions
1.
Untracked Sensitive Files: Removed CLAUDE.md, dump.sql, and the scratch/ directory from the Git index. Your local files remain intact.
2.
Hardened .gitignore: Added blocks for .env*, *.sql, and agent-specific metadata folders to prevent re-staging.
3. Verified: Re-ran scripts/scan-repo-leaks.py. 0 findings remaining.
Next steps
- Review the updated
.gitignoreto ensure it covers your specific environment needs. - Run
git commit -m "chore: cleanup sensitive files and update gitignore"now that the audit is clear. - If
dump.sqlcontained production data and was pushed previously, rotate any contained credentials immediately.
Connects securely to your tools. The creator never sees your data.
About this skill
Strict pre-commit and pre-push Git hygiene guard that catches AI agent configs (CLAUDE.md, GEMINI.md, .agents/), internal specs, scratch scripts, archives (.zip/.tar.gz), dumps, .env files, and accidental credential assignments before they leak to GitHub. Includes 100% read-only Python 3 and Windows PowerShell scanners, prohibited-pattern taxonomy, stack-ready .gitignore presets (Next.js, Laravel, Python), and worked remediation examples.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.
Requires Python 3 or PowerShell. Cannot delete history from remote remotes; only prevents new leaks from being pushed. Does not audit application business logic.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Git
Permissions
100% read-only Git inspection (git status, git diff --cached, git ls-files). Never modifies or deletes files and makes zero network calls.