Install
openclaw skills install openclaw-workspace-governance🚨【高危预警 / IMPORTANT WARNING】这不是工具Skill,而是系统级架构升级!部署前务必备份工作区!This is NOT a standard tool skill, but a system-level architecture upgrade! Backup workspace before deployment! 虾滑 OpenClaw 工作区治理:用于治理和升级复杂 OpenClaw 工作区,覆盖多 Agent 治理、权威事实分层、查询分类路由、语义搜索诊断、工作集保鲜与维护收口。
openclaw skills install openclaw-workspace-governance🚨 高危/重要提示 (IMPORTANT WARNING) 🚨 这不是一个普通的工具型 Skill,而是针对 OpenClaw 工作区的系统级架构升级与治理方案。 在让你的 Agent 实施本指南之前,请务必对你的 Workspace 进行完整备份,并确保你理解其对文件状态和检索优先级的改变。请勿在未做快照的生产环境中盲目运行全自动治理!
This is NOT a standard tool-level skill. It is a system-level architecture upgrade and governance framework for your OpenClaw workspace. Before allowing your Agent to implement these guidelines, you MUST take a full backup of your workspace. Do not run automated governance in a production environment without understanding how it alters document states and retrieval routing.
这是一个面向复杂 OpenClaw 工作区的治理型 skill。它不是为了制造更多流程,而是为了在复杂度已经上来之后,帮你压住漂移、明确当前事实层、缩小 live docs 面积,并让语义检索变得更可控。
本 Skill 提供了一套完整的系统级框架,赋予你的 OpenClaw 以下核心能力:
当你的工作区已经出现真实复杂度时,再用这份 skill。典型信号包括:
⚠️ 这是进阶 skill,不是新手入门包,也不是 v1 的全自动 orchestrator。
这份 skill 不会替你自动拍板、自动改规则,也不会把所有旧文档都继续维持成“活文档”。它提供的是治理 playbook,不是无限自动化引擎。
它不试图做这些事:
先别急着改文件,先判清楚你遇到的是哪一种 drift。主线只有六步:
如果工作区现在很乱,先减少歧义,不要先加流程。
先判断你面对的是哪一类 drift,不要一上来就盲改文件。先分清类型,后面所有动作才不会跑偏。
你通常会遇到这些类型:
不要先改文件,先判类型。
实现改动、文档解释改动、治理/规则改动,不是一回事。复杂工作区里,最怕把所有改动都走同一条线。
把工作类型区分清楚:
可使用这些通用角色:
常见部署形态:
基本规则:
按需阅读:
references/multi-agent-governance.mdv1 边界:
不要把所有资料平均对待。真正的关键不是“资料多不多”,而是冲突时谁说了算。
把这些层分清楚:
两层冲突时,不要平均;必须决定谁赢。
按需阅读:
references/source-of-truth-layering.mdreferences/query-class-routing.md别抽象地问“语义搜索靠不靠谱”。真正该问的是:对哪一类问题靠谱?在什么 runtime / cache 对齐状态下靠谱?它是主裁决层还是辅助召回层?
建议的 query class:
默认策略:
按需阅读:
references/query-class-routing.mdreferences/semantic-search-diagnostics.md旧文档最危险的不是存在,而是它还在假装自己代表 current truth。把 live docs 面积压小,系统才会稳。
常见标签与角色:
historical-referenceneeds-refresh尽量定义一个最小 live subset,其他默认降级成次级参考层。
按需阅读:
references/live-vs-historical-docs.mdworking set 不是“所有重要文件”,而是“必须持续保鲜的最小活跃集合”。不要用一个统一阈值去管所有文档。
典型 working set 包括:
用分组阈值,不要用一个笼统阈值:
用 freshness checker 把“谁应该记得更新一下”变成可重复执行的检查。
按需阅读:
references/freshness-discipline.md语义检索出问题时,最常见的坑不是模型不行,而是 path alignment、cache/index 混线,或者 split-brain(诊断一个索引、查询另一个索引)。
诊断时建议按这条线走:
按需阅读:
references/semantic-search-diagnostics.md结构看起来整齐,不等于系统真的能回答问题。至少拿 system-state、governance、maintenance、historical/preference 这几类真实问题测一轮。
最低验证集:
判定结果建议只用三种:
只有当较小的 live subset 也确实能回答日常问题时,才算成立。
如果一个 phase 已经主线落地,就该收口进 maintenance observation(维护观察期),而不是继续生产更多流程文档。
每个 phase 都要明确:
一旦主线够完整:
按需阅读:
references/completion-criteria.md这些脚本覆盖 v1 最关键的三条治理检查线:freshness、semantic runtime、doc status。
scripts/freshness-check.pyscripts/semantic-runtime-check.shscripts/doc-status-scan.py这些 references 构成 v1 的主参考集;它们负责解释治理原则,不负责替你自动执行一切。
references/multi-agent-governance.mdreferences/source-of-truth-layering.mdreferences/query-class-routing.mdreferences/live-vs-historical-docs.mdreferences/freshness-discipline.mdreferences/semantic-search-diagnostics.mdreferences/completion-criteria.md先用这些示例建 working set、system-state index 和 health 示例,再按你的工作区实际情况收窄。
assets/examples/working-set.example.mdassets/examples/working-set.example.jsonassets/examples/current-health.example.jsonassets/examples/system-state-index.example.md这是一份 workspace governance tool / governance playbook。它包含多 Agent 治理指导,但它不是 roleplay 包,也不是 v1 的全自动 multi-agent orchestrator。
它最核心的承诺只有五条:
当前正式发布内容以本目录下的 package-local 文件为准。旧的 docs/skill-draft-* 文件属于设计历史,不应继续和当前发布包竞争解释权。
This is a governance skill for complex OpenClaw workspaces. It is not here to add process for its own sake. It helps you reduce drift, clarify current truth, shrink the live-doc surface, and make semantic retrieval more controllable.
System Capabilities
This skill provides a complete system-level framework, empowering your OpenClaw with the following core capabilities:
- Multi-Agent Architecture: Establishes a Supervisor-centric dispatch mechanism, ensuring "separation of writing and reviewing". It clearly separates roles like code generation, code review, policy auditing, and documentation, preventing any single agent from making unauthorized closed-loop decisions.
- Layered Memory System: Moves away from chaotic long documents. It builds a progressive distillation and quality-gating mechanism from "Raw Daily Notes" to "Topic Cards" and finally to "Long-Term Memory".
- Semantic Retrieval Routing: Classifies system queries (e.g., state queries, rule boundaries, historical traces) and establishes precise recall priorities across bridge files, structured memory, and qmd semantic search.
- Approval & Governance: Mandates that modifications to core files (like AGENTS.md) must pass independent review and human authorization. It includes built-in "anti-laziness protocols (code delivery contracts)" for specific roles to ensure the completeness of automated tasks.
Use this skill when the workspace already has real complexity, such as:
This is an advanced governance skill. It is not a beginner skill and not a full automated orchestrator in v1.
This skill does not try to:
Use this skill in six steps:
If the workspace is unclear, start by reducing ambiguity rather than adding more process.
Identify which of these is happening:
Do not start by editing files blindly. First decide the drift type.
Treat these as different work types:
Use these generic roles:
Deployment shapes:
Rules:
Read when needed:
references/multi-agent-governance.mdImportant v1 limit:
Separate these layers clearly:
When two layers disagree, do not average them. Decide which layer wins.
Read when needed:
references/source-of-truth-layering.mdreferences/query-class-routing.mdAsk:
Recommended query classes:
Default policy:
Read when needed:
references/query-class-routing.mdreferences/semantic-search-diagnostics.mdUse labels and roles such as:
historical-referenceneeds-refreshDefine a minimal live subset and treat everything else as secondary by default.
Read when needed:
references/live-vs-historical-docs.mdCreate a narrow working set for documents that must remain fresh.
Typical working set includes:
Use grouped thresholds rather than one blanket threshold. For example:
Use the freshness checker to turn "someone should remember to update this" into a repeatable check.
Read when needed:
references/freshness-discipline.mdWhen semantic search behaves strangely:
Use the runtime checker script for aligned checks.
Read when needed:
references/semantic-search-diagnostics.mdAt minimum validate:
Judgment types:
Only keep a smaller live subset if it actually answers ordinary questions well enough.
For each phase, decide:
Once the mainline is complete enough:
Read when needed:
references/completion-criteria.mdUse these in v1:
scripts/freshness-check.pyscripts/semantic-runtime-check.shscripts/doc-status-scan.pyUse these as the main governance/reference set in v1:
references/multi-agent-governance.mdreferences/source-of-truth-layering.mdreferences/query-class-routing.mdreferences/live-vs-historical-docs.mdreferences/freshness-discipline.mdreferences/semantic-search-diagnostics.mdreferences/completion-criteria.mdUse these as templates/examples:
assets/examples/working-set.example.mdassets/examples/working-set.example.jsonassets/examples/current-health.example.jsonassets/examples/system-state-index.example.mdThis is a workspace governance tool / governance playbook. It includes multi-agent governance guidance, but it is not a roleplay package and not a full automated multi-agent orchestrator in v1.
The core promise is simple:
During the current release line, review the package-local files in this directory first. Treat older docs/skill-draft-* files as drafting history unless you are explicitly tracing design history.