gov_setup
OpenClawの作業環境に、ガバナンスに関するファイル(設定やルールなど)を導入したり、最新の状態に更新したりすることで、組織の統制や管理を適切に行えるようにするSkill。
📜 元の英語説明(参考)
Install or upgrade governance files into the current OpenClaw workspace.
🇯🇵 日本人クリエイター向け解説
OpenClawの作業環境に、ガバナンスに関するファイル(設定やルールなど)を導入したり、最新の状態に更新したりすることで、組織の統制や管理を適切に行えるようにするSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o gov-setup.zip https://jpskill.com/download/9298.zip && unzip -o gov-setup.zip && rm gov-setup.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9298.zip -OutFile "$d\gov-setup.zip"; Expand-Archive "$d\gov-setup.zip" -DestinationPath $d -Force; ri "$d\gov-setup.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
gov-setup.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
gov-setupフォルダができる - 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_setup
目的
このプラグインのガバナンスファイルを、現在のワークスペースの prompts/governance/ にデプロイします。
check モードは、初回セットアップおよびアップグレードの準備状況を確認するための読み取り専用の診断です。
すべてのモードで、このプラグインに対する OpenClaw プラグインの信頼許可リストのアラインメント(plugins.allow)を検証します。
入力
- オプションのモード:
quick(デフォルトのコマンドレベルのワンクリックチェーン)install,upgrade,check- エイリアス:
auto(quickと同じ)
モードの優先順位 (ハード)
- 明示的なオペレーターの意図が優先されます:
/gov_setup upgradeは、アップグレードのワークフローを必ず実行する必要があります。/gov_setup installは、インストールのワークフローを必ず実行する必要があります。/gov_setup checkは、診断のみです。
- 明示的な
install/upgradeをcheckにダウングレードしないでください。 - 明示的な
upgradeに対してSKIPPED (No-op upgrade)を返さないでください。 quick/autoは、完全なチェーンを順番に実行する必要があります:check-> (install/upgrade/skip) ->migrate->audit- いずれかのステージが失敗した場合、そのステージで停止し、決定的な次のステップの修正を返します。
決定的なランナー (ハード)
gov_setupの決定は、以下によって駆動される必要があります:node {plugin_root}/tools/gov_setup_sync.mjs <mode>
- ランナーの出力が信頼できる情報源です:
- ヒューリスティックな「no-op」の推論で置き換えないでください
- ランナーが
PASSを返す場合、PASSを報告します (決してSKIPPEDではありません) - ランナーが
BLOCKEDを返す場合、BLOCKEDを報告して停止します
upgradeの場合、以前のcheckがREADYを返した場合でも、ランナーの実行は必須です。- ランナーは、レガシーワークスペースのシャドウスキル (
<workspace-root>/skills/gov_*) を、続行する前にワークスペースのアーカイブバックアップに移動することで調整します。
Brain Docs のルーティング (ハード)
リクエストが Brain Docs (USER.md, IDENTITY.md, TOOLS.md, SOUL.md, MEMORY.md, HEARTBEAT.md, memory/*.md) に触れる場合:
- 読み取り専用の問い合わせ -> モード B (検証済みの回答): 回答する前に、正確なターゲットファイルを読み取ります。
- 書き込み/更新リクエスト -> モード C: 完全なガバナンスライフサイクルが必須です。
- 同じリクエストに OpenClaw システムのクレームも含まれている場合は、モード B2 の検証 (
docs.openclaw.ai+ バージョンに依存する場合はリリース) を適用します。 - リクエストが Brain Docs の動作の文言の監査/強化について具体的に言及している場合は、
gov_brain_auditにルーティングします (単一のエントリ、デフォルトではプレビュー)。
必須の動作
- このスキルのディレクトリからプラグインのルートを解決します:
plugin_root = {baseDir}/../..
- ワークスペースのルートを、現在の OpenClaw ワークスペースディレクトリとして解決します。
~/.openclaw/workspaceを固定パスとして想定しないでください。
- プラットフォーム構成パスの候補を解決します (読み取り専用プローブ):
- Linux/macOS:
~/.openclaw/openclaw.json - Windows:
%USERPROFILE%\\.openclaw\\openclaw.json - 存在する方を使用します。両方が存在する場合は、ランタイムでアクティブな方を使用し、両方のパスを報告します。
- Linux/macOS:
- すべてのモードで、
openclaw.jsonからプラグインの許可リストの状態を評価します:ALLOW_OK:plugins.allowは配列であり、openclaw-workspace-governanceが含まれていますALLOW_NOT_SET:plugins.allowキーが存在しないか、配列ではありませんALLOW_EMPTY:plugins.allowは空の配列ですALLOW_MISSING_GOV: 配列は存在するが、openclaw-workspace-governanceがありません- 既存の信頼された ID を保持します。許可リストを 1 つの ID のみで置き換えることは決して提案しないでください。
- 必須の互換性 SOP チェック (すべての実行):
- ガバナンスが公式の OpenClaw デイリーフローおよびガバナンスライフサイクルフローと互換性があるかどうかを評価します:
- 公式フローファミリー:
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です (一般的な誤ったブロックはありません)。 - 前提条件が失敗した場合 (たとえば、許可リストのずれ)、明示的なコピーアンドペーストのアンブロックコマンドを含むガバナンスポリシーの警告を返します。
- デフォルトの結果は、これらのフローに対して
- 許可リストの修正については、既存の信頼された ID を保持し、不足している必須 ID を追加します。ガバナンス ID のみで置き換えることは決してありません。
- ガバナンスが公式の OpenClaw デイリーフローおよびガバナンスライフサイクルフローと互換性があるかどうかを評価します:
- モードが
installまたはupgradeで、allow_status != ALLOW_OKの場合:- ガバナンスワークスペースのデプロイメントをハードブロックしないでください
- インストール/アップグレードを続行し (可能な限り)、
allowlist_alignment_required=trueをマークします - 次のステップの移行/監査の前に、即時の修正コマンド (
/gov_openclaw_json->/gov_setup check) を追加します - 文言は、これがガバナンスの警告 (システムエラーではない) であることを明確に示す必要があります
- モードごとに決定的なランナーを実行します:
check->node {plugin_root}/tools/gov_setup_sync.mjs checkinstall->node {plugin_root}/tools/gov_setup_sync.mjs installupgrade->node {plugin_root}/tools/gov_setup_sync.mjs upgradequick/auto-> オーケストレーションされた決定的なチェーン:- セットアップチェックランナー
- チェック結果で必要な場合は、セットアップインストール/アップグレードランナー
- 移行ランナー
- 監査ランナー
- モードが
checkの場合:- ランナーの JSON を以下に関する信頼できる情報源として使用します:
status(NOT_INSTALLED/PARTIAL/READY)allow_statusallowlist_alignment_requiredfile_sync_summaryshadow_reconcile_requirednext_action
- ランナーが
shadow_reconcile_required=trueまたは空でないworkspace_gov_skill_dirs_detectedを報告する場合、ステータスをアップグレードが必要 (PARTIAL) として扱い、オペレーターに明示的な/gov_setup upgradeを実行するように指示します。
- ランナーの JSON を以下に関する信頼できる情報源として使用します:
- インストールまたはアップグレード後:
- 次のステップを出力します:
/gov_migrateを実行し、次に/gov_auditを実行します (移行は、不足しているガバナンス_controlベースラインファイルを決定的に調整します)
- 明示的な
upgradeは、以前にcheckがREADYを返した場合でも実行する必要があります。 - 冪等なアップグレードは有効です。ランナーの出力から
PASS (already up-to-date)を報告します。
- 次のステップを出力します:
- オペレーターがセットアップ中に OpenClaw システムに関する質問 (コマンド/構成/パス) をする場合:
- 回答する前に、ローカルのスキルドキュメントと公式ドキュメント
https://docs.openclaw.aiと照らし合わせて確認します。 - 最新の/バージョンに依存する clai
- 回答する前に、ローカルのスキルドキュメントと公式ドキュメント
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
/gov_setup
Purpose
Deploy this plugin's governance files into the current workspace at prompts/governance/.
check mode is a read-only diagnostic for first-time setup and upgrade readiness.
In all modes, verify OpenClaw plugin trust allowlist alignment (plugins.allow) for this plugin.
Inputs
- Optional mode:
quick(default command-level one-click chain)install,upgrade,check- alias:
auto(same asquick)
Mode precedence (hard)
- Explicit operator intent takes precedence:
/gov_setup upgradeMUST execute upgrade workflow./gov_setup installMUST execute install workflow./gov_setup checkis diagnostics only.
- Never downgrade explicit
install/upgradeintocheck. - Never return
SKIPPED (No-op upgrade)for explicitupgrade. quick/automust run full chain in-order:check-> (install/upgrade/skip) ->migrate->audit- if any stage fails, stop at that stage and return deterministic next-step remediation.
Deterministic runner (hard)
gov_setupdecisions must be driven by:node {plugin_root}/tools/gov_setup_sync.mjs <mode>
- The runner output is authoritative:
- do not replace it with heuristic "no-op" reasoning
- if runner returns
PASS, reportPASS(neverSKIPPED) - if runner returns
BLOCKED, reportBLOCKEDand stop
- For
upgrade, runner execution is mandatory even when a previouscheckreturnedREADY. - Runner also reconciles legacy workspace shadow skills (
<workspace-root>/skills/gov_*) by moving them into workspace archive backup before continuing.
Brain Docs routing (hard)
When the request touches Brain Docs (USER.md, IDENTITY.md, TOOLS.md, SOUL.md, MEMORY.md, HEARTBEAT.md, memory/*.md):
- Read-only ask -> Mode B (verified answer): read the exact target files before answering.
- Any write/update request -> Mode C: full governance lifecycle is mandatory.
- If the same request also includes OpenClaw system claims, apply Mode B2 verification (
docs.openclaw.ai+ releases when version-sensitive). - If the request is specifically about auditing/hardening Brain Docs behavior wording, route to
gov_brain_audit(single entry; preview by default).
Required behavior
- Resolve plugin root from this skill directory:
plugin_root = {baseDir}/../..
- Resolve workspace root as the current OpenClaw workspace directory.
- Do not assume
~/.openclaw/workspaceas a fixed path.
- Do not assume
- Resolve platform config path candidates (read-only probe):
- Linux/macOS:
~/.openclaw/openclaw.json - Windows:
%USERPROFILE%\\.openclaw\\openclaw.json - Use the one that exists; if both exist, use the runtime-active one and report both paths.
- Linux/macOS:
- In all modes, evaluate plugin allowlist status from
openclaw.json:ALLOW_OK:plugins.allowis an array and containsopenclaw-workspace-governanceALLOW_NOT_SET:plugins.allowkey missing or not an arrayALLOW_EMPTY:plugins.allowis an empty arrayALLOW_MISSING_GOV: array exists but missingopenclaw-workspace-governance- Preserve existing trusted ids; never suggest replacing allowlist with only one id.
- Mandatory compatibility SOP check (every run):
- Evaluate whether governance is compatible with official OpenClaw daily flows and governance lifecycle flows:
- official flow families:
openclaw ...system-channel operations (including plugin-added/future commands and chainedopenclawsegments)
- official flow families:
- governance lifecycle:
gov_help,gov_setup quick/check/install/upgrade,gov_migrate,gov_audit,gov_openclaw_json,gov_brain_audit,gov_uninstall quick/check/uninstall - Decision rules:
- default outcome is
ALLOW/ROUTEfor these flows (no generic false block), - if prerequisite fails (for example allowlist misalignment), return governance policy warning with explicit copy-paste unblock commands.
- default outcome is
- For any allowlist remediation, keep existing trusted ids and append missing required id(s); never replace with governance id only.
- Evaluate whether governance is compatible with official OpenClaw daily flows and governance lifecycle flows:
- If mode is
installorupgradeandallow_status != ALLOW_OK:- do not hard-block governance workspace deployment
- continue install/upgrade (best-effort) and mark
allowlist_alignment_required=true - append immediate remediation commands (
/gov_openclaw_json->/gov_setup check) before migration/audit next steps - wording must clearly state this is a governance warning (not system error)
- Execute deterministic runner by mode:
check->node {plugin_root}/tools/gov_setup_sync.mjs checkinstall->node {plugin_root}/tools/gov_setup_sync.mjs installupgrade->node {plugin_root}/tools/gov_setup_sync.mjs upgradequick/auto-> orchestrated deterministic chain:- setup check runner
- setup install/upgrade runner when required by check result
- migrate runner
- audit runner
- If mode is
check:- Use runner JSON as source of truth for:
status(NOT_INSTALLED/PARTIAL/READY)allow_statusallowlist_alignment_requiredfile_sync_summaryshadow_reconcile_requirednext_action
- If runner reports
shadow_reconcile_required=trueor non-emptyworkspace_gov_skill_dirs_detected, treat status as upgrade-required (PARTIAL) and instruct operator to run explicit/gov_setup upgrade.
- Use runner JSON as source of truth for:
- After install or upgrade:
- Print next steps:
- Run
/gov_migrate, then/gov_audit(migration will reconcile missing governance_controlbaseline files deterministically)
- Run
- Explicit
upgrademust still run even ifcheckpreviously returnedREADY. - Idempotent upgrade is valid; report
PASS (already up-to-date)from runner output.
- Print next steps:
- If operator asks OpenClaw system questions (commands/config/paths) during setup:
- Verify against local skill docs and official docs
https://docs.openclaw.aibefore answering. - For latest/version-sensitive claims, also verify official releases
https://github.com/openclaw/openclaw/releases. - If verification cannot be completed, report uncertainty and required next check; do not infer.
- Verify against local skill docs and official docs
- If operator asks date/time-sensitive setup questions:
- Verify runtime current time context (session status) before answering.
- Platform config patching policy during setup:
- do not patch inside
gov_setup - route to
gov_openclaw_json - copy-paste unblock intent:
Please update openclaw.json so plugins.allow keeps existing trusted ids and includes openclaw-workspace-governance, then validate and back up before apply.
- do not patch inside
Output requirements
- Report source root, target root, deterministic runner command/result, and backup path if created.
- If any required source file is missing, stop and report missing paths.
- Include
FILES_READ(exact paths) andTARGET_FILES_TO_CHANGE(exact paths, ornonefor read-onlycheck). - If required evidence fields are missing, output
BLOCKED (missing read/change evidence)instead of completion. - Use this output order for UX consistency:
STATUSWHYNEXT STEP (Operator)COMMAND TO COPY
- Always include a final
NEXT STEP (Operator)section with:- one primary command
- one fallback
/skill ...command
- In
checkmode, include:status(NOT_INSTALLED/PARTIAL/READY)allow_status(ALLOW_OK/ALLOW_NOT_SET/ALLOW_EMPTY/ALLOW_MISSING_GOV)allowlist_alignment_required(true/false)compat_sop_status(ALLOW_OR_ROUTE/POLICY_BLOCK_WITH_REMEDIATION)compat_sop_scope(official flows + governance lifecycle coverage summary)platform_config_path(resolved path used for check)next_actionfile_sync_summary(counts forMISSING/OUT_OF_SYNC/IN_SYNC)shadow_reconcile_required(true/false)workspace_gov_skill_dirs_detected(if any)- file lists in code blocks (one path per line) to avoid UI table-wrap ambiguity.
- if
allow_status!=ALLOW_OK, appendAlign Allowlistcommand block first:/gov_openclaw_json- fallback:
/skill gov_openclaw_json - then rerun:
/gov_setup check(fallback:/skill gov_setup check)
- if
allow_status=ALLOW_OKandshadow_reconcile_required=true, appendShadow Reconcilecommand block first:/gov_setup upgrade- fallback:
/skill gov_setup upgrade
- if
allow_status=ALLOW_OKandstatus=NOT_INSTALLED, append aQuick Startcommand block:/gov_setup install- fallback:
/skill gov_setup install
- if
allow_status=ALLOW_OKandstatus=PARTIAL, append:/gov_setup upgrade- fallback:
/skill gov_setup upgrade
- if
allow_status=ALLOW_OKandstatus=READY, append:/gov_migratethen/gov_audit- fallback:
/skill gov_migratethen/skill gov_audit
- append version visibility commands for operator-side check:
- installed:
openclaw plugins info openclaw-workspace-governance - latest:
npm view @adamchanadam/openclaw-workspace-governance version
- installed:
- In explicit
install/upgrademode:STATUSmust be eitherPASSorBLOCKED.- Do not output
SKIPPEDfor explicit write-mode setup commands. - Include
workspace_gov_skill_dirs_reconciledfrom runner output when present.