Secrets Guard: Safe AI Vibe-Coding
by Penny Dinh
Hardens AI-built apps with secret protection, gitleaks automation, and a 30-point production launch gate.
Free
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
| Level | Check | Status | Evidence |
|---|---|---|---|
| Red | No keys in source code | PASSED | git ls-files returned 0 matches for .env/.pem |
| Red | Clean Git history | PASSED | gitleaks detect scanned 14 commits: 0 leaks |
| Red | Private APIs check auth | PASSED | /api/admin/settings returned 401 Unauthorized |
| Red | Price server-side | PASSED | Modifying amount in checkout request was ignored |
| Red | No keys leak to client | PASSED | grep of build folder found 0 secret prefixes |
| Red | HTTPS + Headers | PASSED | 301 Redirect active; HSTS and X-Frame-Options set |
| Yellow | Admin brute-force | MISSING | 10 failed logins allowed without delay |
| Yellow | Dependency scan | PARTIAL | npm audit found 2 moderate vulnerabilities |
Fixed during this session:
- Added
X-Robots-Tag: noindexto all/adminroutes. - Updated
.gitignoreto explicitly block*.dbanduploads/.
Next steps
- Revoke the deploy tokens used during this session in your GitHub and Railway settings.
- Add rate limiting to your login route to address the brute-force vulnerability.
- 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
gitleaksbefore 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
- Setup Phase initializes
.gitignore, gitleaks hooks, and GitHub Actions for continuous secret scanning. - Development Phase manages key entry through a local
127.0.0.1page to keep values out of logs and chat history. - Audit Phase executes the "Gate 1" checklist on localhost to verify auth, IDOR protection, and input sanitization.
- 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
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
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 13 days ago
- Free with an Agensi account
- Software
Python
Git
Permissions
What's inside
Frequently Asked Questions
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.