gov_migrate
OpenClawワークスペースの運用中に、ワークスペースの管理体制を移行するために必要な設定やデータなどを、スムーズに移行・調整するSkill。
📜 元の英語説明(参考)
Run workspace governance migration for an already-running OpenClaw workspace.
🇯🇵 日本人クリエイター向け解説
OpenClawワークスペースの運用中に、ワークスペースの管理体制を移行するために必要な設定やデータなどを、スムーズに移行・調整するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o gov-migrate.zip https://jpskill.com/download/9296.zip && unzip -o gov-migrate.zip && rm gov-migrate.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9296.zip -OutFile "$d\gov-migrate.zip"; Expand-Archive "$d\gov-migrate.zip" -DestinationPath $d -Force; ri "$d\gov-migrate.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
gov-migrate.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
gov-migrateフォルダができる - 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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
/gov_migrate
目的
以下の定義に従って移行ワークフローを実行します。
prompts/governance/WORKSPACE_GOVERNANCE_MIGRATION.md
厳守契約
_control/GOVERNANCE_BOOTSTRAP.md/_control/REGRESSION_CHECK.mdが存在しない場合、prompts/governance/OpenClaw_INIT_BOOTSTRAP_WORKSPACE_GOVERNANCE.mdの正規ペイロードからシードし、移行を続行します(オペレーターを手動ブートストラップパスに戻さないでください)。- 移行プロンプトに正確に従ってください(ゲートをスキップしないでください)。
2.1 実行前に、
prompts/governance/WORKSPACE_GOVERNANCE_MIGRATION.mdで移行プロンプトの契約を検証します。Do NOT run canonical equality as a pre-change blockerと同等のアンチプリチェック条項を含める必要があります。CHANGE first, then canonical equality at QCと同等の必須順序を含める必要があります。- いずれかの条項が欠落している場合、ワークスペースプロンプトを古いものとして扱い、ガバナンス修復で停止します。
- プライマリ:
/gov_setup upgradeその後/gov_migrate - フォールバック:
/skill gov_setup upgradeその後/skill gov_migrate
- プライマリ:
- 古い変更前正規プリチェックフローを実行しないでください。
- ターゲットユーザー以外のファイルを保持します。
- 移行後、オペレーターに
/gov_auditの実行を指示します。 - ワークスペースルートを実行時に解決される
<workspace-root>として扱います。~/.openclaw/workspaceをハードコードしないでください。 - OpenClaw システムクレーム(commands/config/plugins/skills/hooks)については、以下を使用して検証します。
skills/配下の関連するローカルスキルドキュメントhttps://docs.openclaw.aiの公式ドキュメント- 最新/バージョンに依存するクレームについては、
https://github.com/openclaw/openclaw/releasesの公式リリース - 検証を完了できない場合は、不確実性と必要な次のチェックを報告します。推測しないでください。
- 日付/時刻に依存するクレームについては、最初にランタイムの現在の時刻コンテキスト(セッションステータス)を確認します。
- オペレーターがプラットフォームコントロールプレーンの状態(たとえば
~/.openclaw/openclaw.json)を変更するように要求した場合、実行をgov_openclaw_jsonにルーティングし、gov_migrate内でプラットフォームファイルをパッチしないでください。 - Brain Docs ルーティング:
- タスクが Brain Docs(
USER.md、IDENTITY.md、TOOLS.md、SOUL.md、MEMORY.md、HEARTBEAT.md、memory/*.md)に触れる場合、読み取り専用の要求はモード B として、書き込み/更新はモード C として扱います。 - Brain Docs の書き込みの場合、READ の証拠がない場合はフェイルクローズです。
- 保守的な Brain Docs の動作監査/修正については、
gov_brain_auditにルーティングします(単一エントリ、デフォルトでプレビュー)。
- タスクが Brain Docs(
- コーディングタスクのルーティング:
- ワークスペースのコード/ファイルを作成または変更するリクエスト(例: build、implement、fix、refactor)は、
/gov_*コマンドの文言がなくてもモード C です。 - 書き込みの意図が不明確な場合は、モード C として扱います(フェイルクローズ)。
- ワークスペースのコード/ファイルを作成または変更するリクエスト(例: build、implement、fix、refactor)は、
- 正規自己チェックの動作:
- 正規等価性チェックが AUTOGEN コアブロックの不一致を報告した場合、1 回の決定的な修復パスを実行し(正規 AUTOGEN 内部コンテンツを再適用し、マーカーは変更しません)、
BLOCKEDを宣言する前に等価性を再度実行します。 - 変更前の不一致または過去の不一致実行レポートを、即時のブロッカーとして扱わないでください。
- 必須シーケンス: 最初に CHANGE、次に QC で正規等価性 + オプションの修復パス。
- 正規等価性チェックが AUTOGEN コアブロックの不一致を報告した場合、1 回の決定的な修復パスを実行し(正規 AUTOGEN 内部コンテンツを再適用し、マーカーは変更しません)、
- 公式フロー互換性 SOP (自己ロック防止):
- OpenClaw システム操作フロー(
openclaw ...、プラグイン追加/将来のコマンドを含む)およびガバナンスライフサイクルフロー(gov_help、gov_setup quick/check/install/upgrade、gov_migrate、gov_audit、gov_openclaw_json、gov_brain_audit、gov_uninstall quick/check/uninstall)を、一般的なブロックではなく、デフォルトの ALLOW/ROUTE パスとして扱います。 - 厳密な前提条件でブロックが必要な場合は、それをガバナンスポリシーゲート(システムエラーではない)としてラベル付けし、コピー&ペーストによるアンブロックコマンドを提供します。
- OpenClaw システム操作フロー(
出力要件
FILES_READ(正確なパス) とTARGET_FILES_TO_CHANGE(正確なパス) を含めます。- いずれかのフィールドが欠落している場合は、
BLOCKED (missing read/change evidence)を出力して停止します。 - UX の一貫性のために、次の出力順序を使用します。
STATUSWHYNEXT STEP (Operator)COMMAND TO COPY
- 常に最終的な
NEXT STEP (Operator)セクションを含めます。 - 移行が PASS の場合:
- プライマリ:
/gov_audit - フォールバック:
/skill gov_audit
- プライマリ:
- 移行が FAIL または BLOCKED の場合:
- プライマリ:
fix blocker, then rerun /gov_migrate - フォールバック:
fix blocker, then rerun /skill gov_migrate
- プライマリ:
フォールバック
- スラッシュコマンドが利用できない場合、または名前が衝突する場合は、以下を使用します。
/skill gov_migrate
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
/gov_migrate
Purpose
Execute the migration workflow defined by:
prompts/governance/WORKSPACE_GOVERNANCE_MIGRATION.md
Hard contract
- If
_control/GOVERNANCE_BOOTSTRAP.md/_control/REGRESSION_CHECK.mdis missing, seed them from canonical payload inprompts/governance/OpenClaw_INIT_BOOTSTRAP_WORKSPACE_GOVERNANCE.md, then continue migration (do not bounce operator back to manual bootstrap path). - Follow the migration prompt exactly (no skipped gates).
2.1 Before execution, validate migration prompt contract at
prompts/governance/WORKSPACE_GOVERNANCE_MIGRATION.md:- Must include anti-precheck clause equivalent to
Do NOT run canonical equality as a pre-change blocker. - Must include required order equivalent to
CHANGE first, then canonical equality at QC. - If either clause is missing, treat workspace prompt as stale and stop with governance remediation:
- primary:
/gov_setup upgradethen/gov_migrate - fallback:
/skill gov_setup upgradethen/skill gov_migrate
- primary:
- Do not run old pre-change canonical precheck flow.
- Must include anti-precheck clause equivalent to
- Preserve non-target user files.
- After migration, instruct operator to run
/gov_audit. - Treat workspace root as runtime-resolved
<workspace-root>; do not hardcode~/.openclaw/workspace. - For OpenClaw system claims (commands/config/plugins/skills/hooks), verify using:
- relevant local skill docs under
skills/ - official docs at
https://docs.openclaw.ai - official releases at
https://github.com/openclaw/openclaw/releasesfor latest/version-sensitive claims - if verification cannot be completed, report uncertainty and required next check; do not infer
- relevant local skill docs under
- For date/time-sensitive claims, verify runtime current time context first (session status).
- If the operator asks to change platform control-plane state (for example
~/.openclaw/openclaw.json), route execution togov_openclaw_jsonand do not patch platform files insidegov_migrate. - Brain Docs routing:
- If the task touches Brain Docs (
USER.md,IDENTITY.md,TOOLS.md,SOUL.md,MEMORY.md,HEARTBEAT.md,memory/*.md), treat read-only asks as Mode B and any write/update as Mode C. - For Brain Docs writes, missing READ evidence is fail-closed.
- For conservative Brain Docs behavior audits/fixes, route to
gov_brain_audit(single entry; preview by default).
- If the task touches Brain Docs (
- Coding-task routing:
- Any request that creates or modifies workspace code/files (for example: build, implement, fix, refactor) is Mode C, even without
/gov_*command wording. - If write intent is uncertain, treat as Mode C (Fail-Closed).
- Any request that creates or modifies workspace code/files (for example: build, implement, fix, refactor) is Mode C, even without
- Canonical self-check behavior:
- If canonical equality check reports mismatch on AUTOGEN core blocks, perform one deterministic repair pass (re-apply canonical AUTOGEN inner content, keep markers unchanged), then re-run equality once before declaring
BLOCKED. - Do not treat pre-change mismatch or historical mismatch run reports as immediate blockers.
- Required sequence: CHANGE first, then canonical equality + optional repair pass at QC.
- If canonical equality check reports mismatch on AUTOGEN core blocks, perform one deterministic repair pass (re-apply canonical AUTOGEN inner content, keep markers unchanged), then re-run equality once before declaring
- Official-flow compatibility SOP (anti-self-lock):
- Treat OpenClaw system operation flows (
openclaw ..., including plugin-added/future commands) and governance lifecycle flows (gov_help,gov_setup quick/check/install/upgrade,gov_migrate,gov_audit,gov_openclaw_json,gov_brain_audit,gov_uninstall quick/check/uninstall) as default ALLOW/ROUTE paths, not generic blocks. - If a hard prerequisite requires block, label it as governance policy gate (not system error) and provide copy-paste unblock commands.
- Treat OpenClaw system operation flows (
Output requirements
- Include
FILES_READ(exact paths) andTARGET_FILES_TO_CHANGE(exact paths). - If either field is missing, output
BLOCKED (missing read/change evidence)and stop. - Use this output order for UX consistency:
STATUSWHYNEXT STEP (Operator)COMMAND TO COPY
- Always include a final
NEXT STEP (Operator)section. - If migration PASS:
- primary:
/gov_audit - fallback:
/skill gov_audit
- primary:
- If migration FAIL or BLOCKED:
- primary:
fix blocker, then rerun /gov_migrate - fallback:
fix blocker, then rerun /skill gov_migrate
- primary:
Fallback
- If slash command is unavailable or name-collided, use:
/skill gov_migrate