ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

constraint-engine

Learn from consequences, not instructions — generate and enforce constraints from experience

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/leegitw/constraint-engine
Or

constraint-engine (制約)

Unified skill for constraint generation, pre-action checking, circuit breaker management, and constraint lifecycle. Consolidates 7 granular skills into a single enforcement system.

Trigger: 行動前∨閾値到達 (pre-action or threshold reached)

Source skills: constraint-generator, circuit-breaker, emergency-override, constraint-lifecycle, constraint-versioning, positive-framer (partial), contextual-injection (partial)

Installation

openclaw install leegitw/constraint-engine

Dependencies: leegitw/failure-memory (for eligibility data)

# Install with dependencies
openclaw install leegitw/context-verifier
openclaw install leegitw/failure-memory
openclaw install leegitw/constraint-engine

Standalone usage: Requires failure-memory for constraint generation from observations. For full lifecycle management, install the complete suite (see Neon Agentic Suite).

Data handling: This skill operates within your agent's trust boundary. When triggered, it uses your agent's configured model for constraint checking and generation. No external APIs or third-party services are called. Results are written to output/constraints/ in your workspace.

What This Solves

Instructions get ignored. Rules get forgotten. Documentation goes unread. This skill takes a different approach — constraints generated from actual failures:

  1. Generate constraints from observations that meet the eligibility threshold (R≥3 ∧ C≥2)
  2. Enforce constraints at runtime with a circuit breaker (CLOSED → OPEN → HALF-OPEN)
  3. Manage lifecycle from proposal through adoption to retirement

The insight: A constraint born from "this actually broke" carries more weight than "this might break." Consequences teach better than instructions.

Usage

/ce <sub-command> [arguments]

Sub-Commands

CommandCJKLogicTrigger
/ce check検査action→constraints[]→pass∨blockNext Steps (auto)
/ce generate生成eligible(obs)→constraintNext Steps (auto)
/ce status状態active[], circuit∈{CLOSED,OPEN,HALF}Explicit
/ce override上書constraint→bypass(temp), audit.log++Explicit
/ce lifecycle周期state∈{draft→active→retiring→retired}Explicit
/ce version版本constraint→v++, history.preserveExplicit
/ce threshold閾値user∨context→custom_thresholdExplicit

Arguments

/ce check

ArgumentRequiredDescription
actionYesAction to check against constraints
--severityNoMinimum severity to check: critical, important, minor (default: all)

/ce generate

ArgumentRequiredDescription
observationYesObservation ID or pattern to generate constraint from
--forceNoGenerate even if eligibility criteria not met

/ce status

Metadata

Author@leegitw
Stars1656
Views0
Updated2026-02-28
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-leegitw-constraint-engine": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#agentic#guardrails#enforcement#rules#circuit-breaker#self-improving#prevention#validation
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.