git-hooks
Manage Git hooks for automating pre-commit, pre-push, and other lifecycle events.
от Andersonlimahw★ 19 звёзд на GitHub
Установить git-hooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Git Hooks Skill
Install, manage, and troubleshoot client-side Git hooks.
Capabilities
- List hooks:
ls .git/hooks/ - View hook content:
cat .git/hooks/<hook-name> - Install hook: Create executable script in
.git/hooks/<hook-name> - Remove hook:
rm .git/hooks/<hook-name> - Bypass hook:
git commit --no-verify/git push --no-verify - Share hooks: Use
.githooks/directory withgit config core.hooksPath .githooks - Available hooks:
pre-commit,prepare-commit-msg,commit-msg,post-commit,pre-push,post-checkout,post-merge,pre-rebase,post-rewrite,pre-auto-gc
Common Hooks
pre-commit
#!/bin/sh
# Run linters, tests, or format checkers
npx lint-staged
commit-msg
#!/bin/sh
# Validate conventional commit format
grep -Eq "^(feat|fix|chore|docs|refactor|test|style)\(.*\): .{1,72}" "$1"
pre-push
#!/bin/sh
# Run full test suite before push
npm test
Usage
Triggered when user says "hooks", "git hooks", "pre-commit hook", "pre-push hook".
For shared hooks, use .githooks/ directory approach. Make hooks executable with chmod +x.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл git-hooks?
Manage Git hooks for automating pre-commit, pre-push, and other lifecycle events.
Как установить скилл git-hooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-hooks запускает скрипты?
Нет, скилл состоит только из инструкций (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…