Skip to content
Back to skills

Consensus Guard Core

ASecurity

"Shared deterministic guard primitives for the Consensus.Tools

  • 21 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
securityrustbashnodeapisecurity

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 16 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill consensus-guard-core --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Consensus Guard Core?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Consensus Guard Core
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-consensus-guard-core/badge)](https://www.skillsdirectory.com/skills/modbender-consensus-guard-core)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: consensus-guard-core
description: "Shared deterministic guard primitives for the Consensus.Tools
  skill family: hard-block taxonomy, weighted vote aggregation, reputation
  updates, idempotency keys, strict schema enforcement, and indexed board
  artifact access."
---


# 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

```bash
npm i consensus-guard-core
```

## Quick start

```bash
npm test
```

## Import contract

Use the package root import (stable public API):

```js
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.

Files in this skill

  • AI-SELF-IMPROVEMENT.md1.8 KB
  • README.md1.8 KB
  • SECURITY-ASSURANCE.md2.3 KB
  • SKILL.md3.1 KB
  • package-lock.json36.1 KB
  • package.json513 B
  • scripts/ci/check-security-policy.mjs1.8 KB
  • security-policy.json343 B
  • src/board.mjs3.7 KB
  • src/idempotency.mjs170 B
  • src/index.mjs494 B
  • src/policy.mjs1.8 KB
  • src/state-path.mjs1.3 KB
  • src/taxonomy.mjs880 B
  • src/validate.mjs179 B
  • tests/core.test.mjs2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.