/install workflow-guardian
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:
- Write to
violations/raw/\x3Cslug>/entry.md(minimum viable) - Fire
hooks/on-violation.md - If hard rule → GATE: stop workflow, surface to owner
- If soft rule → ADVISORY: log, warn, continue
Post-Fix Protocol
When a violation is found AFTER workflow completion:
- Set workflow state to
post-fix - Write violation entry
- Determine corrective action
- Apply fix if autonomous, else escalate
- Mark workflow
completedonly after fix confirmed
Workflow Definition Requirements
Every workflow in workflows/active/ MUST define:
steps[]— ordered list with descriptionsgates[]— hard stop conditionscheckpoints[]— verification pointsrules[]— scoped dos and don'tspost-fix-policy— what to do if violation found after completion
Stats Tracking
After every workflow completion or violation:
- Update
STATS.mdcompliance rate - Update
memory/index.json - If compliance rate drops below 80% for any workflow → advisory to owner
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install workflow-guardian - 安装完成后,直接呼叫该 Skill 的名称或使用
/workflow-guardian触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。