thumbgate-pretool-gate

thumbgate-pretool-gate is a skill for Claude Code from IgorGanapolsky/ThumbGate. It costs 64 tokens per session (773 once invoked), scanned A, original, MIT.

A pre-action safety check for AI coding tools. It examines a proposed tool call and can block secret exposure or a repeated mistake before the call runs.

In plain words
What is it for?
Use it to inspect commands, URLs, and file paths before execution; block secret uploads or printing; and apply ranked lessons as prevention rules.
Why use it?
It prevents a warning from being mistaken for permission to leak a secret, and stops the same recorded failure from being repeated. A secret is information such as an API key or password.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event.

Part of the thumbgate plugin — 89 skills, 8 commands, 1 agent, 10 hooks, 2 MCP servers, 3 plugins shipped together

Good fit Use it to inspect commands, URLs, and file paths before execution; block secret uploads or printing; and apply ranked lessons as prevention rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/igorganapolsky/thumbgate/thumbgate-pretool-gate
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-pretool-gate
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 89 skills, 8 commands, 1 agent, 10 hooks, 2 MCP servers, 3 plugins.

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-pretool-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/thumbgate-pretool-gate/github.svg)](https://agentmods.dev/skills/igorganapolsky/thumbgate/thumbgate-pretool-gate)
Your own site
<a href="https://agentmods.dev/skills/igorganapolsky/thumbgate/thumbgate-pretool-gate"><img src="https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/thumbgate-pretool-gate/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-pretool-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/igorganapolsky/thumbgate/thumbgate-pretool-gate"><img src="https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/thumbgate-pretool-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 773 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.
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.00064 $0.00773
Opus 5.5 $0.00026 $0.00309
Sonnet 5.5 $0.00013 $0.00155
Haiku 4.5 $0.00006 $0.00077

Measured today against content hash 1240b323016f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

thumbgate-pretool-gate 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 today.

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.

distribution/agensi/thumbgate-pretool-gate/SKILL.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ThumbGate pre-tool gate

ThumbGate checks a tool call before it runs. Ranked lessons become prevention rules. A detected secret is a deny. A warning is not permission to continue a secret leak.

The public package is thumbgate at version 1.58.6. Hosted Pro (shared lesson history, dashboard, proof) is a separate product at https://thumbgate.ai and is not included in this file.

Install

Run this in the project the agent is editing:

npx [email protected] init

That scaffolds local gate state and the MCP config. It talks only to the npm registry and, if the user asks for a trial note, to thumbgate.ai. Do not add another installer, a pipe into a shell, or a host that is not in external_urls.

Before the tool call

  1. Read the command, the URL, and the file path. If any of them would print, post, upload, or copy a secret, deny the call. Do not paste the secret into a replacement command.
  2. If this repository already has a ranked lesson for the same failure, deny the repeat.
  3. A warn on spend or on an internal policy is a warning. Show it. A warn is never an allow for a secret.
  4. A deny stops the action. Do not add a bypass flag, a force flag, or a second attempt that hides the same payload.

Pipe the tool call through the public checker when the host agent does not already run the hook:

npx [email protected] gate-check

Send a PreToolUse JSON object on stdin:

{
  "tool_name": "<tool name>",
  "tool_input": { "...": "..." }
}

Parse the JSON response. If hookSpecificOutput.permissionDecision is "deny", stop the turn and do not run the tool call. Do not rely on the process exit status; denied calls exit with status 0. Treat checker errors or an invalid response as a failure and do not run the tool call.

After the action

When a gate should have fired and did not, record the miss:

npx [email protected] feedback --feedback=down --context="what happened" --what-went-wrong="specific failure" --what-to-change="specific fix" --tags="secrets,pretool"

Read the full file on GitHub · 75 lines

Files

What ships with it

2 files 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. today Changed 1240b323016f
  2. 2d ago Changed 655436453102
  3. 3d ago Changed cc2217d30353
  4. 4d ago Changed bebd5d1888ae
  5. 5d ago Changed 34a5a019d17a
  6. 6d ago Changed 8418953441ca
  7. 7d ago Changed 831d8c7249a2
  8. 8d ago Changed fe2d47aed7f6
  9. 11d ago Changed 1df31ad84d29
  10. 14d ago First seen · 75 lines · 64 tokens per session scan A e2c38caaced5

Subscribe to this mod's changes

thumbgate-pretool-gate is a skill published in the GitHub repository IgorGanapolsky/ThumbGate (34 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 773 once invoked, about $0.0003 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-30.

Related

thumbgate-pretool-gate compared with skills from other repositories

thumbgate-pretool-gate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
thumbgate-pretool-gateIgorGanapolsky/ThumbGateSkill34todayMITA64Claude Code
llamaguarddavila7/claude-code-templatesSkill35ktodayMITA74Claude Code, Codex
llamaguardsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A74Claude Code, Codex
agentguardbmdhodl/agent47Skill417d 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