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.
npx skills add IgorGanapolsky/ThumbGate --skill thumbgate-pretool-gategit clone --depth 1 https://github.com/IgorGanapolsky/ThumbGateWrote 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.
[](https://agentmods.dev/skills/igorganapolsky/thumbgate/thumbgate-pretool-gate)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
- 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.
- If this repository already has a ranked lesson for the same failure, deny the repeat.
- A warn on spend or on an internal policy is a warning. Show it. A warn is never an allow for a secret.
- 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"
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.
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.
- today Changed 1240b323016f
- 2d ago Changed 655436453102
- 3d ago Changed cc2217d30353
- 4d ago Changed bebd5d1888ae
- 5d ago Changed 34a5a019d17a
- 6d ago Changed 8418953441ca
- 7d ago Changed 831d8c7249a2
- 8d ago Changed fe2d47aed7f6
- 11d ago Changed 1df31ad84d29
- 14d ago First seen · 75 lines · 64 tokens per session scan A e2c38caaced5
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.
thumbgate-pretool-gate compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| thumbgate-pretool-gateIgorGanapolsky/ThumbGate | Skill | 34 | today | MIT | A | 64 | Claude Code |
| llamaguarddavila7/claude-code-templates | Skill | 35k | today | MIT | A | 74 | Claude Code, Codex |
| llamaguardsynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 74 | Claude Code, Codex |
| agentguardbmdhodl/agent47 | Skill | 4 | 17d ago | MIT | A | 37 | Claude Code, Codex |
| llamaguardOrchestra-Research/AI-Research-SKILLs | Skill | 15k | 1mo ago | MIT | A | 74 | Claude Code |
| vv-gatelm203688/swarmlabs-engine-kit | Skill | 0 | 2mo ago | MIT | A | 107 | Claude Code |
| safety-scanningMaxwellCalkin/sentinel-ai | Skill | 27 | 8mo ago | Apache-2.0 | A | 52 | Claude Code |