# secret hygiene

> Keep API keys, tokens and passwords out of repos and logs, add CI guardrails, and rotate first when one leaks.

secret hygiene is a free AI agent skill on Agensi by kktestdev. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [kktestdev](https://www.agensi.io/creators/supakit-kitjanabumrungsak)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-20
- Security: scan passed (2026-10-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/secret-hygiene

## About this skill

Secrets leak through three doors: the repo, the logs, and a slow response once they are out. This skill gives your agent a fixed routine for each one, so it does not improvise around API keys, tokens, passwords or connection strings.

### What it does
- **Keeps secrets out of the repo**: env files ignored, example configs with placeholders, nothing hard-coded.
- **Keeps secrets out of logs**: redacts before logging, never prints a whole config or request object.
- **Sets up CI guardrails on day one**: secret scanning in pre-commit and CI, before the first leak instead of after.
- **Handles a leak rotation-first**: rotate and revoke the credential before cleaning git history, because the history rewrite never un-leaks it.

### When it triggers
Adding a new key, logging near credentials, committing config, or reacting to a leaked secret.

Plain SKILL.md, no scripts, no network access. MIT licensed.

## 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 secret hygiene skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does secret hygiene do?

Keep API keys, tokens and passwords out of repos and logs, add CI guardrails, and rotate first when one leaks.

### Which AI agents support secret hygiene?

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 secret hygiene?

Connect your AI agent to Agensi through MCP, then ask it to use secret hygiene 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.
