Pre-Push Leak Guard

    1

    Automated Git hygiene audit to catch AI agent configs, credentials, and scratch files before they reach your repository.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    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

    CategoryPath / LineGit StateSafe Remediation
    AI Agent ConfigsCLAUDE.mdStagedgit rm --cached CLAUDE.md
    Sensitive Env.env.localUntrackedAdd to .gitignore
    Scratch Scriptsscratch/fix_bug_v1.pyStagedgit rm --cached -r scratch/
    Dumps & Logsdump.sqlTrackedgit 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 .gitignore to 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.sql contained 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files

    100% read-only Git inspection (git status, git diff --cached, git ls-files). Never modifies or deletes files and makes zero network calls.

    Listed1 day ago

    What's inside

    Frequently Asked Questions

    This skill acts as a specialized safety net that catches AI-generated metadata, scratch scripts, and secret keys that are often overlooked by standard .gitignore files during agentic coding sessions.

    The skill is agent-agnostic; it is designed to detect artifacts from any AI assistant, including specific files like CLAUDE.md, .agents/ directories, and various LLM-generated prompt transcripts.

    No, the scanner performs a read-only audit of your staged and untracked files to identify risks; it only modifies your Git index or .gitignore file when you explicitly trigger the remediation commands.

    You will receive the core scanning scripts for both Python and PowerShell environments, a library of risk classification patterns, and a guide for integrating the tool into your Git workflow.

    This skill focuses on local pre-push prevention; if sensitive data has already been pushed to a remote repository, the tool will identify the leak and provide instructions for credential rotation and history scrubbing.

    New in Code Quality & Review