5,431,817 AI resources indexedWorking toward the world’s largest AI resource index.

PDF

Prevention Rules

Generate and review prevention rules auto-promoted from repeated failure patterns.

Installable skillMITBy IgorGanapolskyUpdated Oct 31, 2026
INTENDED FOROpenClawInstall in a listed agent.

instructions.md

---
name: prevention-rules-bf349c26fe13
description: Generate and review prevention rules auto-promoted from repeated failure patterns.
---

# Prevention Rules

Manage prevention rules that are auto-generated from repeated failure patterns.

## When to use

- Reviewing current active prevention rules for the project
- Checking if a specific action is blocked by a prevention rule
- Understanding why an action was blocked
- Generating new prevention rules from observed patterns

## How it works

Use the `prevention_rules` MCP tool to:

1. **List rules** — View all active prevention rules with their match patterns and corrective actions.
2. **Check rules** — Test if a specific action matches any prevention rule before execution.
3. **Review rule history** — See which feedback events led to a rule's promotion.

## Example

```
Check prevention rules for "npm publish without running tests" to see if this action is blocked.
```

Prevention rules are auto-promoted when the same failure pattern appears multiple times in captured feedback. Each rule includes the original failure context and a corrective action.

Discuss this resource

Platform guidance

Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.