auto-updater-skill
Automatic skill update management: check for updates, diff, apply, rollback, version tracking
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o auto-updater-skill.zip https://jpskill.com/download/22101.zip && unzip -o auto-updater-skill.zip && rm auto-updater-skill.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22101.zip -OutFile "$d\auto-updater-skill.zip"; Expand-Archive "$d\auto-updater-skill.zip" -DestinationPath $d -Force; ri "$d\auto-updater-skill.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
auto-updater-skill.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
auto-updater-skillフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
auto-updater-skill
目的
このスキルは、OpenClawスキルのアップデート管理を自動化します。これには、新しいバージョンの確認、差分の生成、アップデートの適用、変更のロールバック、およびシームレスなメンテナンスを保証するためのバージョン追跡が含まれます。
使用する場面
このスキルは、変更をデプロイする前、潜在的な問題を検出した後、または定期的なメンテナンスサイクル中など、コミュニティクラスターでスキルバージョンを維持する必要がある場合に使用します。本番環境や共同開発など、バージョンの一貫性が重要となる複数のスキルが関わるシナリオに最適です。
主な機能
- アップデートの確認: OpenClawレジストリで新しいスキルバージョンを照会します。
- 差分の生成: 現在のバージョンと最新バージョンを比較して変更点を強調表示します。
- アップデートの適用: 競合解決を行いながら安全にアップデートをインストールします。
- アップデートのロールバック: 問題が発生した場合に以前のバージョンに戻します。
- バージョン追跡: バージョン履歴とメタデータのログを維持します。
詳細:
{"skill_id": "my-skill", "target_version": "1.2.3"}のように、バージョンを上書きするためのJSON設定ファイルをサポートしています。$OPENCLAW_API_KEY環境変数による認証が必要です。
使用パターン
このスキルを使用するには、まずOpenClaw CLIがインストールされ、認証されていることを確認してください。openclaw skill import auto-updater-skill を介してスキルをインポートします。その後、プログラムで、またはCLIを介して呼び出します。自動化のためには、毎日アップデートをチェックするスクリプトにコマンドをラップします。常にスキルIDを指定し、ドライランや強制適用などのオプションにはフラグを使用してください。
一般的なコマンド/API
OpenClaw CLIを使用して対話します。すべてのコマンドには、環境変数に$OPENCLAW_API_KEYが設定されている必要があります。
- アップデートの確認:
openclaw auto-update check --skill-id <id> --cluster communityを実行します。これはAPIエンドポイント/api/skills/{id}/updatesを照会し、利用可能なバージョンを返します。 スニペット例:export OPENCLAW_API_KEY=your_key openclaw auto-update check --skill-id auto-updater-skill - 差分の生成:
openclaw auto-update diff --skill-id <id> --from-version 1.0.0 --to-version 1.1.0を実行します。JSON形式で差分を出力します。 スニペット例:openclaw auto-update diff --skill-id my-skill --from-version 1.2.3 - アップデートの適用:
openclaw auto-update apply --skill-id <id> --version 1.1.0 --dry-runを使用します。チェックをバイパスするには--forceを追加します。 スニペット例:openclaw auto-update apply --skill-id my-skill --version latest - アップデートのロールバック: コマンド:
openclaw auto-update rollback --skill-id <id> --to-version 1.0.0。これはAPIエンドポイント/api/skills/{id}/rollbackにアクセスします。 スニペット例:openclaw auto-update rollback --skill-id my-skill --to-version 1.0.0 - バージョン追跡:
openclaw auto-update track --skill-id <id>で照会します。設定形式:versions.yamlのようなYAMLファイルを使用し、内容はskill_id: my-skill, history: ["1.0.0", "1.1.0"]とします。
統合に関する注意点
このスキルをOpenClawワークフローに統合するには、メインスキルの設定ファイルに依存関係として追加します。例えば、skill.json に "dependencies": ["auto-updater-skill"] を追加します。API統合の場合、ベースURL https://api.openclaw.com を使用し、ヘッダー Authorization: Bearer $OPENCLAW_API_KEY を含めます。他のスキルと連携させる場合は、コールバックを介してエラー伝播が処理されることを確認してください。まずステージング環境で統合をテストしてください。
エラー処理
CLIコマンドの終了コード(例: 失敗の場合はコード1)をチェックしてエラーを処理します。一般的なエラーには、$OPENCLAW_API_KEY が無効な場合の認証失敗(HTTP 401)や、バージョン競合(エラーコード 409)があります。処理方法: スクリプト内でコマンドをtry-catchブロックでラップします。例:
try {
openclaw auto-update check --skill-id my-skill
} catch (error) {
if (error.code === 401) { echo "Auth failed; check $OPENCLAW_API_KEY"; }
}
--log-file output.log フラグを使用してエラーをファイルにログ記録します。API呼び出しの場合、{"error": "Version not found"} のようなエラー詳細についてJSONレスポンスを解析します。
具体的な使用例
-
例: スキルのアップデートを確認して適用する
まず、アップデートを確認します:openclaw auto-update check --skill-id my-skill。新しいバージョンが利用可能な場合は、それを適用します:openclaw auto-update apply --skill-id my-skill --version latest。これにより、手動介入なしでスキルが最新の状態に保たれます。自動デプロイのためにCI/CDパイプラインで使用します。 -
例: 失敗したアップデート後にロールバックする
アップデートによって問題が発生した場合、すぐにロールバックします:openclaw auto-update rollback --skill-id my-skill --to-version 1.0.0。これに先立ち、変更を確認するために差分を生成します:openclaw auto-update diff --skill-id my-skill --from-version 1.1.0。このパターンは、本番環境での安定性を維持するのに役立ちます。
グラフ関係
- 依存関係: skill-registry (バージョン照会のため)
- 提供するもの: update-management (他のコミュニティスキルへ)
- 関連するもの: openclaw-core (APIエンドポイントを介して)
- 競合するもの: なし
- 使用元: maintenance-skills クラスター
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
auto-updater-skill
Purpose
This skill automates the management of updates for OpenClaw skills, including checking for new versions, generating diffs, applying updates, rolling back changes, and tracking versions to ensure seamless maintenance.
When to Use
Use this skill when you need to maintain skill versions in a community cluster, such as before deploying changes, after detecting potential issues, or during routine maintenance cycles. It's ideal for scenarios involving multiple skills where version consistency is critical, like in production environments or collaborative development.
Key Capabilities
- Check for updates: Query the OpenClaw registry for newer skill versions.
- Generate diffs: Compare current and latest versions to highlight changes.
- Apply updates: Safely install updates with conflict resolution.
- Rollback updates: Revert to a previous version if issues arise.
- Version tracking: Maintain a log of version histories and metadata.
Specifics: Supports JSON config files for version overrides, e.g.,
{"skill_id": "my-skill", "target_version": "1.2.3"}. Requires authentication via$OPENCLAW_API_KEYenvironment variable.
Usage Patterns
To use this skill, first ensure the OpenClaw CLI is installed and authenticated. Import the skill via openclaw skill import auto-updater-skill. Then, invoke it programmatically or via CLI. For automation, wrap commands in scripts that check for updates daily. Always specify the skill ID and use flags for options like dry-run or force-apply.
Common Commands/API
Use the OpenClaw CLI for interactions. All commands require $OPENCLAW_API_KEY set in your environment.
- Check for updates: Run
openclaw auto-update check --skill-id <id> --cluster community. This queries the API endpoint/api/skills/{id}/updatesand returns available versions. Example snippet:export OPENCLAW_API_KEY=your_key openclaw auto-update check --skill-id auto-updater-skill - Generate diff: Execute
openclaw auto-update diff --skill-id <id> --from-version 1.0.0 --to-version 1.1.0. Outputs differences in JSON format. Example snippet:openclaw auto-update diff --skill-id my-skill --from-version 1.2.3 - Apply updates: Use
openclaw auto-update apply --skill-id <id> --version 1.1.0 --dry-run. Add--forceto bypass checks. Example snippet:openclaw auto-update apply --skill-id my-skill --version latest - Rollback updates: Command:
openclaw auto-update rollback --skill-id <id> --to-version 1.0.0. This hits the API endpoint/api/skills/{id}/rollback. Example snippet:openclaw auto-update rollback --skill-id my-skill --to-version 1.0.0 - Version tracking: Query with
openclaw auto-update track --skill-id <id>. Config format: Use a YAML file likeversions.yamlwith content:skill_id: my-skill, history: ["1.0.0", "1.1.0"].
Integration Notes
Integrate this skill into your OpenClaw workflow by adding it as a dependency in your main skill's config file, e.g., add "dependencies": ["auto-updater-skill"] in skill.json. For API integrations, use the base URL https://api.openclaw.com and include the header Authorization: Bearer $OPENCLAW_API_KEY. When chaining with other skills, ensure error propagation is handled via callbacks. Test integrations in a staging environment first.
Error Handling
Handle errors by checking exit codes from CLI commands (e.g., code 1 for failures). Common errors include authentication failures (HTTP 401) if $OPENCLAW_API_KEY is invalid, or version conflicts (error code 409). To handle: Wrap commands in try-catch blocks in scripts, e.g.:
try {
openclaw auto-update check --skill-id my-skill
} catch (error) {
if (error.code === 401) { echo "Auth failed; check $OPENCLAW_API_KEY"; }
}
Log errors to a file using --log-file output.log flag. For API calls, parse JSON responses for error details like {"error": "Version not found"}.
Concrete Usage Examples
-
Example: Checking and applying an update for a skill
First, check for updates:openclaw auto-update check --skill-id my-skill. If a new version is available, apply it:openclaw auto-update apply --skill-id my-skill --version latest. This ensures your skill is up-to-date without manual intervention. Use in a CI/CD pipeline for automated deployments. -
Example: Rolling back after a failed update
If an update causes issues, rollback immediately:openclaw auto-update rollback --skill-id my-skill --to-version 1.0.0. Prior to this, generate a diff to verify changes:openclaw auto-update diff --skill-id my-skill --from-version 1.1.0. This pattern is useful for maintaining stability in production.
Graph Relationships
- Depends on: skill-registry (for version queries)
- Provides: update-management (to other community skills)
- Relates to: openclaw-core (via API endpoints)
- Conflicts with: none
- Used by: maintenance-skills cluster