Skip to content

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
View on GitHub

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 -y

Installs 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

Similar to Secrets Rotation

More Security