consensus-code-merge-guard
/install consensus-code-merge-guard
consensus-code-merge-guard
consensus-code-merge-guard turns code merge approval into a governed, auditable decision.
What this skill does
- consumes PR/change summary input
- runs persona-weighted vote arbitration
- enforces hard constraints (e.g., tests/security flags)
- maps to engineering decision states:
MERGE | BLOCK | REVISE - writes decision and updated persona artifacts to board state
Why this matters
CI passing does not guarantee risk-aware merge quality. Consensus review reduces silent failure propagation into production.
Ecosystem role
Uses the same consensus substrate as other guards, enabling cross-domain governance with comparable metrics.
Useful for
- autonomous or semi-autonomous merge pipelines
- high-risk repos needing policy checks
- repeatable release governance with artifact history
Runtime, credentials, and network behavior
- runtime binaries:
node,tsx - network calls: none in the guard decision path itself
- filesystem writes: board/state artifacts under the configured consensus state path
Dependency trust model
consensus-guard-coreis the first-party consensus package used in guard execution- versions are semver-pinned in
package.jsonfor reproducible installs - this skill does not request host-wide privileges and does not mutate other skills
Install (registry)
npm i consensus-code-merge-guard
Quick start
node --import tsx run.js --input ./examples/input.json
Tool-call integration
This skill is wired to the consensus-interact contract boundary (via shared consensus-guard-core wrappers where applicable):
- readBoardPolicy
- getLatestPersonaSet / getPersonaSet
- writeArtifact / writeDecision
- idempotent decision lookup
This keeps board orchestration standardized across skills.
Invoke Contract
This skill exposes a canonical entrypoint:
invoke(input, opts?) -> Promise\x3COutputJson | ErrorJson>
invoke() starts the guard flow and executes deterministic policy evaluation with board operations via shared guard-core wrappers.
external_agent mode
Guards support two modes:
mode="external_agent": caller suppliesexternal_votes[]from agents/humans/models for deterministic aggregation.mode="persona": requires an existingpersona_set_id; guard will not generate persona sets internally.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install consensus-code-merge-guard - 安装完成后,直接呼叫该 Skill 的名称或使用
/consensus-code-merge-guard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
consensus-code-merge-guard 是什么?
Persona-weighted merge governance for AI-assisted engineering. Evaluates PR risk (tests, security markers, reliability signals), returns MERGE/BLOCK/REVISE d... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 525 次。
如何安装 consensus-code-merge-guard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install consensus-code-merge-guard」即可一键安装,无需额外配置。
consensus-code-merge-guard 是免费的吗?
是的,consensus-code-merge-guard 完全免费(开源免费),可自由下载、安装和使用。
consensus-code-merge-guard 支持哪些平台?
consensus-code-merge-guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 consensus-code-merge-guard?
由 Kai Cianflone(@kaicianflone)开发并维护,当前版本 v1.1.15。