Clayをアップデートするためのスキルです。ユーザーが以下の場合に使用します: - ClayやプラグインまたはCLI(コマンドライン操作の仕組み)のアップデートやアップグレードを求めている - `clay update` コマンドを実行した時点で、CLIがプラグインによって固定・管理されていると報告されている - 新しいバージョンが利用可能かどうかを確認したい なお、このプラグインではCLIはプラグインによって固定されているため、アップデートはプラグイン自体のアップデートを意味します。
Keep Clay up to date. Use when the user asks to update or upgrade Clay, the plugin, or the `clay` CLI; when `clay update` reports the CLI is pinned / managed by the plugin; or to check whether a newer version is available. In the plugin, the CLI is pinned by the plugin, so updating means updating the plugin.
このプラグインは特定の clay CLI バージョンを固定して管理しています。その仕様のため、clay update はここでは自分自身を更新することができません。プラグイン管理下のバイナリを検出すると、プラグイン自体を更新するよう指示します。プラグインユーザーにとって「CLI を更新する」とは、プラグインを更新することを意味しており、その後に新しい CLI が取得されます。
clay --version # <cliVersion>+<commit> を表示
clay update --check # { updated, latestVersion, message } を表示
clay update --check は最新公開版の CLI バージョンと message を報告します。プラグインの場合、メッセージは以下の通りです:
"This binary is managed by the Clay agent plugin and is pinned to a specific version. Update the plugin to change the CLI version."
このメッセージが出るのは正常な状態です。プラグインを更新する必要があるというサイン(ステップ 2)であり、エラーではありません。clay update --check の latestVersion と、clay --version で表示された <cliVersion> を比較してください。異なっていれば、更新版が利用可能です。
更新版が利用可能な場合、message の末尾には GitHub のリリースページ URL が付きます。そこを開いて、ユーザーに変更内容を見せてください。リリースページの ## What's new という見出しの下に変更内容が記載されており、これはそこでしか見られない情報です。URL が表示されなければ、すでに最新バージョンを使っています。
マーケットプレイスの名前は clay-plugins で、プラグイン名は clay です。お使いのツールに合わせて実行してください:
マーケットプレイスを更新し、プラグインをアップデートします:
claude plugin marketplace update clay-plugins
claude plugin update clay@clay-plugins
その後、ユーザーに /reload-plugins を実行する(または Claude Code を再起動する)よう指示してください。新バージョンが読み込まれます。その後でも clay --version が古いバージョンを表示している場合は、マーケットプレイスのキャッシュが古い状態です。上記の claude plugin marketplace update clay-plugins を実行して強制更新してください。最終手段として、clay プラグインをアンインストールしてから再インストールしてください。
マーケットプレイスのスナップショットを更新し、Codex セッションを再起動します:
codex plugin marketplace upgrade clay-plugins
codex plugin marketplace upgrade は最新のプラグインバージョンを取得します。Codex を再起動すると、実行中のセッションが新バージョンを使い始めます。
Cursor は UI 操作で更新します。ユーザーに以下の手順を案内してください:
プラグイン更新は固定された CLI バージョン(bin/cli-version)を更新するだけです。プラグインの bin/clay 実行ファイルは次に clay コマンドが呼ばれたときに、そのバージョンのバイナリをダウンロードしてキャッシュします。このダウンロード処理はすべてのツール共通です(bin/ は共有)。異なるのは、PATH にある clay コマンドが更新済みのプラグインを指しているかどうかです:
bin/ を PATH に追加し、自動的に新バージョンへ切り替えるため、次の clay 呼び出しは更新済みの実行ファイルを使いますsetup スキルが作成した ~/.local/bin/clay フォワーダー(中継プログラム)を使用します。現在のフォワーダーは呼び出しのたびに最新のプラグイン版を再解決するため、プラグイン更新後にエージェントを再起動するだけで自動的に新バージョンが使われます。ただし一つの例外があります。以前のセットアップスキルが作成した古いハードコード型フォワーダー(自動解決機能がない種類)の場合は、古いプラグイン版パスを実行して、ずっと古い CLI を使い続けます。更新して再起動した後も clay --version が古いバージョンのままなら、setup スキルを一度実行して、フォワーダーを新しい種類に置き換えてください。その後、再度確認してください。最初の clay --version コマンドが新しく固定されたバイナリを取得します:
clay --version
clay update --check
<cliVersion> が clay update --check の latestVersion と一致するはずです。ステップ 1 でリリースページから変更内容をまだ表示していなければ、ここで表示してください。更新完了であり、ユーザーにとっての変更点です。
CLI のヘルプテキストは機械可読な仕様書として用意されています:
clay update --help
The plugin bundles and pins a specific clay CLI version. Because of that pin,
clay update cannot self-update here: it detects the plugin-managed binary and
tells you to update the plugin instead. So for plugin users, "update the CLI" means
update the plugin — that moves the pin, and the newer CLI is fetched on next use.
clay --version # reports <cliVersion>+<commit>
clay update --check # reports { updated, latestVersion, message }
clay update --check reports the latest published CLI version and a message. In the
plugin, that message is:
"This binary is managed by the Clay agent plugin and is pinned to a specific version. Update the plugin to change the CLI version."
Seeing that message is expected — it's the signal to update the plugin (step 2), not an
error. Compare latestVersion against the <cliVersion> from clay --version: if
they differ, an update is available.
When an update is available, message ends with the GitHub release URL for that version.
Fetch it and show the user what's new — the release body carries the changelog under a
## What's new heading, and it's the only place they see what they're getting. No URL
means you're already on the latest version.
The marketplace is named clay-plugins and the plugin is clay. Pick your harness:
Refresh the marketplace, then update the plugin:
claude plugin marketplace update clay-plugins
claude plugin update clay@clay-plugins
Then have the user run /reload-plugins (or restart Claude Code) so the new version
loads. If clay --version still shows the old version after that, the marketplace
clone was stale — the explicit claude plugin marketplace update clay-plugins above
force-refreshes it; as a last resort, uninstall and reinstall the clay plugin.
Refresh the marketplace snapshot, then restart the Codex session:
codex plugin marketplace upgrade clay-plugins
codex plugin marketplace upgrade pulls the latest plugin version; restart Codex so
the running session picks it up.
Cursor is UI-driven — tell the user to do this (there's no reliable CLI path):
Updating the plugin only moves the pinned CLI version (bin/cli-version); the plugin's
bin/clay shim then downloads and caches that binary on the next clay call. That
fetch is the same on every harness (bin/ is shared). What differs is whether the
clay on your PATH resolves to the updated plugin:
bin/ to PATH and repoints it to the new version
automatically, so the next clay call runs the updated shim.~/.local/bin/clay forwarder the setup skill wrote.
The current forwarder re-resolves the newest bundled launcher on every call, so a
plugin update is picked up automatically once you restart the agent — no need to
repoint it. One exception: an older, hard-coded forwarder (from before setup wrote
the self-resolving kind) execs a stale plugin-version path and keeps running the
old pinned CLI. If clay --version stays on the old version after updating and
restarting, re-run the setup skill once to replace it.Then re-check — the first clay --version is also what pulls the newly-pinned binary:
clay --version
clay update --check
The <cliVersion> should now match the latestVersion from clay update --check. If you
haven't shown the user what's new from the release URL in step 1 yet, do it now — the
update is done and this is what changed for them.
The CLI help text is a machine-readable spec written for you to read:
clay update --help
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。