Workflow Guard Rails

SKILLAI 工具
AI 工具 未标注权限 许可证不明确
安装这个技能

Wrap multi-step agent workflows with pre-execution checks, side-effect queues, result validation, retry budgets, checkpointing, audit logs, and failure-rule accumulation. Prevents false successes, duplicate sends, unrecoverable crashes, and silent drift in LLM production systems. Use it when a workflow sends, publishes, pays, deletes, or writes to another system, runs unattended on a schedule, or must be safe to rerun after a mid-task failure. Trigger keywords: workflow safety, workflow guardian, agent guard, guardrails, pre-execution check, pre-flight check, retry budget, idempotency, false success, duplicate send, checkpoint recovery, rerun safety, audit log, drift detection, agent reliability, production guardrails, 工作流守护, Agent 护栏, 副作用队列, 漂移检测, 幂等, 防重复发送, 假成功, 断点恢复, 生产护栏, 重跑安全, agent 自己跑, 无人值守, 自动化任务, 定时脚本, 日报, 盘前盘后, 出错后怎么办, 报错了, 又犯了, 查一下坑, 写前门禁, 沉淀规则, 教训写哪, 为什么反复犯. Guard #7 (rule accumulation) writes into ~/.workbuddy/ERROR-PLAYBOOK.md — the error knowledge base indexed by operation type. The agent appends confirmed failures there in the same turn, without waiting for human approval. 中文摘要:为多步骤 Agent 工作流加装七项护栏——执行前检查、检查点、副作用队列、预算 重试、结果验证、审计记录、规则沉淀,拦截假成功、重复发送与渐进漂移。触发词:工作流 守护、Agent 护栏、假成功拦截、防重复发送、重试预算、断点恢复、生产护栏、漂移检测.

一句话选型结论

按资料字段整理

Workflow Guard Rails是AI 工具类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类AI 工具 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_7fbe8d41/workflow-guard-rails
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

AI 工具
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_7fbe8d41仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791622849
正文体量14.7 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
组合多个 AI 能力

把写作、检索、总结串成一条流程。

搭工作流

把固定流程做成可重复调用的步骤。

做提示词与评测

整理提示词并对比输出效果。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在AI 工具场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Workflow Guard Rails当前 未标注权限 未标注 未标注 未标注 有
执行计划 只读 GitHub 仓库 151.5 万 Codex、Claude、Cursor 有
Playwright MCP 测试 浏览器控制 ClawHub 市场 136.5 万 OpenClaw 有
完成前的验证 未标注权限 GitHub 仓库 131.9 万 Codex、Claude、Cursor 有
子 Agent 驱动开发 只读 GitHub 仓库 131.2 万 Codex、Claude、Cursor 有
前端设计 执行命令 GitHub 仓库 125.6 万 Codex、Claude、Cursor 有

SKILL.md 全文

14.7 KB
模型实际读到的说明书原文,来自技能仓库

name: workflow-guard-rails
slug: workflow-guard-rails
displayName: Workflow Guard Rails
description: >
Wrap multi-step agent workflows with pre-execution checks, side-effect queues,
result validation, retry budgets, checkpointing, audit logs, and failure-rule
accumulation. Prevents false successes, duplicate sends, unrecoverable
crashes, and silent drift in LLM production systems. Use it when a workflow
sends, publishes, pays, deletes, or writes to another system, runs unattended
on a schedule, or must be safe to rerun after a mid-task failure. Trigger
keywords: workflow safety, workflow guardian, agent guard, guardrails,
pre-execution check, pre-flight check, retry budget, idempotency, false
success, duplicate send, checkpoint recovery, rerun safety, audit log, drift
detection, agent reliability, production guardrails, 工作流守护, Agent 护栏,
副作用队列, 漂移检测, 幂等, 防重复发送, 假成功, 断点恢复, 生产护栏, 重跑安全,
agent 自己跑, 无人值守, 自动化任务, 定时脚本, 日报, 盘前盘后, 出错后怎么办,
报错了, 又犯了, 查一下坑, 写前门禁, 沉淀规则, 教训写哪, 为什么反复犯.
Guard #7 (rule accumulation) writes into ~/.workbuddy/ERROR-PLAYBOOK.md
— the error knowledge base indexed by operation type. The agent appends confirmed
failures there in the same turn, without waiting for human approval.
中文摘要:为多步骤 Agent 工作流加装七项护栏——执行前检查、检查点、副作用队列、预算
重试、结果验证、审计记录、规则沉淀,拦截假成功、重复发送与渐进漂移。触发词:工作流
守护、Agent 护栏、假成功拦截、防重复发送、重试预算、断点恢复、生产护栏、漂移检测.
description_zh: 工作流守护护栏:为多步骤 Agent 工作流加装七项护栏(执行前检查、检查点、副作用队列、预算重试、结果验证、审计记录、规则沉淀),拦截假成功、重复发送与渐进漂移。适用于定时运行、无人值守、含发送/发布/写库等外部副作用、需要失败后安全重跑的工作流。触发词:工作流守护、Agent 护栏、假成功、防重复发送、幂等、断点恢复、生产护栏
description_en: A horizontal safety layer for multi-step agent workflows — pre-execution checks, checkpointing, side-effect queues, retry budgets, result validation, audit logs, and rule accumulation.
version: "1.0.5"
agent_created: true
not_for:
- Single-shot prompts with no external side effects
- Pure data transforms already covered by unit tests
- Workflow authoring or design (use a design guide instead)
- Judgments requiring human taste or policy decisions (use a review skill)
- Monitoring external systems the workflow does not own
read_when:
- "workflow safety"
- "workflow guardian"
- "agent guard"
- "guardrails"
- "pre-execution check"
- "pre-flight check"
- "retry budget"
- "idempotency"
- "false success"
- "duplicate send"
- "checkpoint recovery"
- "rerun safety"
- "audit log"
- "drift detection"
- "agent reliability"
- "工作流守护"
- "副作用队列"
- "漂移检测"
- "幂等"
- "防重复发送"
- "断点恢复"
- "生产护栏"
- "agent 自己跑"
- "无人值守"
- "自动化任务"
- "定时脚本"
- "报错了"
- "又犯了"
- "查一下坑"
- "写前门禁"
- "沉淀规则"
- "教训写哪"
- "为什么反复犯"
tags:
- workflow
- reliability
- agent-safety
- guardrails
- idempotency
- human-in-the-loop
- llm-ops
- automation
- error-handling
- checkpoints
- production-readiness


Workflow Guard Rails

A horizontal safety layer for multi-step agent workflows. It does not replace the workflow logic — it wraps it with guards that catch what the workflow itself cannot see: a tool call that returns "success" but produced invalid output, a side effect that fired before validation, a retry that duplicated an external write, and drift that compounds across runs until the system collapses.

Position in the stack

This skill is the process host. It decides when to check and where a confirmed failure goes. It carries no knowledge of specific errors.

Layer What it holds Who reads it
Resident pointer in ~/.workbuddy/MEMORY.md; gate line inlined into each automation prompt every session, every unattended run — no trigger needed
Process host (this skill) timing, sequencing, side-effect control, retry budget, rule-accumulation gate whenever a workflow with external effects starts
Knowledge base ~/.workbuddy/ERROR-PLAYBOOK.md — concrete errors by operation type + recurrence board queried at guard #1, #5, #7

A skill that is never loaded guards nothing. Do not treat "a skill exists" as "the guard is active" — unattended runs are covered by the resident layer, not by this file.

Querying the knowledge base

When guard #1 (pre-execution) or #5 (result validation) needs content, open ~/.workbuddy/ERROR-PLAYBOOK.md and jump by operation type:

Operation Section
Write JSON / YAML / frontmatter §2.1
Write files (Edit / Write / scripts) §2.2
Run shell commands §2.3
Call APIs / network §2.4
git §2.5
Publish / sync skills §2.6
Data handling / computation §2.7
Content / layout §2.8
Facts / images §2.9

Other anchors: §1 recurrence board — errors seen 2+ times, read this first when tokens are tight; §3 post-write verification and the six false-success receipts; §4 attribution discipline.

The playbook lives outside this skill directory on purpose. It is referenced by ~/.workbuddy/MEMORY.md and by automation prompts that never load a skill, so its path must survive this skill being renamed, removed, or republished.

When to use

  • An LLM or agent workflow runs on a schedule or reacts to events, and a failure means broken output, duplicate messages, or an unrecoverable state.
  • You have seen "the task reported done but the result was wrong" at least once.
  • External actions (send, publish, pay, delete, write to another system) happen as part of the workflow.
  • The same workflow runs repeatedly and you want to detect slow drift, not just hard crashes.

Do not use

  • Single-shot prompts with no external side effects — just validate the output directly.
  • Pure data transforms where a unit test already covers correctness.
  • Cases needing a human to make the judgment call itself (use a review skill instead).

The seven guards

# Guard What it does Signal it catches
1 Pre-execution check Verify input completeness, permissions, success criteria, idempotency key Missing prerequisites, wrong scope
2 Checkpointing Split long tasks into recoverable checkpoints Unrecoverable mid-task crash
3 Side-effect queue Hold external actions until validation passes Broken output reaching users
4 Retry budget Rebirth on failure, capped retries, no local patches Duplicate sends, partial corruption
5 Result validation Independent assertions, not "tool returned OK" False success
6 Audit log Record steps, evidence, human confirmations Lost context, undetectable drift
7 Rule accumulation Append every confirmed failure into ~/.workbuddy/ERROR-PLAYBOOK.md in the same turn Recurring, un-codified errors

> Detailed patterns: for per-guard implementation details and example invariants by workflow type, load references/guardian-patterns.md.

Operating procedure

  1. Before execution: run guard #1. If input, permissions, or success criteria are incomplete, stop and report — do not guess.
  2. During execution: emit checkpoints (guard #2) at each irreversible boundary.
  3. Before any external action: push it to the side-effect queue (guard #3). It stays queued until validation passes.
  4. After generation/computation: run independent assertions (guard #5). Any failure triggers rebirth within the retry budget (guard #4). Local patches are forbidden — rebirth the whole unit.
  5. After success: write the audit log (guard #6). Confirmed failures are appended to the knowledge base (guard #7) in the same run — human review is rollback, not approval.

Human in the loop

Require explicit confirmation before:
- First use of a high-privilege tool.
- Any irreversible or external action (send, publish, pay, delete, external write).
- Low-confidence results.
- Retry budget exhausted or validation still failing.
- Overriding or deleting an accumulated rule. The append itself does not wait for approval — waiting is what kept the rule library empty.

Result validation pattern (guard #5)

This is the core. Never treat "the tool call returned successfully" as "the task is done."

After the workflow produces output:
  1. Force the model to self-check: output verifiable counts + assertions
  2. Code independently verifies the key invariants
  3. Any assertion fails → rebirth the whole unit (no local patch)
  4. Retry budget reached → report failure, stop, wait for human

Key invariants to assert depend on the workflow: field completeness, length limits, format contracts, JSON schema, non-empty critical sections, count equality (e.g. items == summaries).

Boundary trap: when asserting A == B, also assert A > 0. Otherwise A == B == 0 passes but is clearly broken.

Side-effect queue pattern (guard #3)

External actions must never fire directly from a "success" signal. They enter a queue and execute only after validation passes. This is what prevents an empty or broken output from reaching users, customers, or other systems.

Failure-rule accumulation (guard #7)

This guard is the reason a workflow stops repeating the same mistake. Two parts:

  • Where — ~/.workbuddy/ERROR-PLAYBOOK.md. The error knowledge base, indexed by operation type (write JSON/YAML/frontmatter, write files, run shell, call API, git, publish, compute, layout, facts/images). Do not create a second location.
  • When — in the same turn the failure is confirmed. Not at the end of the session, and not into a daily log.

The gate sits on the agent side

This guard used to require human approval before a new rule could be activated. That gate never fired: most failures are discovered while the agent runs unattended (automations, scheduled jobs), where no human is present to approve anything. The rule library stayed empty for two months while the same errors recurred.

The gate is now on the agent side. On a confirmed failure, append immediately:

现象 / 根因 / 可执行的正确做法 / 复发计数

If an entry for this failure already exists, increment the recurrence count; at count >= 2 promote it into the playbook's §1 recurrence board.

Human review still exists, but as rollback, not approval — a bad rule can be deleted or corrected afterwards. The cost of one redundant rule is far below the cost of repeating a known error.

Why the daily log is not the sink

Daily logs are organised by date; the retrieval key is operation type. The next time a JSON write fails, nothing leads back to a file named after a day in September. Experience organised by date is unretrievable experience.

Unattended runs

Most errors are found by the agent itself, mid-run, with no human present to trigger anything. Two consequences:

  1. Pre-execution check (#1) and result validation (#5) must be inlined into the automation prompt. A skill that is never loaded guards nothing.
  2. A failure found during an unattended run is still confirmed — append it to the playbook within that same run, and state that you did so in the run output.

Drift monitoring (guard #6)

Do not judge compliance on a single run. Track the compliance rate across runs. A single deviation in one run is an early warning; a trend across runs is an escalation. Catching drift at the first deviation prevents the "looks fine every day, then suddenly collapses" failure path.

Output format

After each guarded run, emit:

🛡️ Guardian Report
- Pre-check: ✅ / ❌
- Checkpoints: N
- Side-effects queued: N, executed: N
- Validation: ✅ / ❌ (assertions: X/Y passed)
- Retries used: N / budget
- Audit log: written / skipped
- Rule appended: yes/no (entries written to the knowledge base this run)
- Verdict: ✅ released / ❌ held for human

Limitations

  • Guards #5/#6 catch machine-checkable problems (format, count, keyword, length drift). They cannot catch style, semantics, or judgment drift — those need a separate review layer.
  • Guards add one validation step per run; budget it as <20% overhead.
  • The side-effect queue only protects actions routed through it. Actions fired outside the guardian are not covered.

Failure Handling

Scenario Action
Pre-check fails (missing input/permissions) Stop and report missing items; do not guess
Checkpoint crash mid-task Resume from last checkpoint; do not restart from scratch
Validation fails (assertion broken) Rebirth the whole unit within retry budget; no local patches
Retry budget exhausted Stop, report failure, wait for human confirmation
Side-effect queue blocked Hold all queued actions; do not release until validation passes
Audit log write fails Continue the run but flag the missing audit entry; do not mark fully complete
New rule appended Append immediately and flag it in the run output; human review may roll it back afterwards

Hard Rules

  1. Pre-execution check is mandatory; never skip it to save time.
  2. External actions must pass through the side-effect queue; no direct fire-on-success.
  3. Validation assertions must be independent — never trust "tool returned OK" as success.
  4. Rebirth the whole unit on failure; local patches are forbidden.
  5. Retry budget is capped; when exhausted, stop and wait for human.
  6. Audit log must be written for every run, including failures.
  7. Confirmed failures are appended to ~/.workbuddy/ERROR-PLAYBOOK.md by the agent in the same turn; human review is rollback, not approval. Never depend on a human being present to trigger the write — most failures surface during unattended runs.
  8. Drift is tracked across runs, not judged on a single run.

> 中文导语:Workflow Guard Rails 是多步骤 Agent 工作流的安全护栏,形态为"固定工作流 + 守护 Skill",不是自主 Agent。它通过七项守卫(执行前检查、检查点、副作用队列、预算重试、结果验证、审计记录、规则沉淀)拦截"假成功"、重复副作用、不可恢复崩溃和渐进漂移。当你说"这个自动化跑久了会不会哪天悄悄坏了""发出去的内容是不是真的验证过""重试会不会重复发"时,就应该用它。

常见问题

5 问
答案由本站依据条目字段整理
Workflow Guard Rails怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_7fbe8d41/workflow-guard-rails。安装方式为未标注。装完刷新技能列表或重开客户端。

Workflow Guard Rails支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Workflow Guard Rails权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Workflow Guard Rails收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Workflow Guard Rails用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。