ワンクリックで
rotate-secrets
Rotate webhook HMACs, API keys, OAuth tokens, and update gateway configs atomically
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Rotate webhook HMACs, API keys, OAuth tokens, and update gateway configs atomically
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Build human-readable release notes from a range of commits or merged PRs
Produce a weekly "What's new in Hermes" digest by summarizing merged PRs + active issues from NousResearch/hermes-agent
Sweep inbox (email + Slack + Telegram DMs) and produce a prioritized action list with suggested replies
Prepare a 1-page brief for an upcoming meeting by combining calendar context, recent threads with attendees, and relevant docs
Classify incoming messages from public channels as spam / prompt-injection-attempt / genuine; quarantine risky ones
Delegate a PR review to Claude Code with a scoped read-only GitHub PAT
| name | rotate-secrets |
| description | Rotate webhook HMACs, API keys, OAuth tokens, and update gateway configs atomically |
| when_to_use | ["User says \"rotate secrets\" or \"rotate keys\"","Scheduled monthly rotation","After a suspected leak or security incident","Pattern-matched argument like /rotate-secrets webhook_hmac_*"] |
| toolsets | ["terminal","file"] |
| parameters | {"pattern":{"type":"string","description":"Glob pattern for which secrets to rotate (e.g. \"webhook_hmac_*\", \"TWILIO_*\", \"all\")","default":"webhook_hmac_*"}} |
Rotate secrets in ~/.hermes/.env, propagate the new values to every service that consumes them, and restart only the affected gateways.
Parse the pattern. Match against every key in ~/.hermes/.env. Support glob syntax (*, ?, [abc]) and the literal all.
For each matched key: a. Determine the secret kind from the key name:
*_HMAC_* or *_WEBHOOK_SECRET → generate openssl rand -hex 32*_API_KEY → prompt the user to provide the new value (can't auto-rotate external APIs)GITHUB_*_TOKEN → open https://github.com/settings/tokens and prompt for new PATTWILIO_AUTH_TOKEN → direct user to rotate in Twilio console and prompt for new valueb. Back up the current .env as ~/.hermes/.env.bak.YYYYMMDDHHMMSS before any write.
c. Update the .env atomically:
sed -i "s/^$KEY=.*/$KEY=$NEW_VALUE/" ~/.hermes/.env
If the key is missing, append it.
Propagate to external services. For HMAC / webhook secrets, update the remote side:
github MCP to PATCH /repos/{owner}/{repo}/hooks/{hook_id} with config.secretRestart only affected gateways.
TELEGRAM_BOT_TOKEN → hermes gateway restart telegramDISCORD_* → hermes gateway restart discordhermes gateway restart slackhermes gateway restart twilioVerify. Run hermes doctor and fail loud if any gateway is unhealthy post-rotation. If unhealthy, restore from the .env.bak.* backup and report.
Emit a rotation log entry. Append to ~/.hermes/logs/rotations.log:
2026-04-17T14:22:00Z rotated webhook_hmac_github by=user result=ok prev_sha=abc123 new_sha=def456
Store SHA-256 of the secret, never the plaintext.
approval_channels default)..env before every run; retain 30 days of backups./rotate-secrets webhook_hmac_*
/rotate-secrets TWILIO_AUTH_TOKEN
/rotate-secrets all # With interactive confirmation per key