MCP HubMCP Hub
SKILL·EC9243

secrets-rotation

avelikiy
更新日 21 days ago
4 閲覧
103
13
103
GitHubで表示
ドキュメント処理word

について

このスキルは、チャット、ログ、コミットなどで発見されたキーやトークンなどの露出したシークレットを即座に失効・ローテーションするための追跡タスクを作成します。問題が単に記録されて忘れられることを防ぎ、エスカレーション機能を備えた単一アクションに対応を集約します。認証情報が本来あるべき場所以外で発見された場合に使用し、必須のローテーションワークフローを開始します。

クイックインストール

Claude Code

推奨
メイン
npx skills add avelikiy/great_cto -a claude-code
プラグインコマンド代替
/plugin add https://github.com/avelikiy/great_cto
Git クローン代替
git clone https://github.com/avelikiy/great_cto.git ~/.claude/skills/secrets-rotation

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

secrets-rotation — an exposed secret is spent

Deleting the message, rewriting git history or redacting the log does not un-expose a secret: the transcript, the remote, the backup and the provider's own logs already hold it. The only fix is to make the exposed value worthless — revoke it and issue a new one.

What went wrong on real projects is not ignorance of that. It is that the rotation was remembered instead of tracked: "rotate the exchange API keys" was carried forward through seven session logs; "keys that passed through chat" appeared in seven summaries of another project; a monitoring token pasted in plain text was never rotated. Each session wrote the reminder again and nobody owned it.

The moment you see one

  1. Never repeat the value. Not in your answer, not in a task title, not in a log, not in a commit message. Name its kind and where it is: "OpenRouter API key, in the operator's message of 22.09, 14:10". scripts/lib/secret-patterns.mjs names the kind.

  2. Say it plainly, first line: this key is compromised; revoking it is the only fix.

  3. Open one task, not a note — in Beads if the project has it:

    bd create "Rotate <kind> exposed in <where> on <date>" -t bug -p 0 \
      -d "Exposed: <where>. Revoke at <provider console>, issue new, store in <secret store>, redeploy <consumers>, prove the old one is rejected."
    

    Priority 0 for a production credential or anything that moves money; 1 otherwise.

  4. If you can rotate it, rotate it — the operator asked you to handle it, or your task covers that system. If it needs the operator (a provider console you cannot reach, a hardware token), the task's first line says exactly what they must click.

Done means the old value is refused

A rotation is closed with evidence, not with "rotated":

  • the new value is in the secret store the code reads — never in CLAUDE.md, preferences.md, memory files, a README or any file that is loaded into a model's context (one key in a preferences file reached 605 transcripts);
  • every consumer was redeployed and uses it (deploy-landed, config check);
  • a call with the old value fails — 401/403 from the provider. That is the proof.

Carrying it forward

An open rotation task older than 48 hours goes to the top of the next session's report and of /inbox, with its age. Do not re-list it in the session log as a fresh item — link the task. Re-writing a reminder is how the seven-session carry-over happened.

GitHub リポジトリ

avelikiy/great_cto
パス: skills/secrets-rotation
0
agentic-codingai-agentsclaude-codeclaude-code-pluginclaude-code-skillsclaude-code-subagents
FAQ

よくある質問

secrets-rotation Skillとは何ですか?

secrets-rotation はavelikiy が作成した Claude Skillです。Skillは、Claudeが必要に応じて読み込む指示とリソースをまとめ、追加の指示なしで secrets-rotation に関連するタスクを実行できるようにします。

secrets-rotation をインストールするには?

このページのインストールコマンドを使用してください。secrets-rotation をプラグインとして Claude Code に追加するか、リポジトリを skills ディレクトリにクローンし、Claudeを再起動してSkillを読み込みます。

secrets-rotation はどのカテゴリに属しますか?

secrets-rotation は ドキュメント処理 カテゴリに属します。

secrets-rotation は無料で利用できますか?

はい。secrets-rotation は AIMCP に掲載されており、無料でインストールできます。

関連スキル

release-standards
ドキュメント処理

このスキルは、ソフトウェアリリースのためのセマンティックバージョニング(semver)ガイドラインと変更履歴(changelog)のフォーマット標準を提供します。リリース準備時に使用することで、バージョン番号(メジャー/マイナー/パッチ)を正しく増分し、変更履歴のエントリを構造化できます。プレリリース識別子のルールと、開発者向けの明確な例も含まれています。

スキルを見る
commit-standards
ドキュメント処理

このスキルは、Conventional Commits標準に従ってGitコミットメッセージをフォーマットします。コミットの作成やレビュー時に一貫性を保つため、テンプレートとタイプ定義(`feat`、`fix`、`refactor`など)を提供します。コミットプロセスで使用することで、明確で構造化されたコミット履歴を作成できます。

スキルを見る
nano-pdf
ドキュメント処理

nano-pdfは、特定のページのテキスト変更や誤字修正など、自然言語による指示を使ってPDFを編集できるCLIツールです。ターミナルから直接、迅速かつプログラム的にPDFを修正するのに最適です。ページ番号はバージョンによって異なる場合があるため、出力は必ず確認してください。

スキルを見る
huggingface-tokenizers
ドキュメント処理

このスキルは、HuggingFaceのRustベースライブラリを使用した高性能トークン化を提供し、1GBのテキストを20秒未満で処理します。BPE、WordPiece、Unigramアルゴリズムをサポートし、カスタムトークナイザーのトレーニングとアライメント追跡を可能にします。本番環境レベルの高速トークン化が必要な場合や、transformersエコシステムと統合されたカスタムトークナイザーを構築する際にご利用ください。

スキルを見る