# Pre-commit Secret Hook

> One command installs a git pre-commit hook that blocks commits containing AWS/GitHub/Slack/Stripe keys — prints file:line, never the secret.

Pre-commit Secret Hook is a paid AI agent skill on Agensi by Nenad Zivotic, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.1
- Last updated: 2026-10-20
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pre-commit-secret-hook
- Tags: security

## About this skill

Run `node install.js` in any repo and it writes .git/hooks/pre-commit + secret-scan.js. On every commit, staged files are checked for AWS keys, GitHub tokens (classic + fine-grained), Slack tokens, Stripe keys, Google API keys, private-key blocks, and generic api_key/password assignments. Findings print as file:line [pattern] only — secret values are never shown. Appends safely to an existing hook with backup; uninstalls cleanly. Zero dependencies.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Pre-commit Secret Hook skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Pre-commit Secret Hook do?

One command installs a git pre-commit hook that blocks commits containing AWS/GitHub/Slack/Stripe keys — prints file:line, never the secret.

### Which AI agents support Pre-commit Secret Hook?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Pre-commit Secret Hook?

Connect your AI agent to Agensi through MCP, then ask it to use Pre-commit Secret Hook on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
