ThumbGate: Command for Claude Code

.claude/commands/thumbgate-protect.md

thumbgate-protect is a command for Claude Code from IgorGanapolsky/ThumbGate. It costs 60 tokens per session (386 once invoked), scanned A, original, MIT.

A command for inspecting branch and release protection rules and requesting temporary permission to edit protected files. It applies only to narrowly specified paths and actions.

In plain words
What is it for?
Use it to check branch governance, identify blocked protected files, or approve a specific protected-file change for a limited time.
Why use it?
It explains what the repository protects and creates an auditable approval when a requested change needs an exception.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is IgorGanapolsky/ThumbGate's own configuration. It tells Claude Code how to work on ThumbGate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ThumbGate configures →

Part of the thumbgate plugin — 37 skills, 7 commands, 1 agent, 5 hooks, 2 MCP servers, 2 plugins shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to IgorGanapolsky/ThumbGate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/IgorGanapolsky/ThumbGate/main/.claude/commands/thumbgate-protect.md
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 37 skills, 7 commands, 1 agent, 5 hooks, 2 MCP servers, 2 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-protect

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/igorganapolsky/thumbgate/thumbgate-protect"><img src="https://agentmods.dev/badge/commands/igorganapolsky/thumbgate/thumbgate-protect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 386 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.00060 $0.00386
Opus 5 $0.00030 $0.00193
Sonnet 5 $0.00012 $0.00077
Haiku 4.5 $0.00006 $0.00039

Measured 10d ago against content hash 337a43b80300, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

thumbgate-protect 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 10d 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.

.claude/commands/thumbgate-protect.md · 31 lines

What it actually says

ThumbGate Protect

Inspect the protected-action posture for this project and, when the user explicitly approves, grant a scoped, expiring exception so a protected-file edit or publish can proceed under audit.

This command wraps existing ThumbGate capability — no new logic. It reads governance state and records a time-boxed approval.

Steps

  1. Read the current posture with the get_branch_governance MCP tool: which branches are protected, release rules, and the protected-file globs in effect.
  2. Report it plainly: what is protected, and what the agent is currently blocked from touching without approval.
  3. Only if the user explicitly asks to proceed, grant a scoped approval with approve_protected_action:
    • pathGlobs: the smallest set of protected globs the action needs.
    • reason: why this is approved (one sentence).
    • evidence: supporting note (tests passing, owner sign-off, etc.) when available.
    • ttlMs: keep it short — default is 1 hour, never exceed what the task needs.
  4. Confirm the approval id, covered globs, and expiry. Approvals are deliberately temporary and audited; re-run for the next task.

This is for granting narrow, temporary exceptions, not for disabling protection. Never use it to bypass branch governance wholesale.

Example

/thumbgate-protect
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. 10d ago First seen · 31 lines · 60 tokens per session scan A 337a43b80300

Subscribe to this mod's changes

thumbgate-protect is a command published in the GitHub repository IgorGanapolsky/ThumbGate (26 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 386 once invoked, about $0.0003 per session on Opus 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-08-30.