workflow-guard-rails
БесплатноБез исполняемых скриптовНе проверенWrap multi-step agent workflows with pre-execution checks, side-effect queues, result validation, retry budgets, checkpointing, audit logs, and failure-rule…
от haiyangchenbj1 377 установок в других каталогахОб этом скилле
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 | Capture every confirmed failure in the same turn into the staging file ~/.workbuddy/ERROR-PLAYBOOK.staging.md; promote to the authoritative playbook on recurrence or human confirmation |
Recurring, un-codified errors |
Detailed patterns: for per-guard implementation details and example invariants by workflow type, load
references/guardian-patterns.md.
Operating procedure
- Before execution: run guard #1. If input, permissions, or success criteria are incomplete, stop and report — do not guess.
- During execution: emit checkpoints (guard #2) at each irreversible boundary.
- Before any external action: push it to the side-effect queue (guard #3). It stays queued until validation passes.
- 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.
- After success: write the audit log (guard #6). Confirmed failures are captured into the staging file (guard #7) in the same turn the failure is confirmed — staging is immediate and reversible; promotion into the authoritative playbook is gated (recurrence or human confirmation).
Human in the loop
Require explicit confirmation before:
- First use of a high-privilege tool.
- Any irrevers
Установить workflow-guard-rails в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл workflow-guard-rails?
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 护栏, 副作用队列, 漂移检测, 幂等, 防重复发送, 假成功, 断点恢复, 生产护栏, 重跑安全. Guard #7 (rule accumulation) captures confirmed failures in the same turn into a staging file (~/.workbuddy/ERROR-PLAYBOOK.staging.md). Entries reach the authoritative ~/.workbuddy/ERROR-PLAYBOOK.md only when the failure recurs (count >= 2) or a human confirms the rule — durable global guidance is never created by a single unreviewed append. 中文摘要:为多步骤 Agent 工作流加装七项护栏——执行前检查、检查点、副作用队列、预算 重试、结果验证、审计记录、规则沉淀,拦截假成功、重复发送与渐进漂移。触发词:工作流 守护、Agent 护栏、假成功拦截、防重复发送、重试预算、断点恢复、生产护栏、漂移检测.
Как установить скилл workflow-guard-rails?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл workflow-guard-rails запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic