consensus-code-merge-guard
Persona-weighted merge governance for AI-assisted engineering. Evaluates PR risk (tests, security markers, reliability signals), returns MERGE/BLOCK/REVISE decisions, and records board-native audit artifacts.
Why use this skill?
Use consensus-code-merge-guard for persona-weighted, auditable PR governance. Enforce security and quality standards in your CI/CD pipeline.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/kaicianflone/consensus-code-merge-guardWhat This Skill Does
consensus-code-merge-guard acts as an automated governance layer for your engineering workflow. Unlike traditional CI checks that only verify syntax or basic test coverage, this skill introduces a multi-persona weighted decision engine. It evaluates incoming pull requests by synthesizing signals from technical metadata (security flags, test results, reliability markers) against a set of established persona requirements.
Upon evaluation, it returns one of three concrete states: MERGE, BLOCK, or REVISE. Beyond merely returning a status, it generates auditable artifacts that are recorded back to your board state, ensuring that every merge decision is transparent, reproducible, and compliant with your project’s governance policies. By utilizing the consensus-guard-core architecture, this skill ensures that your merge logic remains consistent across the entire project ecosystem.
Installation
To add this skill to your OpenClaw environment, use the provided package identifier from the OpenClaw hub. Run the following command in your terminal:
clawhub install openclaw/skills/skills/kaicianflone/consensus-code-merge-guard
Ensure that your environment has node and tsx installed, as these are the primary runtime dependencies. The skill operates without requiring external network calls during the decision-making process, maintaining a secure, localized execution profile.
Use Cases
- Automated PR Triage: Use it in a fully autonomous pipeline to filter out low-quality code before it touches your staging environment.
- High-Risk Repository Governance: Apply strict persona-weighted checks on critical production repositories to ensure security standards are strictly met.
- Standardized Code Audit Trails: Generate persistent historical logs of why specific code changes were rejected or approved, making external security audits significantly easier.
- Collaborative Engineering Teams: Use the
external_agentmode to integrate human or secondary-agent consensus into the merge flow, balancing machine precision with human expert intuition.
Example Prompts
- "OpenClaw, run the consensus-code-merge-guard on PR #442 using the current production security persona set. Report the final decision."
- "Perform a revision check on this PR. If it is blocked, generate an artifact explaining the missing reliability markers and provide a summary to the developer."
- "Evaluate the pending merge request from the UI team using 'external_agent' mode, aggregating votes from the senior dev and security bot provided in the input file."
Tips & Limitations
- Tip: Always verify your persona sets before execution. The quality of the merge decision is only as good as the reliability signals you provide to the skill.
- Tip: Utilize
idempotent decision lookupto avoid redundant compute cycles if the PR state has not changed. - Limitation: The skill does not perform internal persona set generation; you must ensure a valid
persona_set_idis defined within your board state formode="persona". - Limitation: While it enforces policy, it cannot fix code errors automatically; it will only signal
REVISEfor the developer to intervene.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-kaicianflone-consensus-code-merge-guard": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
consensus-persona-generator
Generate and persist reusable persona panels (persona_set artifacts) for consensus decision workflows. This skill initializes evaluator diversity for downstream guards; ongoing reputation updates are owned by consensus-persona-engine.
Consensus Interact
Skill by kaicianflone
consensus-send-email-guard
Persona-weighted pre-send email governance for AI systems. Produces APPROVE/BLOCK/REWRITE decisions, writes decision artifacts to the board ledger, updates persona reputation over time, and returns strict machine-parseable JSON.
consensus-publish-guard
Persona-weighted governance for outbound publishing (blog, social, announcements). Prevents unsafe public claims via hard-block checks, weighted consensus, rewrite paths, and board-native audit artifacts.
consensus-persona-respawn
Ledger-informed persona lifecycle management. Replaces low-performing personas with successor personas derived from mistake patterns in board decision history, preserving adaptive governance over long-running automation. Reputation updates are computed by consensus-persona-engine.