thumbgate-rules

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

A tool for listing the rules that currently block risky actions in a project and showing the lessons that caused those rules to be created.

In plain words
What is it for?
It is for reviewing prevention rules, tool-call reliability rules, and the past mistakes or lessons behind them.
Why use it?
It makes project guardrails understandable instead of leaving them as unexplained restrictions. Developers can see both what is blocked and why the protection exists.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the thumbgate plugin — 5 skills shipped together

Good fit It is for reviewing prevention rules, tool-call reliability rules, and the past mistakes or lessons behind them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/igorganapolsky/thumbgate/thumbgate-rules
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-rules
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-rules

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/igorganapolsky/thumbgate/thumbgate-rules"><img src="https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/thumbgate-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 770 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 36
    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 17
    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 41
    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 43
    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 50
    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.00175 $0.00770
Opus 5.5 $0.00070 $0.00308
Sonnet 5.5 $0.00035 $0.00154
Haiku 4.5 $0.00017 $0.00077

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

Security

Grade A, and why

thumbgate-rules 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 2mo 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-rules/SKILL.md · 55 lines

How it starts

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

ThumbGate Rules

Show the guardrails currently in force for this project: the auto-promoted prevention rules, the reliability rules, and the lessons they came from — so the user sees not just what is blocked but why.

This skill wraps existing ThumbGate capability and adds no new logic — it reads the live rule and lesson stores.

Workflow

  1. List active rules with the prevention_rules MCP tool (CLI fallback: npx thumbgate rules).
  2. Pull reliability rules with get_reliability_rules to show which tool-call shapes are gated.
  3. Surface the lesson behind each rule with search_lessons, so the user sees the origin, not just the block.
  4. Present a compact table (see the example below).
  5. If there are zero active rules, point the user to the thumbgate-guard skill to promote their first one.

Field-by-field tool output and how rules map to lessons are in references/rule-stores.md.

Example

Input: "what is ThumbGate protecting me from in this repo?"

Action: call prevention_rules + get_reliability_rules, enrich each with search_lessons, then:

Rule / Gate Blocks From lesson State
no-force-push-main git push --force to main overwrote a teammate's commit (2026-05) active
verify-before-deploy deploy without npm test shipped a broken build active

Troubleshooting

  • Empty list: no rules promoted yet — use the thumbgate-guard skill, or npx thumbgate rules returns nothing because the lesson store is fresh.
  • prevention_rules errors / MCP unreachable: fall back to npx thumbgate rules, then run the thumbgate-doctor skill to check wiring.
  • A rule exists but never blocks: that's an enforcement question — check the thumbgate-blocked skill for fire counts and the thumbgate-doctor skill for hook installation.

Quality checklist (self-verify before delivering)

  • I listed the live rules via prevention_rules (or the npx thumbgate rules fallback), not from memory.
  • I tied each rule to its originating lesson via search_lessons so the user sees why.
  • I distinguished prevention rules from reliability rules (get_reliability_rules).
  • On an empty store, I pointed to the thumbgate-guard skill instead of inventing rules.
  • I added no new logic — only read existing rule/lesson stores.

Read the full file on GitHub · 55 lines

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. 2mo ago First seen · 55 lines · 175 tokens per session scan A a7443d64609d

Subscribe to this mod's changes

thumbgate-rules is a skill published in the GitHub repository IgorGanapolsky/ThumbGate (34 stars, last pushed yesterday), licensed MIT. It adds 175 tokens to every session and 770 once invoked, about $0.0007 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-rules compared with skills from other repositories

thumbgate-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
thumbgate-rulesIgorGanapolsky/ThumbGateSkill34yesterdayMITA175Claude 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