← 返回 Skills 市场
xiongwang11

防偷工减料质量守卫系统

作者 XiongWang11 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
39
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install error-proof-system
功能描述
Three-layer error prevention system for AI agents. Prevents recurring mistakes through external skill guards, delivery checkpoints, and self-evolving error m...
使用说明 (SKILL.md)

Error Proof System for AI Agents

"The same mistake, twice is a bug. Three times is a system failure."

A battle-tested, three-layer defense system that prevents AI agents from repeating mistakes. Built from 14+ real production failures over 30 days of continuous agent operation.

The Problem

AI agents make the same mistakes repeatedly because:

  1. Each session starts fresh — no memory of past failures
  2. Task-driven execution skips safety checks
  3. No external enforcement — only soft "remember this" notes

This system solves all three.

Architecture: Three Layers

Layer 1: External Skill Guards (prevention)
  ├── cron-guard        — Validates cron job configuration before saving
  ├── pre-delivery-guard — 5-step checkpoint before any delivery
  └── hz-error-guard    — Pattern matching for known error signatures

Layer 2: Delivery Checkpoints (verification)
  ├── Timestamp check   — Is this today's work?
  ├── File integrity    — Does the file exist and is complete?
  ├── Content check     — Are all modules present?
  ├── Delivery method   — Using the correct channel?
  └── Self-audit        — Would I accept this quality?

Layer 3: Self-Evolving Memory (learning)
  ├── Error notebook    — Every failure documented with 5-Why analysis
  ├──固化规范 (Hardened Rules) — Each fix becomes a permanent rule
  └── Pattern library   — Error patterns for automatic recognition

Quick Start

Run pre-delivery check on the daily report before sending
Validate this cron job configuration for errors
Add this failure to the error notebook and create a prevention rule

Documented Error Patterns (14+ Real Failures)

Pattern: Silent Cron Failure

Symptoms: Cron shows "ok" but no output generated Root Cause: payload.kind = "systemEvent" only inserts text, doesn't trigger execution Fix: Always use payload.kind = "agentTurn" + deliver: true Prevention: cron-guard skill validates configuration

Pattern: Attachment Delivery Failure

Symptoms: Recipient can't open sent files/images Root Cause: Direct message attachments fail on certain platforms Fix: Upload to document platform, send link instead Prevention: pre-delivery-guard blocks direct image sends

Pattern: Stale Content Delivery

Symptoms: Yesterday's content sent as today's work Root Cause: No timestamp verification before sending Fix: Always check task creation timestamp matches today Prevention: Delivery checkpoint verifies timestamps

Pattern: Resolution Too Low

Symptoms: Infographic appears blurry Root Cause: Default 1x rendering instead of 3x Fix: Always use device_scale_factor=3 in Playwright Prevention: Template enforces 3x, guard verifies

Pattern: Missing Modules

Symptoms: Report has only 3 of 5 required sections Root Cause: Task pressure causes skipping Fix: Mandatory checklist before any delivery Prevention: pre-delivery-guard counts modules

Pattern: Wrong Session Type

Symptoms: Cron job skipped silently Root Cause: main session doesn't support agentTurn Fix: Content generation must use isolated sessions Prevention: cron-guard rejects main+agentTurn combo

Error Notebook Template

When a new error occurs:

### Problem XXX: [Title]

**Date**: YYYY-MM-DD
**Severity**: 🔴 High / 🟡 Medium / 🟢 Low

**Symptoms**:
- What happened

**Root Cause**:
- Why it happened (5-Why analysis)

**Fix**:
- What was done to resolve

**Prevention**:
- What guard/rule prevents recurrence

**Status**: ✅ Fixed / ⚠️ Pending / ❌ Not fixed

Delivery Guard Checklist

Before ANY delivery, verify:

def pre_delivery_check(content):
    checks = {
        "timestamp": content.created_today,        # Is it today's work?
        "file_exists": content.file_size > 0,       # File actually exists?
        "complete": content.modules >= 5,           # All parts present?
        "resolution": content.width >= 3600,        # High enough quality?
        "method": content.delivery != "direct_img", # Not sending raw image?
    }
    if not all(checks.values()):
        abort_delivery(checks)
        notify_user(f"Delivery blocked: {failed_checks}")
    return True

Cron Guard Rules

def validate_cron(config):
    rules = [
        ("payload.kind == 'agentTurn'", "systemEvent won't trigger execution"),
        ("sessionTarget == 'isolated'", "main can't handle agentTurn"),
        ("deliver == True", "Without this, output stays in session"),
        ("wakeMode == 'now'", "next-heartbeat may delay execution"),
    ]
    violations = [msg for rule, msg in rules if not eval(rule)]
    if violations:
        raise ConfigError(violations)

Self-Evolution Protocol

  1. Detect — Error occurs during execution
  2. Document — Add to error notebook with 5-Why analysis
  3. Harden — Create a permanent rule in MEMORY.md
  4. Guard — Add external skill check if possible
  5. Verify — Next execution confirms fix works

Integration with OpenClaw

This system works as a meta-skill installed in your OpenClaw workspace:

workspace/
├── MEMORY.md                    # Long-term hardened rules
├── memory/
│   └── error-eradication-protocol.md
└── skills/
    ├── cron-guard/SKILL.md
    ├── pre-delivery-guard/SKILL.md
    └── hz-error-guard/SKILL.md

Why This Matters

Most AI agent failures aren't novel — they're the same patterns repeating. This system:

  • Reduces errors by 90%+ (after initial learning period)
  • Makes errors visible (no silent failures)
  • Creates institutional memory (new sessions inherit past lessons)
  • Enforces quality (external guards can't be skipped)

License

MIT

安全使用建议
Reasonable to install based on the available evidence. Use explicit requests when invoking it, and review any prompts that would write memory, change workflow rules, or persist agent behavior before allowing those actions.
能力评估
Purpose & Capability
No provided scanner or telemetry evidence shows purpose-mismatched capabilities, exfiltration, destructive behavior, or hidden high-impact actions.
Instruction Scope
SkillSpector flagged broad quick-start or activation phrasing in SKILL.md, which could cause unintended use, but the supplied evidence does not show unsafe automatic execution or hidden behavior.
Install Mechanism
No install-time execution, package-install abuse, obfuscation, or suspicious installer behavior was evidenced in the supplied scan context.
Credentials
The supplied context does not show disproportionate environment access, credential harvesting, network exfiltration, or broad local indexing.
Persistence & Privilege
The scanner concern mentions possible workflow or memory effects as an activation-surface risk, but no concrete artifact evidence establishes unbounded persistence, privilege escalation, or hidden memory writes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install error-proof-system
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /error-proof-system 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of error-proof-system. - Introduces a three-layer defense: external skill guards, delivery checkpoints, and self-evolving error memory. - Includes 14+ real-world failure patterns with documented root causes and fixes. - Provides ready-to-use checklists and code samples for error prevention and verification. - Designed for easy integration with OpenClaw workspaces.
元数据
Slug error-proof-system
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

防偷工减料质量守卫系统 是什么?

Three-layer error prevention system for AI agents. Prevents recurring mistakes through external skill guards, delivery checkpoints, and self-evolving error m... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 39 次。

如何安装 防偷工减料质量守卫系统?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install error-proof-system」即可一键安装,无需额外配置。

防偷工减料质量守卫系统 是免费的吗?

是的,防偷工减料质量守卫系统 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

防偷工减料质量守卫系统 支持哪些平台?

防偷工减料质量守卫系统 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 防偷工减料质量守卫系统?

由 XiongWang11(@xiongwang11)开发并维护,当前版本 v1.0.0。

💬 留言讨论