Prevention rules

From IgorGanapolsky/ThumbGate · View interactive version

Prevention rules is an AI agent skill from the GitHub repository IgorGanapolsky/ThumbGate. Generate and review prevention rules auto-promoted from repeated failure patterns.

How to use this skill

Skill file

Prevention Rules

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

When to use

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.