Secrets Guard: Safe AI Vibe-Coding

    by Penny Dinh

    1

    Hardens AI-built apps with secret protection, gitleaks automation, and a 30-point production launch gate.

    Free

    Security scanned

    Works with the AI Agents you already use

    Secrets Guard: Safe AI Vibe-Coding

    Example session with this skill installed

    Run the launch gate check on my current project and give me the report.

    • Read your context and instructions
    • Compiled the secrets guard

    I have completed the 30-point security audit for your project. I ran gitleaks, tested the API endpoints for auth gaps, and verified the deployment configuration.

    Security Launch Gate Report

    LevelCheckStatusEvidence
    RedNo keys in source codePASSEDgit ls-files returned 0 matches for .env/.pem
    RedClean Git historyPASSEDgitleaks detect scanned 14 commits: 0 leaks
    RedPrivate APIs check authPASSED/api/admin/settings returned 401 Unauthorized
    RedPrice server-sidePASSEDModifying amount in checkout request was ignored
    RedNo keys leak to clientPASSEDgrep of build folder found 0 secret prefixes
    RedHTTPS + HeadersPASSED301 Redirect active; HSTS and X-Frame-Options set
    YellowAdmin brute-forceMISSING10 failed logins allowed without delay
    YellowDependency scanPARTIALnpm audit found 2 moderate vulnerabilities

    Fixed during this session:

    • Added X-Robots-Tag: noindex to all /admin routes.
    • Updated .gitignore to explicitly block *.db and uploads/.

    Next steps

    1. Revoke the deploy tokens used during this session in your GitHub and Railway settings.
    2. Add rate limiting to your login route to address the brute-force vulnerability.
    3. Change the admin password now that the site is live.

    Ready to go live. 2 yellow items should be done in the first week.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Shipping an AI-built app often leads to accidental API key leaks in chat history, exposed .env files on GitHub, and insecure payment logic. This skill implements a rigorous security protocol for developers using AI agents like Claude Code or Cursor to build and deploy software. It moves beyond generic advice by enforcing a specific set of rules that prevent sensitive data from ever entering the model's context while ensuring the final product is hardened against common web vulnerabilities.

    What it does

    • Secret Management prevents API keys from being pasted into chat by creating local entry pages or secure terminal prompts.
    • Automated Scanning runs gitleaks before every commit and push to ensure no secrets enter the git history.
    • Infrastructure Hardening configures HTTPS, security headers, and VPS firewalls while ensuring databases are never exposed to the public internet.
    • Payment Verification enforces server-side signature checks for Stripe and PayOS webhooks to prevent order spoofing.
    • Deployment Safety separates code from data to prevent redeploys from wiping out user uploads or databases.

    How it works

    1. Setup Phase initializes .gitignore, gitleaks hooks, and GitHub Actions for continuous secret scanning.
    2. Development Phase manages key entry through a local 127.0.0.1 page to keep values out of logs and chat history.
    3. Audit Phase executes the "Gate 1" checklist on localhost to verify auth, IDOR protection, and input sanitization.
    4. Deploy Phase runs the "Gate 2" checklist on the live domain to confirm SSL, security headers, and closed ports.

    Frameworks & tools

    Supports Claude Code, Cursor, and standard terminals. Uses gitleaks, pre-commit hooks, and GitHub Actions. Compatible with Railway, Hostinger, and standard VPS environments.

    Why this beats prompting it yourself

    Standard prompts often fail to prevent the model from printing secrets to the logs or suggesting insecure "quick fixes" like client-side price handling. This skill provides a rigid execution framework that requires the agent to run specific terminal commands to prove security before marking a task as complete.

    Use cases

    • Auditing a project before the final handover to a client.
    • Securely connecting Stripe, Telegram, or OpenAI APIs without leaking keys.
    • Hardening a new VPS for a production launch.
    • Recovering and cleaning a repository after a secret has been committed.

    Known limitations

    Does not provide automated DDoS mitigation. Cannot prevent physical access to the user's machine. Requires local installation of gitleaks for full commit protection.

    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

    Free to use

    No account required to browse

    Frequently Asked Questions

    The Secrets Guard enforces a rigid protocol that prevents sensitive keys from ever entering the model's chat history or logs, and uses automated hooks to block accidental commits of exposed credentials.

    This skill is designed for use with terminal-based agents like Claude Code, as well as AI-powered IDEs like Cursor and standard CLI environments.

    You receive the core security execution framework, the 'Gate 1' and 'Gate 2' production checklists, and pre-configured automation scripts for gitleaks and GitHub Actions.

    No, this skill is designed to work with your existing workflow on platforms like Railway, Hostinger, or any standard VPS by hardening the infrastructure you already use.

    The Setup Phase initializes local environment protections and git hooks, while the Audit and Deploy phases use a 30-point checklist to verify the app is hardened before and after it goes live.

    New in Security

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    Free