Works with the AI tools you already use
thumbgate pretool gate
Hard-block secret leaks and recurring agent mistakes using a pre-tool execution gate.
$9
thumbgate pretool gate
Example session with this skill installed
The agent is about to push a file containing an API key to a public gist. Use ThumbGate to check this action.
- Read your context and instructions
- Compiled the thumbgate pretool gate
I have intercepted the tool call to prevent a potential secret leak. The action has been blocked based on the ThumbGate pre-tool security policy.
Security Gate Interception Report
| Metric | Status | Detail |
|---|---|---|
| Action | DENIED | Attempted curl to gist.github.com |
| Violation Type | Secret Exfiltration | High-entropy string detected in payload |
| Rule Source | Local Gate Policy | secrets-pretool |
| Turn Status | Terminated | Execution halted to protect credentials |
Gate Feedback Log
{
"feedback": "up",
"context": "Agent attempted to upload file containing sensitive API keys to a public endpoint.",
"what-worked": "Hard block triggered on tool input scan",
"tags": ["secrets", "pretool"]
}
Next steps
- Run
npx thumbgate@1.37.2 gate-statsto see the total number of blocked exfiltration attempts. - Remove the sensitive keys from the source file or move them to a
.envfile excluded from the agent's scope. - Use
npx thumbgate@1.37.2 feedbackto document any specific context for this block.
Connects securely to your tools. The creator never sees your data.
About this skill
Standard LLM agents often leak environment secrets or repeat documented mistakes despite system prompts. This skill integrates ThumbGate into your agent's execution loop to provide a hard block on sensitive data exfiltration and recurring failures. It enforces a strict "deny-by-default" policy for secrets and ranked lessons, preventing the agent from proceeding with risky tool calls.
What it does
- Enforce secret-leak blocks by scanning tool commands, URLs, and file paths for sensitive data.
- Prevent recurring failures by checking tool calls against a local registry of ranked lessons.
- Scaffold gate infrastructure using
npx thumbgate initto set up local state and MCP configurations. - Track gate performance by recording "thumbs-down" feedback for misses and "thumbs-up" for successful blocks.
- Report gate statistics to provide a clear view of how many risky actions were prevented.
How it works
- Initialize the gate within the project directory to establish the local security state and MCP config.
- Execute pre-tool checks by piping tool calls through the gate-check command before execution.
- Capture feedback after an action to train the local model on what to block or what was missed.
- Monitor health by reviewing counters and stats to ensure the security policy is firing correctly.
Frameworks & tools
This skill utilizes the thumbgate npm package (v1.37.2) and integrates via npx commands. It is compatible with projects using Node.js and agents supporting Model Context Protocol (MCP) or CLI-based tool interception.
Why this beats prompting it yourself
Prompt-based instructions to "not leak secrets" are frequently ignored by models under pressure. This skill moves the logic into a hard execution gate that physically stops the tool call, ensuring that a warning results in a turn termination rather than a retry.
Use cases
- Prevent agents from accidentally posting
.envsecrets to external API endpoints. - Block the agent from repeating a specific coding pattern that previously failed a test.
- Integrate a local security firewall into Claude Code or Cursor workflows.
- Audit agent reliability by tracking how often the gate intercepts a failure.
Known limitations
Does not read home-directory credentials or environment variables. Does not replace branch protection or human review. Hosted Pro features like shared history are not included.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean today
- Passed all security checks, Safe to install
Needs access to