← 返回 Skills 市场
leegitw

Agentic Governance

作者 Lee Brown · GitHub ↗ · v1.3.1 · MIT-0
cross-platform ✓ 安全检测通过
399
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install agentic-governance
功能描述
Keep your constraints healthy — lifecycle management with automatic staleness detection
使用说明 (SKILL.md)

governance (治理)

Unified skill for constraint governance state, periodic reviews, index generation, round-trip verification, and schema migration. Consolidates 6 granular skills.

Trigger: 定期保守 (periodic maintenance) or HEARTBEAT

Source skills: constraint-reviewer, index-generator, round-trip-tester, governance-state, slug-taxonomy, adoption-monitor (from safety)

Installation

openclaw install leegitw/governance

Dependencies:

  • leegitw/constraint-engine (for constraint data)
  • leegitw/failure-memory (for observation data)
# Install full governance stack
openclaw install leegitw/context-verifier
openclaw install leegitw/failure-memory
openclaw install leegitw/constraint-engine
openclaw install leegitw/governance

Standalone usage: Index generation and round-trip verification work independently. Full governance features require constraint-engine and failure-memory integration.

Data handling: This skill operates within your agent's trust boundary. When triggered, it uses your agent's configured model for governance analysis and review. No external APIs or third-party services are called. Results are written to output/governance/ in your workspace.

What This Solves

Constraints that never get reviewed become stale. Rules that never get challenged become dogma. This skill manages the lifecycle:

  1. State tracking — know which constraints are active, suspended, or retired
  2. Periodic reviews — 90-day gates to re-evaluate constraints against current evidence
  3. Index generation — dashboards showing constraint health at a glance

The insight: Good governance is proactive. Constraints need maintenance, not just creation.

Usage

/gov \x3Csub-command> [arguments]

Sub-Commands

Command CJK Logic Trigger
/gov state 状態 central_state, event→alert HEARTBEAT
/gov review 審査 constraints.due→review_queue HEARTBEAT
/gov index 索引 skills[]→INDEX.md Explicit
/gov verify 検証 round_trip(source↔compiled)→sync✓∨drift✗ Explicit
/gov migrate 移行 schema.v(n)→schema.v(n+1) Explicit

Arguments

/gov state

Argument Required Description
--summary No Show summary only (default: full state)
--alerts No Show pending alerts only

/gov review

Argument Required Description
--due No Show only due reviews (default)
--all No Show all constraints with review dates
--complete No Mark review as complete

/gov index

Argument Required Description
--path No Output path (default: agentic/INDEX.md)
--format No Format: markdown (default), json

/gov verify

Argument Required Description
source Yes Source file or directory
compiled Yes Compiled/generated file or directory
--strict No Fail on any difference

/gov migrate

Argument Required Description
--to Yes Target schema version
--dry-run No Show changes without applying

Configuration

Configuration is loaded from (in order of precedence):

  1. .openclaw/governance.yaml (OpenClaw standard)
  2. .claude/governance.yaml (Claude Code compatibility)
  3. Defaults (built-in)

Core Logic

Governance State Model

┌─────────────────────────────────────────┐
│           GOVERNANCE STATE               │
├─────────────────────────────────────────┤
│ Constraints:                             │
│   - Active: 5                           │
│   - Draft: 2                            │
│   - Retiring: 1                         │
│   - Retired: 12                         │
├─────────────────────────────────────────┤
│ Reviews:                                 │
│   - Due: 2 (approaching 90-day mark)    │
│   - Overdue: 0                          │
├─────────────────────────────────────────┤
│ Health:                                  │
│   - Circuit: CLOSED                     │
│   - Violations (30d): 3                 │
│   - Adoption rate: 85%                  │
├─────────────────────────────────────────┤
│ Alerts:                                  │
│   - [WARN] CON-001 due for review       │
│   - [INFO] 2 new observations eligible  │
└─────────────────────────────────────────┘

Review Cycle

Constraints require periodic review. The review cadence is configurable (default: 90 days):

# .openclaw/governance.yaml
governance:
  review_cadence_days: 90    # Default
  warning_threshold: 15      # Days before due to warn
Days Since Last Review Status Action
0-75 Current No action
76-90 Approaching Warning alert
91+ Overdue Escalation alert

⚠️ Advisory Only: This review cycle is not enforced programmatically. Compliance relies on HEARTBEAT P3 checks and manual diligence. Automated enforcement (/gov review --automated) is planned for future release. See HEARTBEAT.md for current verification schedule.

Adoption Monitoring

Track constraint adoption across sessions:

Metric Calculation Target
Adoption rate Sessions with constraint used / Total sessions >80%
Violation rate Violations / Checks \x3C5%
Override rate Overrides / Violations \x3C20%

Slug Taxonomy

Standard slug prefixes for observations and constraints:

Prefix Domain Examples
git-* Version control git-commit-message, git-branch-naming
test-* Testing test-before-commit, test-coverage
workflow-* Process workflow-pr-review, workflow-deploy
security-* Security security-no-secrets, security-auth
docs-* Documentation docs-update-readme, docs-api
quality-* Code quality quality-lint, quality-format

Output

/gov state output

[GOVERNANCE STATE]
Updated: 2026-02-15 10:30:00

=== Constraints ===
Active: 5 | Draft: 2 | Retiring: 1 | Retired: 12

=== Circuit Breaker ===
Status: CLOSED (healthy)
Violations (30d): 3

=== Reviews ===
Due: 2 constraints approaching 90-day mark
  - CON-20251120-001: "Always run tests" (day 87)
  - CON-20251125-003: "Lint before commit" (day 82)

=== Adoption ===
Rate: 85% (target: >80%)
Sessions tracked: 47

=== Alerts ===
[WARN] CON-20251120-001 due for review in 3 days
[INFO] 2 observations eligible for constraint generation

/gov review output

[CONSTRAINT REVIEW QUEUE]

Due for review (2):

1. CON-20251120-001: "Always run tests before commit"
   Age: 87 days | Status: active
   Violations (90d): 2 | Overrides: 0
   Adoption: 92%

   Options:
   a) Renew for 90 days: /ce lifecycle CON-20251120-001 active
   b) Begin retirement: /ce lifecycle CON-20251120-001 retiring
   c) Immediate retire: /ce lifecycle CON-20251120-001 retired

2. CON-20251125-003: "Always lint before commit"
   Age: 82 days | Status: active
   Violations (90d): 5 | Overrides: 1
   Adoption: 78%

   [WARN] Below adoption target (80%)
   Consider: Clarify constraint or improve tooling

/gov index output

[INDEX GENERATED]
Path: agentic/INDEX.md
Skills: 7
Updated: 2026-02-15 10:30:00

Contents:
- failure-memory (fm) - Core
- constraint-engine (ce) - Core
- context-verifier (cv) - Foundation
- review-orchestrator (ro) - Review
- governance (gov) - Governance
- safety-checks (sc) - Safety
- workflow-tools (wt) - Extensions

/gov verify output

[ROUND-TRIP VERIFICATION]
Source: docs/constraints/
Compiled: output/constraints/

Status: ✓ IN SYNC

Files checked: 12
Matches: 12
Drifts: 0

Example: Compliance Review

/gov review --all
[CONSTRAINT REVIEW QUEUE]

Compliance Status (SOC 2):

1. CON-20260101-001: "Always encrypt PII at rest"
   Age: 45 days | Status: active
   Compliance: SOC 2 CC6.1
   Violations (90d): 0 | Adoption: 100%
   ✓ Compliant

2. CON-20260115-002: "Always log authentication events"
   Age: 31 days | Status: active
   Compliance: SOC 2 CC6.2
   Violations (90d): 1 | Adoption: 98%
   ⚠ Review violation on 2026-02-01

Summary: 12 constraints | 11 compliant | 1 needs review

Example: Security Audit Preparation

/gov state --summary
[GOVERNANCE STATE]
Updated: 2026-02-15 14:00:00

Audit Readiness:
  Security constraints: 8 active
  Last review: 2026-02-10
  Violations (90d): 2 (both resolved)
  Override rate: 5% (within policy)

Recommendation: Ready for external audit.

Integration

  • Layer: Governance
  • Depends on: constraint-engine (for constraint data), failure-memory (for observation data)
  • Used by: None (top-level governance)

Failure Modes

Condition Behavior
Invalid sub-command List available sub-commands
No constraints found Info: "No constraints in system"
State file corrupted Rebuild from constraint files
Migration conflict Show conflicts, require manual resolution

Next Steps

After invoking this skill:

Condition Action
Reviews due Process each review, update lifecycle
Alerts pending Surface to user, track resolution
Index outdated Regenerate INDEX.md
Drift detected Investigate and reconcile

Workspace Files

This skill reads/writes:

output/
├── governance/
│   ├── state.json           # Central governance state
│   ├── reviews/             # Review records
│   │   └── YYYY-MM-DD.md
│   └── alerts.json          # Pending alerts
└── constraints/
    └── metadata.json        # Constraint metadata (adoption, violations)

agentic/
└── INDEX.md                 # Generated skill index

Security Considerations

What this skill accesses:

  • Configuration files in .openclaw/governance.yaml and .claude/governance.yaml
  • Constraint data from output/constraints/ (via constraint-engine)
  • Observation data from .learnings/ (via failure-memory)
  • Its own output directory output/governance/
  • Skill index file agentic/INDEX.md

What this skill does NOT access:

  • Files outside declared workspace paths
  • System environment variables
  • Network resources or external APIs

What this skill does NOT do:

  • Send data to external services
  • Execute arbitrary code
  • Modify files outside its workspace

Dependency note: This skill reads data from constraint-engine and failure-memory skill workspaces. Install the full governance stack for complete functionality.

Acceptance Criteria

  • /gov state shows complete governance overview
  • /gov state surfaces alerts for due reviews
  • /gov review lists constraints due for 90-day review
  • /gov review provides clear renewal/retirement options
  • /gov index generates skill index from SKILL.md files
  • /gov verify detects drift between source and compiled
  • /gov migrate handles schema version transitions
  • Adoption metrics tracked and reported
  • Workspace files follow documented structure

Consolidated from 6 skills as part of agentic skills consolidation (2026-02-15).

安全使用建议
This skill appears coherent for governance tasks. Before installing: 1) Inspect your .openclaw/governance.yaml and .claude/governance.yaml for any secrets or sensitive paths the skill would read. 2) Review the additional skills it recommends (constraint-engine, failure-memory) since those separate packages may request credentials or external network access. 3) Note that the skill will read/write files under your agent workspace (output/governance/, agentic/INDEX.md); if you want to limit scope, run it in a test workspace first. 4) Confirm your HEARTBEAT/automation settings if you want to control periodic runs. If you need, I can scan the referenced dependency skill manifests next.
功能分析
Type: OpenClaw Skill Name: agentic-governance Version: 1.3.1 The agentic-governance skill is a management tool for tracking the lifecycle and health of agent constraints. It defines clear administrative commands (/gov state, /gov review, etc.) and operates within restricted workspace directories (output/governance/, output/constraints/). The documentation in SKILL.md explicitly restricts network access and environment variable reading, and no malicious execution patterns or prompt injection attempts were found.
能力评估
Purpose & Capability
The name/description (constraint governance, periodic review, index generation) matches the SKILL.md: it reads governance config, manages review cycles, writes indexes and reports, and recommends installing related governance skills. No unrelated credentials, binaries, or system-wide changes are requested.
Instruction Scope
The runtime instructions explicitly read config files (.openclaw/governance.yaml, .claude/governance.yaml), operate on workspace paths (output/governance/, agentic/INDEX.md, constraints and observations), and use the agent's configured model. This is expected for a governance skill, but it will read and write files in the agent workspace—review those files for sensitive data before use. The SKILL.md states no external APIs are called; that claim appears consistent with the instructions provided.
Install Mechanism
No install spec or code files are present (instruction-only), so nothing is downloaded or written by the skill itself. This minimizes install risk. The SKILL.md recommends installing other skills (constraint-engine, failure-memory) — those are separate components to review before installing.
Credentials
The skill requests no environment variables or credentials. It does require access to two config paths and workspace directories, which are reasonable for its stated purpose. There are no unexplained secret or network access requests in the SKILL.md.
Persistence & Privilege
The skill is not marked always:true and does not request elevated or cross-skill config modification. It relies on HEARTBEAT triggers and explicit sub-commands; autonomous invocation is allowed by default but is not unique to this skill. No persistent installation actions are declared in the SKILL.md.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentic-governance
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentic-governance 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.1
- Updated author contact information. - No other user-facing changes.
v1.3.0
- Now uses your agent’s configured model for governance analysis and reviews instead of being instruction-only. - Removed `disable-model-invocation: true` from metadata. - Updated description to clarify data handling operates within the agent’s trust boundary. - Expanded tags to include maintenance, health-checks, observability, and compliance.
v1.2.0
**Clarifies data handling and non-invocation of AI models:** - Specifies that the skill is instruction-only and does not invoke AI models (`disable-model-invocation: true`). - Updates data handling section to clearly state no external APIs or third-party services are used. - Clarifies that only declared workspace paths are accessed. - No functional changes to commands, arguments, or outputs.
v1.1.0
- Adds a `metadata` section specifying OpenClaw requirements for config and workspace paths. - Replaces `config_paths` and `workspace_paths` with a structured `metadata.openclaw.requires` block. - No changes to usage, commands, or core logic. All user-facing features remain the same.
v1.0.0
agentic-governance 1.0.0 - Initial release of unified constraint governance skill for agentic systems - Provides lifecycle management with automatic staleness detection and periodic reviews - Consolidates six previous skills: constraint-reviewer, index-generator, round-trip-tester, governance-state, slug-taxonomy, and adoption-monitor - Supports sub-commands for state tracking, review scheduling, index generation, verification, and schema migration - Outputs comprehensive dashboards and alerts for constraint health and adoption rates - Designed for integration with constraint-engine and failure-memory; standalone features available
元数据
Slug agentic-governance
版本 1.3.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

Agentic Governance 是什么?

Keep your constraints healthy — lifecycle management with automatic staleness detection. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 399 次。

如何安装 Agentic Governance?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentic-governance」即可一键安装,无需额外配置。

Agentic Governance 是免费的吗?

是的,Agentic Governance 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agentic Governance 支持哪些平台?

Agentic Governance 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agentic Governance?

由 Lee Brown(@leegitw)开发并维护,当前版本 v1.3.1。

💬 留言讨论