← 返回 Skills 市场
cyber-bye

Workflow Guardian

作者 cyber-bye · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
96
总下载
2
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install workflow-guardian
功能描述
Defines, enforces, and tracks structured workflows for any task type. Manages do/don't rules, execution sequences, hard gates, soft advisories, checkpoints,...
使用说明 (SKILL.md)

Workflow Guardian Skill

Purpose

Give the agent a system for HOW to work — not just what to do. Every repeating task type gets a defined workflow. Every workflow has rules, checkpoints, and gates. Violations are caught in real time and logged for review.


Core Concepts

Concept Meaning
workflow Ordered step sequence for a specific task type
rule A do or don't that applies globally or per workflow
checkpoint Mandatory verification point inside a workflow
gate Hard stop — cannot proceed until condition is met
advisory Soft warning — log it, do not block
violation A rule or gate broken during execution
post-fix Corrective action applied after a violation

Workflow States

State Meaning
pending Defined, not yet started
active Currently executing
paused Waiting on gate condition or owner input
completed Finished successfully, all checkpoints passed
aborted Stopped — violation or owner cancel
post-fix Completed but violation found, correction in progress

Rule Types

Type Enforcement What happens on break
hard-do Mandatory action Gate — workflow stops
hard-dont Prohibited action Gate — workflow stops
soft-do Recommended action Advisory — log + warn
soft-dont Discouraged action Advisory — log + warn
global Applies to ALL workflows Either hard or soft
scoped Applies to one workflow only Either hard or soft

Folder Structure

workflow-guardian/
  workflows/
    active/                  ← currently defined workflows
      \x3Cworkflow-id>/
        workflow.md          ← definition: steps, gates, rules
        run-log.md           ← execution history (append-only)
    archived/                ← deprecated workflows (never delete)
    templates/               ← reusable workflow templates
  rules/
    global/
      do.md                  ← global hard/soft dos
      dont.md                ← global hard/soft don'ts
    do/                      ← scoped do rules by workflow
      \x3Cworkflow-id>.md
    dont/                    ← scoped don't rules by workflow
      \x3Cworkflow-id>.md
  checkpoints/
    \x3Cworkflow-id>.md         ← checkpoint definitions per workflow
  violations/
    raw/                     ← captured immediately on detection
      YYYY-MM-DD-\x3Cwf>-\x3Cslug>/entry.md
    reviewed/                ← processed violations
  hooks/
    pre-task.md              ← runs before any workflow step
    post-task.md             ← runs after any workflow step
    on-violation.md          ← fires immediately on rule break
    on-complete.md           ← fires when workflow completes
  memory/
    schema.json              ← validated memory structure
    index.json               ← runtime state (auto-managed)
  templates/
    workflow.md              ← template for new workflow definitions
    violation-entry.md       ← template for violation entries
  crons/
    active/
    completed/
  WORKFLOW_LOG.md            ← master execution log (append-only)
  RULES_INDEX.md             ← all rules in one place
  STATS.md                   ← compliance rate, violation counts
  SOUL.md                    ← persistent soul context
  AGENT.md                   ← behavioral enforcement rules

Slug Format

Workflow IDs: \x3Ccategory>-\x3Ctask-type> e.g. code-review, file-creation, api-integration Violation slugs: YYYY-MM-DD-\x3Cworkflow-id>-\x3Crule-broken>


Immediate Violation Capture Rule

The moment a rule is broken — before any other action:

  1. Write to violations/raw/\x3Cslug>/entry.md (minimum viable)
  2. Fire hooks/on-violation.md
  3. If hard rule → GATE: stop workflow, surface to owner
  4. If soft rule → ADVISORY: log, warn, continue

Post-Fix Protocol

When a violation is found AFTER workflow completion:

  1. Set workflow state to post-fix
  2. Write violation entry
  3. Determine corrective action
  4. Apply fix if autonomous, else escalate
  5. Mark workflow completed only after fix confirmed

Workflow Definition Requirements

Every workflow in workflows/active/ MUST define:

  • steps[] — ordered list with descriptions
  • gates[] — hard stop conditions
  • checkpoints[] — verification points
  • rules[] — scoped dos and don'ts
  • post-fix-policy — what to do if violation found after completion

Stats Tracking

After every workflow completion or violation:

  • Update STATS.md compliance rate
  • Update memory/index.json
  • If compliance rate drops below 80% for any workflow → advisory to owner
安全使用建议
This skill appears coherent and local-only: it manages workflows by reading/writing files in a contained folder structure and does not request credentials or network access. Before installing, consider: 1) Back up any existing workspace files you care about (WORKFLOW_LOG.md, memory/index.json, SOUL.md) because the skill expects to append/update them. 2) Review the global rules/docs (AGENT.md, rules/global/*.md) to confirm you accept the strict gate semantics and the claim that some rules 'cannot be overridden by owner instruction' — if you need manual bypasses, plan how you'll signal overrides. 3) Test in a non-production workspace to verify behavior and that the agent's file writes match your expectations. If you need the skill to call external services or require fewer persistent writes, request a variant that limits persistence or exposes explicit owner-controlled override mechanisms.
功能分析
Type: OpenClaw Skill Name: workflow-guardian Version: 1.0.0 The 'workflow-guardian' skill is a comprehensive framework for defining and enforcing structured task sequences (workflows) for an AI agent. It implements a governance system using rules, gates, and checkpoints to ensure auditability and process integrity, with state maintained across files like `SOUL.md`, `STATS.md`, and `memory/schema.json`. While it contains strong instructions for the agent to prioritize global safety rules over user overrides (e.g., requiring confirmation for destructive operations in `rules/global/dont.md`), these constraints are aligned with its stated purpose of workflow enforcement and lack any indicators of malicious intent, data exfiltration, or unauthorized system access.
能力评估
Purpose & Capability
The name/description (workflow enforcement, gates, checkpoints, violation logging) matches the content of SKILL.md and the included docs. No unrelated environment variables, binaries, or external services are requested.
Instruction Scope
All runtime instructions operate on a clearly defined local folder layout (workflows/, rules/, checkpoints/, violations/, memory/, SOUL.md, logs). The skill directs the agent to read/write those files and to run hooks before/after steps. This is expected for a workflow enforcer, but note the skill prescribes global rules that 'cannot be overridden by owner instruction' and enforces gate behavior strictly — this is a behavioral policy choice that may surprise operators.
Install Mechanism
Instruction-only skill with no install spec and no code files to execute. No downloads, package installs, or binaries are required, minimizing install-time risk.
Credentials
The skill requests no environment variables, credentials, or config paths outside its own document tree. All state is local (files and memory/schema.json). No secret exfiltration vectors are requested in the manifest or instructions.
Persistence & Privilege
The skill writes persistent state (SOUL.md, memory/index.json, WORKFLOW_LOG.md, run logs, violations). It does not set always:true and does not request system-wide config changes, but it does expect to maintain persistent 'soul' context and runtime state — ensure you are comfortable with the agent writing and updating these files in the workspace.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install workflow-guardian
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /workflow-guardian 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: full workflow definition, do/dont rule system, gates, checkpoints, violations, post-fix protocol, soul + memory integration
元数据
Slug workflow-guardian
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Workflow Guardian 是什么?

Defines, enforces, and tracks structured workflows for any task type. Manages do/don't rules, execution sequences, hard gates, soft advisories, checkpoints,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 96 次。

如何安装 Workflow Guardian?

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

Workflow Guardian 是免费的吗?

是的,Workflow Guardian 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Workflow Guardian 支持哪些平台?

Workflow Guardian 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Workflow Guardian?

由 cyber-bye(@cyber-bye)开发并维护,当前版本 v1.0.0。

💬 留言讨论