.agents/skills/thumbgate/SKILL.md
Pre-action gates for AI coding agents — capture thumbs-up/down feedback, generate prevention rules, and block known-bad patterns before they execute. Use when setting up ThumbGate, capturing feedback on agent actions, checking active prevention gates, debugging blocked actions, or exporting DPO training data. Triggers on: "thumbgate", "gate", "block mistake", "prevention rule", "feedback", "thumbs up", "thumbs down", "capture feedback", "what went wrong".
npx skillsauth add igorganapolsky/mcp-memory-gateway thumbgateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ThumbGate turns thumbs-up/down feedback into hard enforcement gates that block known-bad agent actions before they execute. Think of it as an immune system for your AI agent.
npm package: thumbgate
Docs: https://github.com/IgorGanapolsky/ThumbGate
If ThumbGate is not yet installed in this project:
npx thumbgate init
This bootstraps .thumbgate/ data directory and .mcp.json config. Works with
Codex, Cursor, Codex, Gemini CLI, Amp, OpenCode, and any MCP-compatible agent.
When an agent action succeeds or fails, capture it:
# Thumbs down — something went wrong
node .Codex/scripts/feedback/capture-feedback.js \
--feedback=down \
--context="what happened" \
--what-went-wrong="specific failure" \
--what-to-change="specific fix" \
--tags="tag1,tag2"
# Thumbs up — something worked
node .Codex/scripts/feedback/capture-feedback.js \
--feedback=up \
--context="what happened" \
--what-worked="specific thing that worked" \
--tags="tag1,tag2"
npm run feedback:rules # Show prevention rules generated from feedback
npm run feedback:stats # Feedback counts by signal, domain, importance
npm run feedback:summary # Aggregated summary of all feedback
npm run self-heal:check # Verify 4/4 subsystems healthy
npm run feedback:export:dpo # Export DPO preference pairs for fine-tuning
Gates are enforced via MCP PreToolUse hooks — the agent literally cannot execute a blocked action. This is hard enforcement, not a soft suggestion.
| Component | What it does | |-----------|-------------| | SQLite+FTS5 lesson DB | Fast full-text search across all feedback | | Thompson Sampling | Adaptive gate sensitivity per failure domain | | LanceDB + HuggingFace | Local vector search for semantic similarity | | ContextFS | Hierarchical context assembly with semantic caching | | PreToolUse hooks | Hard enforcement — blocks before execution |
When the MCP server is running, these tools are available to your agent:
| Tool | Purpose |
|------|---------|
| capture_feedback | Record thumbs-up/down on an agent action |
| search_lessons | Search past feedback by keyword, tag, or domain |
| recall | Retrieve relevant memories for current context |
| prevention_rules | View active prevention rules |
| gate_stats | See which gates are firing and their block rates |
| feedback_stats | Feedback counts and trends |
| export_dpo_pairs | Export DPO training pairs (Pro) |
| construct_context_pack | Build bounded context from feedback history |
Pro users ($19/mo or $149/yr) unlock:
Team rollout ($49/seat/mo, 3-seat minimum after intake) adds the shared hosted lesson DB, org dashboard, approval boundaries, and proof-backed workflow hardening sprint.
Upgrade: https://buy.stripe.com/7sYcN5bmIf5IcSd8qf3sI0a
For setup guides per agent, see: <references/setup-guides.md> For gate configuration, see: <references/gate-config.md>
testing
Make any ThumbGate-facing copy (landing pages, README, Reddit/LinkedIn/Bluesky posts, comparison pages, docs, outreach drafts) sound like ThumbGate — direct, technical, honest, anti-hype. Use BEFORE writing or editing any customer-facing or marketing text for ThumbGate.
tools
ThumbGate provides pre-action gates for AI coding agents. It captures thumbs-up/down feedback on agent actions, auto-promotes repeated failures into prevention rules, and blocks known-bad tool calls via PreToolUse hooks. Trigger when the user wants to add safety guardrails to an AI agent workflow, capture structured feedback on agent output, generate prevention rules from failure patterns, gate high-risk actions before execution, or export DPO training pairs from production feedback. Works with any MCP-compatible agent including Cursor, Codex, Gemini CLI, Amp, and OpenCode.
testing
# Skill: Verify Pricing Surfaces Repeatable skill for verifying all revenue-generating pages are live, have analytics, and have working Stripe links. Covers both ThumbGate and ApplyOps. ## When to use - Session startup (quick health check) - After any deploy to ThumbGate or ApplyOps - CEO asks "why aren't we making money?" or "is everything working?" - Before any pricing/checkout changes ## Steps ### 1. ThumbGate pricing surfaces ```bash # Homepage — all 3 analytics curl -sL https://thumbg
development
# Skill: Pull Funnel Data Repeatable skill for pulling checkout funnel analytics data from all sources into a readable local report. ## When to use - CEO asks "why aren't we making money?" or "what does the funnel look like?" - Before any pricing/checkout changes - Weekly revenue check-in ## Steps ### 1. Run the live Plausible poller ```bash cd /Users/igorganapolsky/workspace/git/igor/ThumbGate/repo npm run social:poll:plausible ``` This pulls live Plausible visitors, source attribution,