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
- Explicit request: The user asks to rotate, regenerate, or replace SSH keys.
- 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