thumbgate-guard

thumbgate-guard is a skill for Claude Code from IgorGanapolsky/ThumbGate. It costs 118 tokens per session (604 once invoked), scanned A, original, MIT.

A tool that turns a recent agent mistake into a rule that blocks the same risky tool action before it runs. The rule applies across supported coding-agent environments and future sessions.

In plain words
What is it for?
It is for capturing an agent failure, creating a prevention rule from it, and confirming that the rule is active as a pre-action block.
Why use it?
It prevents a known mistake from happening again instead of merely recording that it happened. This is useful for actions such as force-pushing protected branches or changing data destructively.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event.

Part of the thumbgate plugin — 5 skills shipped together

Good fit It is for capturing an agent failure, creating a prevention rule from it, and confirming that the rule is active as a pre-action block.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/igorganapolsky/thumbgate/thumbgate-guard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add IgorGanapolsky/ThumbGate --skill thumbgate-guard
Clone the repo
git clone --depth 1 https://github.com/IgorGanapolsky/ThumbGate

Made for: Claude Code.

Or install thumbgate, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for thumbgate-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/thumbgate-guard/github.svg)](https://agentmods.dev/skills/igorganapolsky/thumbgate/thumbgate-guard)
Your own site
<a href="https://agentmods.dev/skills/igorganapolsky/thumbgate/thumbgate-guard"><img src="https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/thumbgate-guard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for thumbgate-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/igorganapolsky/thumbgate/thumbgate-guard"><img src="https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/thumbgate-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 604 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 18
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium MCP Rug Pull · line 3
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 24
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 31
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 40
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 55
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.00604
Opus 5.5 $0.00047 $0.00242
Sonnet 5.5 $0.00024 $0.00121
Haiku 4.5 $0.00012 $0.00060

Measured 2d ago against content hash 36b6b4dce418, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

thumbgate-guard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/claude-directory/skills/thumbgate-guard/SKILL.md · 34 lines

What it actually says

ThumbGate Guard

Escalate the agent's most recent mistake into a prevention rule, and tell the user truthfully whether it will block the next attempt.

Workflow

  1. Name the mistake in one sentence, as a specific tool-call shape (for example git push --force origin main).
  2. Capture it with capture_feedback: signal: "down", context, whatWentWrong, whatToChange, tags, and lastAction. For a vague signal, pass the recent turns as conversationWindow.
  3. Check the rule with prevention_rules, and call gate_check with the same bad action to see the verdict.
  4. Report honestly:
    • Say the rule was saved, with the rule text the server returned.
    • Say it is blocked before it runs only if the local ThumbGate PreToolUse hook is installed in this project (the thumbgate-doctor skill checks). This plugin ships no hooks, so without the local install the rule is advisory: Claude reads it, but nothing stops the tool call.
    • If the hook isn't installed, point to https://thumbgate.ai/guide to add it.

Example

Input: "the agent force-pushed to main and overwrote a teammate's commit, never again"

  1. capture_feedback with signal: down, context: "force-pushed to main, overwrote a teammate's commit", whatWentWrong: "destructive force-push to a shared branch", whatToChange: "never force-push to main", tags: "git,force-push".
  2. gate_check on git push --force origin main: report the verdict.
  3. "Saved the rule. With the local ThumbGate hook installed, the next force-push to main is stopped before it runs; without it, the rule is advisory."

Quality checklist

  • One specific bad tool-call shape, not a vague complaint.
  • Captured with capture_feedback including whatWentWrong and whatToChange.
  • Verified with prevention_rules / gate_check, and quoted real results.
  • Claimed a block only when the local hook is installed.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · -24 lines · -83 tokens per session 36b6b4dce418
  2. 2mo ago First seen · 58 lines · 201 tokens per session scan A a1f835f59450

Subscribe to this mod's changes

thumbgate-guard is a skill published in the GitHub repository IgorGanapolsky/ThumbGate (34 stars, last pushed yesterday), licensed MIT. It adds 118 tokens to every session and 604 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

thumbgate-guard compared with skills from other repositories

thumbgate-guard next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
thumbgate-guardIgorGanapolsky/ThumbGateSkill34yesterdayMITA118Claude Code
llamaguarddavila7/claude-code-templatesSkill35ktodayMITA74Claude Code, Codex
llamaguardsynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A74Claude Code, Codex
agentguardbmdhodl/agent47Skill418d agoMITA37Claude Code, Codex
llamaguardOrchestra-Research/AI-Research-SKILLsSkill15k1mo agoMITA74Claude Code
vv-gatelm203688/swarmlabs-engine-kitSkill02mo agoMITA107Claude Code
safety-scanningMaxwellCalkin/sentinel-aiSkill278mo agoApache-2.0A52Claude Code