Agent SkillsEverClaw/EverClaw › xmtp-comms-guard

xmtp-comms-guard

GitHub

XMTP通信安全中间件,强制通过受保护客户端收发消息,集成审批流与完整性校验,提供失败关闭策略以防御重放、数据泄露等威胁。

skills/xmtp-comms-guard/SKILL.md EverClaw/EverClaw

Trigger Scenarios

集成XMTP消息功能 配置通信安全策略 审计受保护客户端执行

Install

npx skills add EverClaw/EverClaw --skill xmtp-comms-guard -g -y
More Options

Use without installing

npx skills use EverClaw/EverClaw@xmtp-comms-guard

指定 Agent (Claude Code)

npx skills add EverClaw/EverClaw --skill xmtp-comms-guard -a claude-code -g -y

安装 repo 全部 skill

npx skills add EverClaw/EverClaw --all -g -y

预览 repo 内 skill

npx skills add EverClaw/EverClaw --list

SKILL.md

Frontmatter
{
    "name": "xmtp-comms-guard",
    "description": "Security middleware for all XMTP communications in EverClaw. Enforces guarded client usage with validation, integrity checks, and fail-closed security policies. Integrates approval flows for sensitive operations. Use when integrating XMTP messaging, configuring communication security, or auditing guarded client enforcement."
}

xmtp-comms-guard — Skill Integration Guide (V6)

Type: Critical Security Version: 6.0.0 Required peer dependencies: bagman, pii-guard, prompt-guard

Mandatory Usage

All XMTP communication MUST go through the guarded client:

import { createGuardedXmtpClient } from "xmtp-comms-guard";
const { client, middleware } = await createGuardedXmtpClient(rawClient, userWallet);

Raw @xmtp/client imports are blocked by ESLint rules and SkillGuard scan.

Three-Shift Integration

Three-Shift = EverClaw's standard approval flow with three options:

  • Approve — allow the action
  • Redact — downgrade/sanitize
  • Block — deny the action

Used for: peer revocation review, key rotation re-approval, introduction chain re-evaluation.

Enforcement Model

Enforcement is convention-based + build-time gates:

  • ESLint rule blocks @xmtp/client direct imports
  • SkillGuard scan detects raw client usage patterns
  • No runtime interception of raw imports (honestly documented)

See enforcement.md for full details.

Fail-Closed Conditions

The skill refuses to operate when:

  • Hash chain integrity check fails on startup
  • SQLCipher encryption check fails
  • Nonce cache detects replay
  • Unknown topic in message
  • Unknown sensitivity level
  • Message exceeds 64KB
  • Protocol version is not "6.0"
  • Peer not in registry or blocked

Threat Model

Covered in threat-model.md:

  • Malicious external agent → blocked by schema + checks
  • Compromised internal agent → blocked by middleware + SkillGuard gates
  • Host compromise → limited by Bagman + HMAC chain + fail-closed
  • Replay attacks → nonce cache (90s TTL) + hash chain
  • Data exfiltration → PII Guard + trust context rules

Version History

  • f580bc4 Current 2026-07-25 11:18

Same Skill Collection

cron-packs/SKILL.md
flavors/buddybots.org/SKILL.md
memory-upgrade/SKILL.md
mission-control/SKILL.md
skills/agent-chat/SKILL.md
skills/night-shift/SKILL.md
skills/relationships/SKILL.md
skills/skillguard/SKILL.md
skills/three-shifts/SKILL.md
three-shifts/SKILL.md
skills/pii-guard/SKILL.md
skills/prompt-guard/SKILL.md
skills/skillguard/test-fixtures/evasive-03-prompt-subtle/SKILL.md
skills/skillguard/test-fixtures/evasive-06-unicode-injection/SKILL.md
skills/skillguard/test-fixtures/evasive-10-roleplay/SKILL.md
skills/skillguard/test-fixtures/legit-api-skill/SKILL.md
skills/skillguard/test-fixtures/malicious-skill/SKILL.md
skills/skillguard/test-fixtures/clean-skill/SKILL.md
skills/skillguard/test-fixtures/evasive-01-string-concat/SKILL.md
skills/skillguard/test-fixtures/evasive-02-encoded/SKILL.md
skills/skillguard/test-fixtures/evasive-04-timebomb/SKILL.md
skills/skillguard/test-fixtures/evasive-05-alias-chain/SKILL.md
skills/skillguard/test-fixtures/evasive-07-sandbox-detect/SKILL.md
skills/skillguard/test-fixtures/evasive-08-reverse-shell/SKILL.md
skills/skillguard/test-fixtures/evasive-09-python-pickle/SKILL.md
skills/skillguard/test-fixtures/evasive-11-polyglot-json/SKILL.md
skills/skillguard/test-fixtures/evasive-12-multi-stage/SKILL.md

Metadata

Files
0
Version
3227fb7
Hash
711d3436
Indexed
2026-07-25 11:18

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 03:17
浙ICP备14020137号-1 $mapa de visitantes$