# Send consensus-guard-core to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "consensus-guard-core",
    "name": "consensus-guard-core",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/kaicianflone/consensus-guard-core",
    "canonicalUrl": "https://clawhub.ai/kaicianflone/consensus-guard-core",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/consensus-guard-core",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=consensus-guard-core",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "AI-SELF-IMPROVEMENT.md",
      "README.md",
      "SECURITY-ASSURANCE.md",
      "SKILL.md",
      "package-lock.json",
      "package.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "consensus-guard-core",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T20:25:09.711Z",
      "expiresAt": "2026-05-11T20:25:09.711Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=consensus-guard-core",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=consensus-guard-core",
        "contentDisposition": "attachment; filename=\"consensus-guard-core-1.1.13.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "consensus-guard-core"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/consensus-guard-core"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/consensus-guard-core",
    "downloadUrl": "https://openagent3.xyz/downloads/consensus-guard-core",
    "agentUrl": "https://openagent3.xyz/skills/consensus-guard-core/agent",
    "manifestUrl": "https://openagent3.xyz/skills/consensus-guard-core/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/consensus-guard-core/agent.md"
  }
}
```
## Documentation

### consensus-guard-core

consensus-guard-core is the common policy engine behind the Consensus guard ecosystem.

### What this skill/package provides

unified hard-block taxonomy
deterministic aggregateVotes() policy function
deterministic reputation update rules with clamping
idempotency key generation for retry-safe execution
strict-schema unknown-field rejection helpers
indexed board read helpers for scalable artifact lookup

### Why this matters

Without a shared core, every guard drifts into incompatible policy logic. This package keeps behavior consistent, replayable, and comparable across domains.

### Ecosystem role

consensus-guard-core is consumed by publish/support/merge/action guards and should be treated as policy infrastructure, not an end-user workflow skill.

### Benefits for LLM orchestration

lower integration drift
consistent decision semantics across workflows
easier auditing and cross-skill analytics

### Runtime, credentials, and network behavior

runtime binaries: node, tsx
network calls: none in this package's core decision/path helpers
credentials: none required by this package
environment config read by this package: CONSENSUS_STATE_FILE, CONSENSUS_STATE_ROOT (for board/state path resolution)
filesystem writes: board/state artifacts under the configured consensus state path when callers use write helpers (for example writeArtifact)

### Dependency trust model

consensus-guard-core is a first-party consensus package
versions are semver-pinned in package.json for reproducible installs
this skill does not request host-wide privileges and does not mutate other skills
note: dependency trees should be audited separately by consumers for transitive packages

### Install

npm i consensus-guard-core

### Quick start

npm test

### Import contract

Use the package root import (stable public API):

import { aggregateVotes, writeArtifact, resolveStatePath } from 'consensus-guard-core';

Do not import internal paths like consensus-guard-core/src/index.mjs in dependent skills.

### 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<OutputJson | ErrorJson>

invoke() is primitives-only and delegates to a caller-provided handler. It does not perform persona generation or model/provider calls.

See also: SECURITY-ASSURANCE.md for threat model, runtime boundaries, and hardening guidance.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: kaicianflone
- Version: 1.1.13
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T20:25:09.711Z
- Expires at: 2026-05-11T20:25:09.711Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/consensus-guard-core)
- [Send to Agent page](https://openagent3.xyz/skills/consensus-guard-core/agent)
- [JSON manifest](https://openagent3.xyz/skills/consensus-guard-core/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/consensus-guard-core/agent.md)
- [Download page](https://openagent3.xyz/downloads/consensus-guard-core)