jpskill.com
📦 その他 コミュニティ

gov_setup

OpenClawの作業環境に、ガバナンスに関するファイル(設定やルールなど)を導入したり、最新の状態に更新したりすることで、組織の統制や管理を適切に行えるようにするSkill。

📜 元の英語説明(参考)

Install or upgrade governance files into the current OpenClaw workspace.

🇯🇵 日本人クリエイター向け解説

一言でいうと

OpenClawの作業環境に、ガバナンスに関するファイル(設定やルールなど)を導入したり、最新の状態に更新したりすることで、組織の統制や管理を適切に行えるようにするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
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
🪟 Windows (PowerShell)
$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. 1. 下の青いボタンを押して gov-setup.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → gov-setup フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

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 と同じ)

モードの優先順位 (ハード)

  1. 明示的なオペレーターの意図が優先されます:
    • /gov_setup upgrade は、アップグレードのワークフローを必ず実行する必要があります。
    • /gov_setup install は、インストールのワークフローを必ず実行する必要があります。
    • /gov_setup check は、診断のみです。
  2. 明示的な install/upgradecheck にダウングレードしないでください。
  3. 明示的な upgrade に対して SKIPPED (No-op upgrade) を返さないでください。
  4. quick/auto は、完全なチェーンを順番に実行する必要があります:
    • check -> (install/upgrade/skip) -> migrate -> audit
    • いずれかのステージが失敗した場合、そのステージで停止し、決定的な次のステップの修正を返します。

決定的なランナー (ハード)

  1. gov_setup の決定は、以下によって駆動される必要があります:
    • node {plugin_root}/tools/gov_setup_sync.mjs <mode>
  2. ランナーの出力が信頼できる情報源です:
    • ヒューリスティックな「no-op」の推論で置き換えないでください
    • ランナーが PASS を返す場合、PASS を報告します (決して SKIPPED ではありません)
    • ランナーが BLOCKED を返す場合、BLOCKED を報告して停止します
  3. upgrade の場合、以前の checkREADY を返した場合でも、ランナーの実行は必須です。
  4. ランナーは、レガシーワークスペースのシャドウスキル (<workspace-root>/skills/gov_*) を、続行する前にワークスペースのアーカイブバックアップに移動することで調整します。

Brain Docs のルーティング (ハード)

リクエストが Brain Docs (USER.md, IDENTITY.md, TOOLS.md, SOUL.md, MEMORY.md, HEARTBEAT.md, memory/*.md) に触れる場合:

  1. 読み取り専用の問い合わせ -> モード B (検証済みの回答): 回答する前に、正確なターゲットファイルを読み取ります。
  2. 書き込み/更新リクエスト -> モード C: 完全なガバナンスライフサイクルが必須です。
  3. 同じリクエストに OpenClaw システムのクレームも含まれている場合は、モード B2 の検証 (docs.openclaw.ai + バージョンに依存する場合はリリース) を適用します。
  4. リクエストが Brain Docs の動作の文言の監査/強化について具体的に言及している場合は、gov_brain_audit にルーティングします (単一のエントリ、デフォルトではプレビュー)。

必須の動作

  1. このスキルのディレクトリからプラグインのルートを解決します:
    • plugin_root = {baseDir}/../..
  2. ワークスペースのルートを、現在の OpenClaw ワークスペースディレクトリとして解決します。
    • ~/.openclaw/workspace を固定パスとして想定しないでください。
  3. プラットフォーム構成パスの候補を解決します (読み取り専用プローブ):
    • Linux/macOS: ~/.openclaw/openclaw.json
    • Windows: %USERPROFILE%\\.openclaw\\openclaw.json
    • 存在する方を使用します。両方が存在する場合は、ランタイムでアクティブな方を使用し、両方のパスを報告します。
  4. すべてのモードで、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 のみで置き換えることは決して提案しないでください。
  5. 必須の互換性 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 のみで置き換えることは決してありません。
  6. モードが install または upgrade で、allow_status != ALLOW_OK の場合:
    • ガバナンスワークスペースのデプロイメントをハードブロックしないでください
    • インストール/アップグレードを続行し (可能な限り)、allowlist_alignment_required=true をマークします
    • 次のステップの移行/監査の前に、即時の修正コマンド (/gov_openclaw_json -> /gov_setup check) を追加します
    • 文言は、これがガバナンスの警告 (システムエラーではない) であることを明確に示す必要があります
  7. モードごとに決定的なランナーを実行します:
    • check -> node {plugin_root}/tools/gov_setup_sync.mjs check
    • install -> node {plugin_root}/tools/gov_setup_sync.mjs install
    • upgrade -> node {plugin_root}/tools/gov_setup_sync.mjs upgrade
    • quick/auto -> オーケストレーションされた決定的なチェーン:
      • セットアップチェックランナー
      • チェック結果で必要な場合は、セットアップインストール/アップグレードランナー
      • 移行ランナー
      • 監査ランナー
  8. モードが check の場合:
    • ランナーの JSON を以下に関する信頼できる情報源として使用します:
      • status (NOT_INSTALLED / PARTIAL / READY)
      • allow_status
      • allowlist_alignment_required
      • file_sync_summary
      • shadow_reconcile_required
      • next_action
    • ランナーが shadow_reconcile_required=true または空でない workspace_gov_skill_dirs_detected を報告する場合、ステータスをアップグレードが必要 (PARTIAL) として扱い、オペレーターに明示的な /gov_setup upgrade を実行するように指示します。
  9. インストールまたはアップグレード後:
    • 次のステップを出力します:
      • /gov_migrate を実行し、次に /gov_audit を実行します (移行は、不足しているガバナンス _control ベースラインファイルを決定的に調整します)
    • 明示的な upgrade は、以前に checkREADY を返した場合でも実行する必要があります。
    • 冪等なアップグレードは有効です。ランナーの出力から PASS (already up-to-date) を報告します。
  10. オペレーターがセットアップ中に 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 as quick)

Mode precedence (hard)

  1. Explicit operator intent takes precedence:
    • /gov_setup upgrade MUST execute upgrade workflow.
    • /gov_setup install MUST execute install workflow.
    • /gov_setup check is diagnostics only.
  2. Never downgrade explicit install/upgrade into check.
  3. Never return SKIPPED (No-op upgrade) for explicit upgrade.
  4. quick/auto must 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)

  1. gov_setup decisions must be driven by:
    • node {plugin_root}/tools/gov_setup_sync.mjs <mode>
  2. The runner output is authoritative:
    • do not replace it with heuristic "no-op" reasoning
    • if runner returns PASS, report PASS (never SKIPPED)
    • if runner returns BLOCKED, report BLOCKED and stop
  3. For upgrade, runner execution is mandatory even when a previous check returned READY.
  4. 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):

  1. Read-only ask -> Mode B (verified answer): read the exact target files before answering.
  2. Any write/update request -> Mode C: full governance lifecycle is mandatory.
  3. If the same request also includes OpenClaw system claims, apply Mode B2 verification (docs.openclaw.ai + releases when version-sensitive).
  4. If the request is specifically about auditing/hardening Brain Docs behavior wording, route to gov_brain_audit (single entry; preview by default).

Required behavior

  1. Resolve plugin root from this skill directory:
    • plugin_root = {baseDir}/../..
  2. Resolve workspace root as the current OpenClaw workspace directory.
    • Do not assume ~/.openclaw/workspace as a fixed path.
  3. 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.
  4. In all modes, evaluate plugin allowlist status from openclaw.json:
    • ALLOW_OK: plugins.allow is an array and contains openclaw-workspace-governance
    • ALLOW_NOT_SET: plugins.allow key missing or not an array
    • ALLOW_EMPTY: plugins.allow is an empty array
    • ALLOW_MISSING_GOV: array exists but missing openclaw-workspace-governance
    • Preserve existing trusted ids; never suggest replacing allowlist with only one id.
  5. 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 chained openclaw segments)
    • 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/ROUTE for these flows (no generic false block),
      • if prerequisite fails (for example allowlist misalignment), return governance policy warning with explicit copy-paste unblock commands.
    • For any allowlist remediation, keep existing trusted ids and append missing required id(s); never replace with governance id only.
  6. If mode is install or upgrade and allow_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)
  7. Execute deterministic runner by mode:
    • check -> node {plugin_root}/tools/gov_setup_sync.mjs check
    • install -> node {plugin_root}/tools/gov_setup_sync.mjs install
    • upgrade -> node {plugin_root}/tools/gov_setup_sync.mjs upgrade
    • quick/auto -> orchestrated deterministic chain:
      • setup check runner
      • setup install/upgrade runner when required by check result
      • migrate runner
      • audit runner
  8. If mode is check:
    • Use runner JSON as source of truth for:
      • status (NOT_INSTALLED / PARTIAL / READY)
      • allow_status
      • allowlist_alignment_required
      • file_sync_summary
      • shadow_reconcile_required
      • next_action
    • If runner reports shadow_reconcile_required=true or non-empty workspace_gov_skill_dirs_detected, treat status as upgrade-required (PARTIAL) and instruct operator to run explicit /gov_setup upgrade.
  9. After install or upgrade:
    • Print next steps:
      • Run /gov_migrate, then /gov_audit (migration will reconcile missing governance _control baseline files deterministically)
    • Explicit upgrade must still run even if check previously returned READY.
    • Idempotent upgrade is valid; report PASS (already up-to-date) from runner output.
  10. If operator asks OpenClaw system questions (commands/config/paths) during setup:
    • Verify against local skill docs and official docs https://docs.openclaw.ai before 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.
  11. If operator asks date/time-sensitive setup questions:
    • Verify runtime current time context (session status) before answering.
  12. 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.

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) and TARGET_FILES_TO_CHANGE (exact paths, or none for read-only check).
  • If required evidence fields are missing, output BLOCKED (missing read/change evidence) instead of completion.
  • Use this output order for UX consistency:
    1. STATUS
    2. WHY
    3. NEXT STEP (Operator)
    4. COMMAND TO COPY
  • Always include a final NEXT STEP (Operator) section with:
    • one primary command
    • one fallback /skill ... command
  • In check mode, 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_action
    • file_sync_summary (counts for MISSING / 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, append Align Allowlist command block first:
      • /gov_openclaw_json
      • fallback: /skill gov_openclaw_json
      • then rerun: /gov_setup check (fallback: /skill gov_setup check)
    • if allow_status=ALLOW_OK and shadow_reconcile_required=true, append Shadow Reconcile command block first:
      • /gov_setup upgrade
      • fallback: /skill gov_setup upgrade
    • if allow_status=ALLOW_OK and status=NOT_INSTALLED, append a Quick Start command block:
      • /gov_setup install
      • fallback: /skill gov_setup install
    • if allow_status=ALLOW_OK and status=PARTIAL, append:
      • /gov_setup upgrade
      • fallback: /skill gov_setup upgrade
    • if allow_status=ALLOW_OK and status=READY, append:
      • /gov_migrate then /gov_audit
      • fallback: /skill gov_migrate then /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
  • In explicit install/upgrade mode:
    • STATUS must be either PASS or BLOCKED.
    • Do not output SKIPPED for explicit write-mode setup commands.
    • Include workspace_gov_skill_dirs_reconciled from runner output when present.