Workflow Guardian for Openclaw

An automated system for defining, enforcing, and tracking structured workflows and rule compliance for AI agents.

cyber-bye
v1.0.0
Apr 14, 2026
2
872
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install workflow-guardian

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install workflow-guardian using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Workflow Guardian?

Workflow Guardian provides a robust framework for AI agents to follow specific operational procedures rather than just performing tasks in isolation. By integrating this skill within the ecosystem of Openclaw Skills, developers can define mandatory step sequences, hard gates, and soft advisories that ensure high-quality, predictable outputs across any task type.

It functions as a persistent governance layer that monitors agent actions against a set of global or scoped rules in real time. This ensures that the agent understands how to work, not just what to do, making it indispensable for complex, multi-stage projects that require strict adherence to protocols.

Workflow Guardian Use Cases

  • Standardizing code review processes with mandatory checkpoints and hard rules to ensure code quality.
  • Enforcing security compliance in API integrations by setting gates that prevent unauthorized data exposure.
  • Automating complex multi-step file creation workflows where the order of operations is critical for system integrity.
  • Monitoring and tracking agent performance and compliance rates across different categories of autonomous tasks.

How Workflow Guardian Works

  1. Define a workflow in the active directory including steps, gates, and specific rules tailored for the task.
  2. The agent initiates the workflow, moving through the ordered sequence while checking for mandatory verification points.
  3. Real-time violation detection monitors every action against defined hard-do and soft-dont rules in the Openclaw Skills environment.
  4. If a hard gate is hit or a violation occurs, the system triggers immediate capture protocols or corrective post-fix actions.
  5. Upon completion, the system updates logs, compliance stats, and memory to ensure long-term behavioral improvement and transparency.

Workflow Guardian Setup

To integrate Workflow Guardian into your environment, ensure you have the core framework for Openclaw Skills installed and then initialize the directory structure.

# Create the directory structure for workflows and rules
mkdir -p workflow-guardian/{workflows/active,rules/global,violations/raw,checkpoints}

# Initialize the global rule files
touch workflow-guardian/rules/global/do.md workflow-guardian/rules/global/dont.md

# Set up the master execution log
touch workflow-guardian/WORKFLOW_LOG.md

Once initialized, define your first workflow by creating a new directory in workflows/active/ and providing a workflow.md file based on the provided templates.

Workflow Guardian Data Schema & Taxonomy

The skill organizes data through a hierarchical file structure designed for persistence, auditability, and easy integration with other Openclaw Skills.

Directory/File Description
workflows/ Contains active and archived workflow definitions and append-only run logs.
rules/ Stores global and scoped (per-workflow) do and don't rules in Markdown.
violations/ Logs raw and reviewed rule breaches with time-stamped slugs.
hooks/ Contains event-driven scripts for pre-task, post-task, and violation events.
memory/ JSON-based schema and index for runtime state management and persistent context.
STATS.md Tracks compliance rates and violation counts for performance analysis.

Workflow Guardian Advanced Features

  • Immediate violation capture that writes entries and fires hooks before any other action is taken.
  • Multi-tier enforcement logic distinguishing between hard gates (blocking) and soft advisories (logging).
  • Post-fix protocol that allows for corrective actions even after a workflow has technically completed.
  • Dynamic compliance rate tracking that provides advisories to the owner if performance drops below specific thresholds.
  • Scoped rule application, allowing for different governance models depending on the specific workflow task type.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*