cofounder-ssh-key-rotation

Installation
SKILL.md

SSH Key Rotation

Rotates the SSH key for all VMs of a deployed environment. After rotation, only the new key grants access -- the old key is permanently revoked from every VM.

When to Use

  1. Explicit request: The user asks to rotate, regenerate, or replace SSH keys.
  2. Missing local key: The agent needs to SSH into a VM (for logs, debugging, database access, etc.) but the expected key file does not exist on disk.

Detecting a missing key

Before any SSH operation, the agent resolves the key path:

REPO_NAME=$(gh repo view --json name -q .name)

# Preview environment
SSH_KEY=~/.ssh/$REPO_NAME
Installs
63
GitHub Stars
2
First Seen
Jun 19, 2026
cofounder-ssh-key-rotation — locaweb/cofounder