Automates the rotation of API keys, database credentials, certificates, and encryption keys with zero-downtime deployment. You'd reach for this when handling compliance requirements, responding to security incidents, or just hardening your secrets management lifecycle. The package includes implementations for AWS Secrets Manager, HashiCorp Vault, and Kubernetes secrets with grace periods and rollback procedures built in. The audit logging is comprehensive, which matters when you need to prove rotation actually happened. Honestly, the hardest part of secrets rotation isn't generating new values, it's coordinating the changeover without breaking active connections, and this handles that dance for you.

skills.sh installs
459
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill secrets-rotation --agent claude-code

Installs into .claude/skills of the current project.

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");

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Backend & APIs, Security, AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1resend avatarsend-emailresend/resend-skillsUse when sending transactional emails (welcome messages, order confirmations, password resets, receipts), notifications, or bulk emails via Resend API.459skills.sh installs
2tamtom avatargplay-cli-usagetamtom/gplay-cli-skillsGuidance for using the Google Play Console CLI in this repo (flags, output formats, pagination, auth, and discovery). Use when asked to run or design gplay comm458skills.sh installs
3dotneet avatarperplexity-searchdotneet/claude-code-marketplaceA skill for performing web searches, research, and reasoning using the Perplexity API. Handles real-time web information retrieval, deep research analysis, and 457skills.sh installs
4secondsky avatarinternationalization-i18nsecondsky/claude-skillsImplements multi-language support using i18next, gettext, or Intl API with translation workflows and RTL support. Use when building multilingual applications, h455skills.sh installs
5bobmatnyc avatargolang-http-frameworksbobmatnyc/claude-mpm-skillsGo HTTP API development with net/http, Chi, Gin, Echo, and Fiber frameworks453skills.sh installs
6tencentcloudbase avatarcloudbase-guidelinestencentcloudbase/skillsEssential CloudBase (TCB, Tencent CloudBase, 云开发, 微信云开发) development guidelines. MUST read when working with CloudBase projects, developing web apps, mini progr453skills.sh installs