thumbgate-doctor

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

A health-check skill for ThumbGate, which adds checks that stop an AI agent from taking known-risky actions.

In plain words
What is it for?
For checking hooks, the MCP server, the lesson store, the status display, and overall agent readiness.
Why use it?
It shows whether ThumbGate is actually connected and identifies missing setup instead of leaving failures unexplained.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event.

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

Good fit For checking hooks, the MCP server, the lesson store, the status display, and overall agent readiness.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/igorganapolsky/thumbgate/thumbgate-doctor"><img src="https://agentmods.dev/badge/skills/igorganapolsky/thumbgate/thumbgate-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 782 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: 10 findings, up to medium

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 →

  • 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 19
    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 25
    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 36
    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 38
    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 44
    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 48
    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 52
    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 54
    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.00168 $0.00782
Opus 5 $0.00084 $0.00391
Sonnet 5 $0.00034 $0.00156
Haiku 4.5 $0.00017 $0.00078

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

Security

Grade A, and why

thumbgate-doctor 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 11d 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.

skills/thumbgate-doctor/SKILL.md · 57 lines

How it starts

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

ThumbGate Doctor

Audit whether ThumbGate is actually wired into this agent — PreToolUse / SessionStart hooks installed, MCP server reachable, lesson store present, statusline, overall agent-readiness — then tell the user exactly what to fix.

This skill wraps existing ThumbGate capability and adds no new logic — it runs the existing doctor + integrity checks.

Workflow

  1. Run the wiring/health audit:
    npx thumbgate doctor
    
    (Add --json for a machine-readable report.) It exits non-zero when the project is not ready.
  2. Verify the runtime path with the check_operational_integrity MCP tool — this confirms the server-side enforcement path is live, not just the local config.
  3. Summarize: ✅ what's wired (hooks, MCP, store, statusline) and ❌ what's missing, each with its exact fix command (usually npx thumbgate init).
  4. Lead with the fix. If everything is green, say so plainly with the readiness status; if not, lead with the single highest-impact fix.

The full readiness checklist (each check, what a failure means, and its fix) is in references/wiring-checklist.md.

Example

Input: "why aren't my gates firing? is ThumbGate even wired up?"

Action: run npx thumbgate doctor, then check_operational_integrity, then:

❌ PreToolUse hook not installed — run npx thumbgate init. ✅ MCP server reachable. ✅ Lesson store present. Fix the hook and your promoted rules will start blocking.

Troubleshooting

  • npx thumbgate doctor exits non-zero: that's the point — read which checks failed and apply the printed fix (usually npx thumbgate init).
  • Doctor green but gates still don't fire: the rule may not be active — check the thumbgate-rules skill — or no gated action has been attempted yet — check the thumbgate-blocked skill.
  • check_operational_integrity unreachable while doctor is green: local config is fine but the MCP server isn't running — restart it (npx thumbgate serve).

Read the full file on GitHub · 57 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. 11d ago First seen · 57 lines · 168 tokens per session scan A 6b6e3c3263cc

Subscribe to this mod's changes

thumbgate-doctor is a skill published in the GitHub repository IgorGanapolsky/ThumbGate (26 stars, last pushed today), licensed MIT. It adds 168 tokens to every session and 782 once invoked, about $0.0008 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.

Related

Other skills, from other repositories

learning-from-experience

Turns incidents, near misses, bad handoffs, review surprises, escaped bugs, and signals from real use into lasting fixes to your safeguards. Use after something went wrong or nearly did and a future safeguard should change. Do not use during a live incident, which comes first, or to blame someone.

FlyFission/nuclear-grade-context-engineering · 65 tokens

reporting-shared-defects

Routes a defect found in a shared or supplied artifact (a shared prompt, skill, dependency, model, eval, or template) to the downstream teams, agents, and releases that depend on it, not just a local fix. Use when a discovered defect affects others who consume the same artifact. Do not use for a defect local to your…

FlyFission/nuclear-grade-context-engineering · 93 tokens

responding-to-incidents

Runs a live incident the stabilize-first way — name a commander, separate facts from hypotheses, prefer reversible actions, communicate on a cadence, and drive corrective actions to closure. Use when production is broken, data is at risk, or an agent action caused harm. Do not use for routine non-incident work, or as…

FlyFission/nuclear-grade-context-engineering · 80 tokens

bug-fix

Guided end-to-end bug-fix workflow for Plan Forge tempering bugs — load → pre-fix review → write failing test → fix → validate → post-fix sweep → close. Composes /code-review, /clean-code-review, /forge-quench, and /test-sweep around the forgebug tool surface so a fix never closes without a regression check.

srnichols/plan-forge · 80 tokens

forge-troubleshoot

Diagnose and resolve Plan Forge issues — failed runs, broken validation gates, misconfigured environments, stalled slices, and orchestrator errors. Use when a plan run fails or the forge behaves unexpectedly.

srnichols/plan-forge · 44 tokens

audit-loop

Run a recursive audit drain loop — discover findings from the running system, triage each into bug/spec/classifier lanes, repeat until convergence. USE FOR: end-to-end audit of a deployed or locally-running app, draining findings to zero. DO NOT USE FOR: single-shot tempering runs (use forgetemperingrun), one-off bug…

srnichols/plan-forge · 100 tokens