← 返回
未分类 中文

Workflow Guardian

Defines, enforces, and tracks structured workflows for any task type. Manages do/don't rules, execution sequences, hard gates, soft advisories, checkpoints,...
为任意任务类型定义、执行并跟踪结构化工作流。管理应做/不应做规则、执行顺序、硬性关卡、软性建议、检查点等。
cyber-bye
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 2
Stars
📥 387
下载
💾 1
安装
1
版本
#latest

概述

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

ConceptMeaning
------
workflowOrdered step sequence for a specific task type
ruleA do or don't that applies globally or per workflow
checkpointMandatory verification point inside a workflow
gateHard stop — cannot proceed until condition is met
advisorySoft warning — log it, do not block
violationA rule or gate broken during execution
post-fixCorrective action applied after a violation

Workflow States

StateMeaning
------
pendingDefined, not yet started
activeCurrently executing
pausedWaiting on gate condition or owner input
completedFinished successfully, all checkpoints passed
abortedStopped — violation or owner cancel
post-fixCompleted but violation found, correction in progress

Rule Types

TypeEnforcementWhat happens on break
---------
hard-doMandatory actionGate — workflow stops
hard-dontProhibited actionGate — workflow stops
soft-doRecommended actionAdvisory — log + warn
soft-dontDiscouraged actionAdvisory — log + warn
globalApplies to ALL workflowsEither hard or soft
scopedApplies to one workflow onlyEither hard or soft

Folder Structure

workflow-guardian/
  workflows/
    active/                  ← currently defined workflows
      <workflow-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
      <workflow-id>.md
    dont/                    ← scoped don't rules by workflow
      <workflow-id>.md
  checkpoints/
    <workflow-id>.md         ← checkpoint definitions per workflow
  violations/
    raw/                     ← captured immediately on detection
      YYYY-MM-DD-<wf>-<slug>/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: - e.g. code-review, file-creation, api-integration

Violation slugs: YYYY-MM-DD--


Immediate Violation Capture Rule

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

  1. Write to violations/raw//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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 08:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Skill Onboarder

cyber-bye
自动将新技能接入核心系统。检测到技能安装时,读取 SKILL.md、AGENT.md、SOUL.md/hooks 并注入到 soul/memory/agent 文件。
★ 0 📥 369

Social Media Commander

cyber-bye
全栈社交媒体管理技能,涵盖内容创作、审核、排程、发布、漏斗管理、数据分析、受众洞察、竞争对手分析。
★ 2 📥 551

Self Improvement Cyber Bye

cyber-bye
即时捕获错误、幻觉、逻辑缺陷及用户更正;每日 IST 23:00 自检并尝试自动修复,失败则升级至人工处理。
★ 2 📥 488