secrets-management

secrets-management is a skill for Claude Code from catpilotai/catpilot-ai-guardrails. It costs 103 tokens per session (4,750 once invoked), scanned C, original, MIT.

A guide for storing, limiting, distributing, rotating, and exposing secrets such as API keys and passwords to running software.

In plain words
What is it for?
Use it when configuring credentials, separating environment access, handling secrets in CI, or deciding how running code should receive them.
Why use it?
It helps prevent secrets from leaking through committed .env files, CI logs, URLs, error messages, or reuse across development, testing, and production.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex; built for openclaw.

Part of the catpilot-guardrails plugin — 25 skills shipped together

Good fit Use it when configuring credentials, separating environment access, handling secrets in CI, or deciding how running code should receive them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/catpilotai/catpilot-ai-guardrails/secrets-management
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add catpilotai/catpilot-ai-guardrails --skill secrets-management
Clone the repo
git clone --depth 1 https://github.com/catpilotai/catpilot-ai-guardrails

Made for: Claude Code.

Or install catpilot-guardrails, the plugin that ships this one along with the rest of its 25 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secrets-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/secrets-management/github.svg)](https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/secrets-management)
Your own site
<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/secrets-management"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/secrets-management/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for secrets-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/catpilotai/catpilot-ai-guardrails/secrets-management"><img src="https://agentmods.dev/badge/skills/catpilotai/catpilot-ai-guardrails/secrets-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,750 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.04750
Opus 5.5 $0.00041 $0.01900
Sonnet 5.5 $0.00021 $0.00950
Haiku 4.5 $0.00010 $0.00475

Measured 1mo ago against content hash ef22e69c58e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

secrets-management scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

return dict(os.environ)

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

fetch(url, opts).then(res => {
src/skills/core/secrets-management/SKILL.md · 522 lines

How it starts

The opening of the file, as written. The whole thing — 522 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Baseline

Applies when: Writing or committing .env/secret files, .gitignore or CI workflow configuration, container/Kubernetes/Terraform manifests defining runtime config, application code that reads credentials or logs errors, or incident-response steps after a secret is exposed.

Always:

  • Add .env* patterns to .gitignore before the first .env file exists; commit only .env.example with key names, no values.
  • Reference CI secrets from the provider's secret store (${{ secrets.X }} or masked variables), never as plain variables; never echo, printenv, env, or set -x a secret.
  • Read secrets from the process environment or a vault-fetch SDK at runtime; never from a URL query/path segment or a file baked into the image.
  • Use different secret values per environment; never copy a production secret into a lower environment or share one across environments.
  • Keep Authorization headers, cookies, connection strings, and full environment dumps out of exception messages, logs, and observability payloads.
  • On exposure, rotate the secret at the source and verify the new value is in use before any cleanup; revoke the old value before rewriting history or deleting logs.

Never:

  • Commit a .env file, or consider it cleaned up once a later commit deletes it.
  • Echo a secret, run printenv/env, or enable set -x in a CI workflow step.
  • Log or return a connection string with embedded credentials, in an error message or a debug endpoint.
  • Share the same secret value across development, staging, and production.
  • "Remediate" an exposed secret by deleting the file or rewriting git history before revoking the credential at its source.

Open the full component before acting: it has the examples, the remediation steps, and the detection patterns.

Why

Secrets fail in predictable ways. secret-blocking catches the hardcoded patterns themselves — sk-live-..., AKIA..., private-key blocks — and prevents them from being written into source files. But secrets that are correctly handled at the point of generation still fail in five other places:

Read the full file on GitHub · 522 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +21 lines ef22e69c58e6
  2. 2mo ago First seen · 501 lines · 103 tokens per session scan C f1d4fe6ef67d

Subscribe to this mod's changes

secrets-management is a skill published in the GitHub repository catpilotai/catpilot-ai-guardrails (2 stars, last pushed 8d ago), licensed MIT. It adds 103 tokens to every session and 4,750 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 2 findings (harvests environment variables, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

secrets-management compared with skills from other repositories

secrets-management next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
secrets-managementcatpilotai/catpilot-ai-guardrailsSkill28d agoMITC103Claude Code
dcf-modelNousResearch/hermes-agentSkill262ktodayMITA14Claude Code, Codex
baoyu-article-illustratorNousResearch/hermes-agentSkill262ktodayMITA18Claude Code, Codex
flash-attentionNousResearch/hermes-agentSkill262ktodayMITA14Claude Code, Codex
subagent-driven-developmentNousResearch/hermes-agentSkill262ktodayMITA17Claude Code, Codex
mcporterNousResearch/hermes-agentSkill262ktodayMITA16Claude Code, Codex
mem0-vercel-ai-sdkmem0ai/mem0Skill69kyesterdayApache-2.0A146Claude Code, Codex