thumbgate-protect
Inspect this repo's branch and release governance (protected branches, release rules, protected-file globs) and, only when the user explicitly approves, grant…
от IgorGanapolsky★ 34 звезды на GitHub
Установить thumbgate-protect в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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 skill wraps existing ThumbGate capability and adds no new logic — it reads governance state and records a time-boxed approval.
Workflow
- Read the posture with the
get_branch_governanceMCP tool: protected branches, release rules, and the protected-file globs in effect. - Report it plainly: what is protected, and what the agent is currently blocked from touching without approval.
- Only if the user explicitly asks to proceed, grant a scoped approval with the
approve_protected_actionMCP tool — keeppathGlobsto the smallest set the action needs andttlMsas short as the task requires (default ~1 hour). - Confirm the approval id, covered globs, and expiry. Approvals are temporary and audited; re-run for the next task.
The full approve_protected_action field contract (pathGlobs, reason, evidence, ttlMs) and
the audit model are in
references/governance-and-approvals.md.
Example
Input: "main is protected but I need to hotfix the changelog — approve it for this one edit"
Action:
get_branch_governance→ confirmmainis protected andCHANGELOG.mdis in a protected glob.approve_protected_action→pathGlobs: ["CHANGELOG.md"],reason: "hotfix changelog entry",evidence: "owner OK in thread",ttlMs: 900000(15 min).- Report: approval id + "CHANGELOG.md is editable for 15 minutes, then protection resumes."
Troubleshooting
get_branch_governancereturns nothing: no governance configured — say so; don't invent protected branches.- User wants a broad/standing exception: decline. Grant the smallest glob + shortest TTL, or suggest changing governance config deliberately instead.
- Approval granted but edit still blocked: the glob may not cover the file, or the TTL expired —
re-check
pathGlobs/expiry; if the MCP path is unreachable, run the thumbgate-doctor skill.
Quality checklist (self-verify before delivering)
- I read the live posture with
get_branch_governancebefore saying anything about protection. - I granted an approval ONLY after the user explicitly asked to proceed.
- I used the smallest
pathGlobsand the shortest workablettlMs, never a blanket exception. - I reported the approval id + covered globs + expiry, and noted protection resumes after.
- I added no new logic — only read governance and recorded an existing time-boxed approval.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/governance-and-approvals.md
FAQ
Что делает скилл thumbgate-protect?
Inspect this repo's branch and release governance (protected branches, release rules, protected-file globs) and, only when the user explicitly approves, grant a scoped, time-limited exception so a protected-file edit or publish can proceed under audit. Reads posture via the get_branch_governance MCP tool and records a narrow, expiring approval via the approve_protected_action MCP tool. Use when the user says "is main protected", "show branch governance", "what am I blocked from editing", "approve this protected change", or "let me edit a protected file just this once". Do NOT use to disable protection wholesale, to grant broad or standing exceptions, or to diagnose hook wiring (use the thumbgate-doctor skill) — this skill is for narrow, temporary, audited approvals only.
Как установить скилл thumbgate-protect?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл thumbgate-protect запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…