Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Secrets Manager

ASecurity

Design secrets management — vaulting, rotation, least-privilege access, and eliminating hardcoded credentials.

2 stars
0 votes
1 copies
2 views
Added 9/29/2026
ai-agentsgorailsapidatabasesecurity

Works with

cliapi

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill secrets-manager --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secrets Manager?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Secrets Manager
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aicodedecode-secrets-manager/badge)](https://www.skillsdirectory.com/skills/aicodedecode-secrets-manager)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: secrets-manager
description: Design secrets management — vaulting, rotation, least-privilege access, and eliminating hardcoded credentials.
category: security
---

## Overview

Secrets — API keys, passwords, tokens, certificates, connection strings — are the keys to the kingdom, and they leak constantly: hardcoded in repos, pasted in chat, baked into images. A secrets-management program gives every secret a safe home (a vault), a defined lifetime (rotation), and minimal exposure (least-privilege access with audit trails).

This skill covers selecting and operating secrets management: vault architecture, rotation, application integration patterns, and cleaning up the hardcoded-secret debt most orgs carry.

Secrets management fails most often not on technology but on developer experience: if the vault is harder than hardcoding, developers will hardcode. The winning pattern makes the secure path the easy path — SDKs, sidecar injectors, and CI integrations that fetch secrets with less effort than copying them into config files.

## When to use

- Replacing hardcoded credentials and config-file secrets with a vault.
- Designing secret rotation for databases, API keys, and service accounts.
- Responding to a leaked secret (revoke, rotate, investigate exposure).
- Auditing who can access which secrets and whether access is still needed.

## Core concepts

- **Vault as the system of record:** HashiCorp Vault, cloud KMS/secrets services, or equivalent — secrets live encrypted at rest, with access control, versioning, and audit logging. Spreadsheets, wikis, and chat are not vaults.
- **Dynamic vs static secrets:** dynamic (generated on demand, short-lived, e.g., per-request DB credentials) beats static (long-lived passwords) — stolen dynamic secrets expire before they can be used.
- **Rotation:** scheduled (e.g., 30–90 days) plus event-driven (employee departure, suspected leak, incident). Automated rotation beats manual; manual rotation gets skipped.
- **Least privilege + audit:** applications and humans get exactly the secrets they need, via short-lived tokens, with every access logged. Regular access reviews prune stale grants.
- **No secrets in code, ever:** repos, CI logs, container images, and client-side bundles must be secret-free. Pre-commit hooks and secret scanning enforce it.
- **Break-glass:** emergency access procedures for when the vault is down — sealed, logged, tested, and rotated after use.

- **Secret zero problem.** The credential used to authenticate to the vault is itself a secret — bootstrap it from platform identity (instance roles, workload identity) rather than another static token.
- **Rotation without downtime.** Versioned secrets plus graceful reload (or dual-support windows) let applications pick up rotated values without restarts or outages.
- **Ephemeral credentials.** The best secret is one that barely exists: dynamic, short-lived credentials issued per workload session minimize the value of any leak.

## Practical workflow

1. **Inventory secrets:** scan repos, CI configs, wikis, and chat exports for hardcoded secrets (automated secret scanning). Classify by blast radius: production DB creds and cloud root keys first.
2. **Stand up the vault:** choose the platform; configure encryption at rest, authentication (OIDC/IAM-based, not long-lived tokens), audit logging to the SIEM, and backup/restore tested.
3. **Migrate applications:** switch apps to vault APIs or injectors (sidecar/env at deploy time, never baked into images). Prefer dynamic secrets for databases and cloud access.
4. **Automate rotation:** scheduled rotation for static secrets; event-driven rotation runbooks for leaks and offboarding. Verify apps pick up rotated secrets without downtime (versioned secrets, graceful reload).
5. **Enforce prevention:** pre-commit secret scanning, CI pipeline secret detection (block on high-confidence finds), and container-image scanning. Treat a blocked commit as coaching, not punishment.
6. **Respond to leaks:** when a secret leaks — revoke/rotate immediately, search for where else it was used, check access logs for misuse during the exposure window, then fix the process that allowed the leak.

### Leak response checklist

- [ ] Secret revoked/rotated at the source (old value dead)
- [ ] All copies removed (repo history rewritten or repo rotated, chat deleted, images rebuilt)
- [ ] Access logs reviewed for the exposure window
- [ ] Root cause fixed (why was it hardcoded / over-exposed?)
- [ ] Detection improved (scanning rule, alert)

### Sustaining the practice

- Scan for hardcoded secrets on every commit and in every image build
- Review vault access grants quarterly against current team membership
- Test vault backup/restore and break-glass procedures annually
- Track mean-time-to-rotate after a suspected leak as a readiness metric

### Metrics that prove it works

- % of applications migrated from hardcoded/config secrets to the vault
- Rotation compliance % (secrets rotated within policy window)
- Hardcoded-secret scanner finds per quarter (trending down)
- Secret access review completion and stale-grant removal counts

## Common pitfalls

- **Vault with weak auth.** A vault fronted by a shared static token is a single point of compromise. Use short-lived, identity-based auth.
- **No rotation.** "Vaulted but never rotated" just centralizes stale secrets. Automate rotation or it will not happen.
- **Secrets in CI logs and images.** Mask secrets in pipeline output; never bake them into container layers (each layer persists even if a later layer deletes the file).
- **Over-broad access.** "The whole team can read prod secrets" defeats the purpose. Scope by environment and role; review quarterly.
- **Break-glass never tested.** An untested emergency procedure fails during the actual emergency. Test restores and break-glass annually.
- **Scanning without remediation.** Finding 500 hardcoded secrets with no rotation-and-removal program is just a list. Pair scanning with a cleanup backlog and SLA.
- **A vault nobody backs up.** Losing the vault means losing every secret at once. Test backup and restore, including the unseal/recovery procedure.
- **Long-lived vault tokens.** Static tokens for automation defeat the purpose. Use short-lived, identity-bound auth for workloads.
- **Vault sprawl.** Three teams running three different vaults means three audit trails and three backup stories. Standardize on one platform with proper multi-tenancy.
- **Secrets in backups and logs.** Encrypted vault backups are still sensitive; CI logs echo secrets without masking. Protect the copies, not just the vault.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →