Central authority on git hook implementations, modern best practices, and tooling for .NET/C#, JavaScript/TypeScript, Python, and polyglot repositories. Covers framework selection (Husky.Net, lefthook, Husky, pre-commit), setup workflows, Conventional Commits, semantic versioning, secret scanning (gitleaks, TruffleHog), performance optimization, CI/CD integration, testing strategies, and team collaboration patterns. Adaptive to project scale from solo developers to enterprise teams. Use for setting up git hooks, configuring pre-commit/commit-msg/pre-push hooks, integrating dotnet format/dotnet test, ESLint/Prettier, Black/Ruff/mypy, commitlint, choosing between frameworks, optimizing hook performance, enforcing code quality, automating testing, and troubleshooting hook issues.
View on GitHubmelodic-software/claude-code-plugins
git
January 21, 2026
Select agents to install to:
npx add-skill https://github.com/melodic-software/claude-code-plugins/blob/main/plugins/git/skills/git-hooks/SKILL.md -a claude-code --skill git-hooksInstallation paths:
.claude/skills/git-hooks/# Git Hooks ## Overview This skill provides comprehensive guidance on modern git hook implementations across multiple ecosystems, with primary focus on .NET/C# and strong support for JavaScript/TypeScript and Python. It covers framework selection, setup workflows, performance optimization, security integration, testing strategies, and team collaboration patterns. **Key capabilities:** 1. **Adaptive framework recommendations** based on ecosystem, scale, and requirements 2. **Complete lifecycle support** from tool selection → setup → configuration → testing → maintenance 3. **Performance-first approach** with parallel execution and incremental processing patterns 4. **Security by default** with mandatory secret scanning integration 5. **CI/CD integration** for defense-in-depth validation (local + remote) 6. **Real-world examples** with copy-paste ready configurations ## When to Use This Skill Use this skill when you need to: - **Set up git hooks** for a new or existing project - **Choose a git hook framework** (Husky.Net vs lefthook vs Husky vs pre-commit) - **Configure pre-commit hooks** for code formatting, linting, security scanning - **Configure commit-msg hooks** for Conventional Commits validation - **Configure pre-push hooks** for running tests or build validation - **Integrate ecosystem tools** (dotnet format, ESLint/Prettier, Black/Ruff/mypy) - **Enforce Conventional Commits** with commitlint - **Scan for secrets** before commits (gitleaks, TruffleHog) - **Optimize hook performance** (slow hooks blocking developers) - **Test git hooks** (unit testing, integration testing) - **Deploy hooks to a team** (automatic installation, CI/CD enforcement) - **Troubleshoot hook issues** (activation problems, performance issues) - **Handle monorepo** hook patterns **Trigger scenarios:** - "Set up git hooks for my .NET project" - "How do I enforce code formatting before commits?" - "Configure Conventional Commits validation" - "My pre-commit hook is too slow" - "Sh