Secrets Rotation
Automated rotation for API keys, database credentials, TLS certificates, and encryption keys with zero-downtime cutover.
- CCM score
- 37 of 100
- skills.sh installs
- 461
- GitHub stars
- 396
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers rotation for API keys, database credentials, TLS/SSL certificates, encryption keys, and service accounts with audit logging
- Includes a Node.js AWS Secrets Manager implementation, a Python HashiCorp Vault guide, and Kubernetes secret rotation references
- Enforces grace periods, new-secret verification, and rollback procedures so rotations do not break running services
- Designed for teams handling compliance requirements or security incident response that need rotation automated
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill secrets-rotation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Secrets Rotation
Table of Contents
Overview
Implement automated secrets rotation strategy for credentials, API keys, certificates, and encryption keys with zero-downtime deployment and comprehensive audit logging.
When to Use
- API key management
- Database credentials
- TLS/SSL certificates
- Encryption key rotation
- Compliance requirements
- Security incident response
- Service account management
Quick Start
Minimal working example:
// secrets-manager.js
const AWS = require("aws-sdk");
const crypto = require("crypto");
class SecretsManager {
constructor() {
this.secretsManager = new AWS.SecretsManager({
region: process.env.AWS_REGION,
});
this.rotationSchedule = new Map();
}
/**
* Generate new secret value
*/
generateSecret(type = "api_key", length = 32) {
switch (type) {
case "api_key":
return crypto.randomBytes(length).toString("hex");
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Security, DevOps & Cloud
- First seen
- Jun 3, 2026
Questions
What does the secrets-rotation skill do?
The secrets-rotation skill implements automated secrets rotation for API keys, credentials, certificates, and encryption keys. It aims for zero-downtime deployment with comprehensive audit logging, and its reference guides cover Node.js with AWS Secrets Manager, Python with Vault, and Kubernetes.
How do I install the secrets-rotation skill?
Run npx -y skills add aj-geddes/useful-ai-prompts --skill secrets-rotation -y inside your project. Once installed, secrets-rotation gives your agent guidance for managing secrets lifecycle, compliance requirements and security hardening.
Which secrets does the secrets-rotation skill cover?
The secrets-rotation skill covers API key management, database credentials, TLS/SSL certificates, encryption key rotation, and service account management. It also addresses security incident response and compliance requirements for these secrets.
Where does secrets-rotation sit in the Security category?
The secrets-rotation skill is listed in the Security category on Claude Marketplaces, alongside azure-compliance, entra-agent-id, firebase-security-rules-auditor, security-audit and cloudflare-one. Its distinct focus is the rotation lifecycle itself, including grace periods, verification of new secrets and rollback procedures.
More from aj-geddes/useful-ai-prompts
All 258- Deployment Documentation460
- Natural Language Processing460
- Runbook Creation460
- Autoscaling Configuration458
- Security Documentation458
- Stored Procedures458
- Profiling Optimization457
- Property Based Testing457
- Cpu Profiling456
- Frontend Routing456
- Load Balancer Setup456
- Aws Rds Database455
- Log Aggregation455
- Documentation Site Setup454
- Recommendation System454
- Retrospective Facilitation453
- Git Hooks Setup452
- Monorepo Management452
- Secrets Management452
- Survival Analysis452
- Api Filtering Sorting451
- Cloud Migration Planning451
- Cloud Storage Optimization451
- Configuration Management451
Similar to Secrets Rotation
More Securitysecrets-managementaj-geddes/useful-ai-prompts452 installsSecrets management guide covering Vault, AWS Secrets Manager, and Kubernetes Secrets for storing and rotating credentials.
creating-secrets-using-best-practicesaws/agent-toolkit-for-aws7.7K installsDedicated-KMS, rotation-enabled procedure for creating AWS Secrets Manager secrets with production-grade controls.
secrets-vault-manageralirezarezvani/claude-skills713 installsVault, cloud secret stores, and dynamic credentials for services and operators, covering rotation and audit.
env-secrets-manageralirezarezvani/claude-skills706 installsEnv and secrets hygiene for local and production, from auditing .env files to planning rotation.
secrets-manageritsmostafa/aws-agent-skills159 installsAWS Secrets Manager reference for storing, retrieving, versioning, and auto-rotating credentials and API keys.
ssl-certificate-managementaj-geddes/useful-ai-prompts507 installsAutomated SSL/TLS certificate provisioning, renewal, and monitoring across Let's Encrypt, AWS ACM, and Vault.