thumbgate-guard

Solid

Turn the agent's most recent mistake into an enforced ThumbGate prevention rule (a PreToolUse block gate) so the same bad tool call is intercepted before it runs again, in this and every future session across Claude Code, Cursor, Codex, Gemini, Amp, and Cline. Captures the failure with the capture_feedback MCP tool, then force-promotes it via `npx thumbgate force-gate` so it is enforced, not just logged. Use when the user says "guard against this", "block this from happening again", "never do that again", "make that a rule", "stop the agent from repeating that", or right after a bad action or thumbs-down that should become a hard rule. Do NOT use to merely log a thumbs-up/down without enforcement (use the thumbgate-feedback skill), to recall prior context before starting work (use the Agent Memory skill), or to list rules that already exist (use the thumbgate-rules skill).

AI & Automation 24 stars 7 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ThumbGate Guard Escalate the agent's most recent mistake into an **enforced** ThumbGate prevention rule — a PreToolUse block gate that intercepts the same bad tool-call shape before it runs again, in this session and every future one (Claude Code, Cursor, Codex, Gemini, Amp, Cline). This skill wraps existing ThumbGate capability and adds **no new logic** — it routes to the real `capture_feedback` + force-promote path. ## Workflow 1. **Name the mistake.** From the recent conversation, state the specific bad action in one sentence (e.g. `git push --force origin main`, `DROP TABLE users`, deploy without tests). 2. **Capture it** with the `capture_feedback` MCP tool: `signal: "down"`, `context`, `whatWentWrong`, `whatToChange`, `tags`. If the user only gave a vague signal, pass the recent turns as `conversationWindow` / `chatHistory` for history-aware distillation instead of refusing. 3. **Promote it to an enforced gate:** ```bash npx thumbgate force-gate "<one-sentence context of the mistake>" ``` This prints the new `gateId` and the active gate count. 4. **Confirm enforcement.** Show the user the promoted rule and state that it is now a PreToolUse block — not just a logged note. Full `capture_feedback` field contract, `force-gate` flags, and the guided first-rule walkthrough (`npx thumbgate quickstart`) are in [references/capture-and-promote.md](references/capture-and-promote.md). ## Example Input: "the agent force-pushed to main and overwrote a...

Details

Author
IgorGanapolsky
Repository
IgorGanapolsky/ThumbGate
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

thumbgate

ThumbGate provides pre-action gates for AI coding agents. It captures thumbs-up/down feedback on agent actions, auto-promotes repeated failures into prevention rules, and blocks known-bad tool calls via PreToolUse hooks. Trigger when the user wants to add safety guardrails to an AI agent workflow, capture structured feedback on agent output, generate prevention rules from failure patterns, gate high-risk actions before execution, or export DPO training pairs from production feedback. Works with any MCP-compatible agent including Cursor, Codex, Gemini CLI, Amp, and OpenCode.

24 Updated today
IgorGanapolsky
AI & Automation Solid

thumbgate-rules

List the active ThumbGate prevention rules, reliability rules, and the promoted lessons behind them, so the user can see which guardrails are currently protecting this project and WHY each one exists. Reads the live rule and lesson stores via the prevention_rules, get_reliability_rules, and search_lessons MCP tools (CLI fallback `npx thumbgate rules`). Use when the user says "what is ThumbGate protecting me from", "show my rules", "show my gates", "what has the agent learned", "list active guardrails", or "what's blocked here". Do NOT use to CREATE a new rule (use the thumbgate-guard skill), to see runtime enforcement counts of what actually fired (use the thumbgate-blocked skill), or to diagnose whether ThumbGate is wired up at all (use the thumbgate-doctor skill).

24 Updated today
IgorGanapolsky
AI & Automation Solid

thumbgate-blocked

Show ThumbGate's enforcement record — how many risky actions were actually blocked versus warned, which gates fire most, the tokens/damage saved, and the full feedback to check to rejection pipeline. Reads live enforcement counters via the gate_stats and enforcement_matrix MCP tools (CLI fallback `npx thumbgate gate-stats`). Use when the user says "what has ThumbGate blocked", "show gate stats", "is enforcement working", "how many tokens did we save", "show the enforcement matrix", or "what got stopped". Do NOT use to list rule DEFINITIONS that exist (use the thumbgate-rules skill), to create a new rule (use the thumbgate-guard skill), or to check whether ThumbGate is installed and wired (use the thumbgate-doctor skill).

24 Updated today
IgorGanapolsky