---
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.


---
Source attribution: IgorGanapolsky
Original project: https://github.com/IgorGanapolsky/mcp-memory-gateway/blob/076a3526e4cd12175bb9292ce85747824a5f033f/plugins/cursor-marketplace/skills/prevention-rules/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Igor Ganapolsky

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: IgorGanapolsky
Original project: https://github.com/IgorGanapolsky/mcp-memory-gateway/blob/076a3526e4cd12175bb9292ce85747824a5f033f/plugins/cursor-marketplace/skills/prevention-rules/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering
Roles: Backend Developer, DevOps / SRE, QA / Test Engineer
Specialties: Backend
Tools: Mcp
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: cfe8909ed8a1e43de238c8b2325349bdebbe92adfefd0a1ecd3e4acd0bd507f4
