git-guardrails-claude-code
БесплатноЗапускает вложенные скриптыНе проверенInstall Claude hooks blocking dangerous git commands before execution.
от redpanda-data★ 34 звезды на GitHubОб этом скилле
Git Guardrails
Install PreToolUse Bash hook blocking dangerous git before Claude runs it.
Blocks: git push, git reset --hard, git clean -f/-fd, git branch -D, git checkout ., git restore ..
Steps
- Ask scope: project
.claude/settings.jsonor global~/.claude/settings.json. - Copy bundled
scripts/block-dangerous-git.shto:- project:
.claude/hooks/block-dangerous-git.sh - global:
~/.claude/hooks/block-dangerous-git.sh
- project:
chmod +xhook.- Add PreToolUse Bash command in chosen settings:
{"hooks":{"PreToolUse":[{"matcher":"Bash","hooks":[{"type":"command","command":".claude/hooks/block-dangerous-git.sh"}]}]}}
- Test with blocked command. Confirm hook denies.
Установить git-guardrails-claude-code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл git-guardrails-claude-code?
Install Claude hooks blocking dangerous git commands before execution.
Как установить скилл git-guardrails-claude-code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-guardrails-claude-code запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic