git-hooks-manager

git-hooks-manager is a skill for Claude Code from glincker/claude-code-marketplace. It costs 25 tokens per session (1,935 once invoked), scanned A, original, Apache-2.0.

A setup and management tool for Git hooks, which are scripts that run automatically at events such as committing or pushing code.

In plain words
What is it for?
Use it to configure linting, formatting, tests, commit-message rules, pre-commit and pre-push checks, and tools such as Husky or pre-commit.
Why use it?
It automates checks before changes are committed or shared, reducing the chance that unformatted or failing code enters the repository.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Good fit Use it to configure linting, formatting, tests, commit-message rules, pre-commit and pre-push checks, and tools such as Husky or pre-commit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/glincker/claude-code-marketplace/git-hooks-manager
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add glincker/claude-code-marketplace --skill git-hooks-manager
Clone the repo
git clone --depth 1 https://github.com/glincker/claude-code-marketplace

Made for: Claude Code.

Its marketplace also offers this one on its own, as the plugin git-hooks-manager — /plugin install git-hooks-manager after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-hooks-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/glincker/claude-code-marketplace/git-hooks-manager/github.svg)](https://agentmods.dev/skills/glincker/claude-code-marketplace/git-hooks-manager)
Your own site
<a href="https://agentmods.dev/skills/glincker/claude-code-marketplace/git-hooks-manager"><img src="https://agentmods.dev/badge/skills/glincker/claude-code-marketplace/git-hooks-manager/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-hooks-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/glincker/claude-code-marketplace/git-hooks-manager"><img src="https://agentmods.dev/badge/skills/glincker/claude-code-marketplace/git-hooks-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.01935
Opus 5.5 $0.00010 $0.00774
Sonnet 5.5 $0.00005 $0.00387
Haiku 4.5 $0.00003 $0.00194

Measured 1mo ago against content hash dffa2e86698e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-hooks-manager scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/automation/git-hooks-manager/SKILL.md · 320 lines

How it starts

The opening of the file, as written. The whole thing — 320 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Hooks Manager

Setup automated git hooks for pre-commit and pre-push workflows. Enforce code quality, run tests, format code, and prevent bad commits from reaching your repository.

What This Skill Does

  • Creates pre-commit hooks (lint, format, test)
  • Sets up pre-push hooks (full test suite)
  • Installs commit-msg hooks (enforce conventions)
  • Configures husky or manual hooks
  • Prevents commits with failing checks
  • Auto-formats code before commit

Instructions

Phase 1: Detect Project Type

Use Read to check:
- package.json → Node.js (use husky)
- pyproject.toml → Python (use pre-commit)
- .git/hooks → Manual hooks

Phase 2: Node.js Setup (Husky)

Install husky:

npm install --save-dev husky lint-staged
npx husky init

Configure package.json:

{
  "scripts": {
    "prepare": "husky"
  },
  "lint-staged": {
    "*.{js,jsx,ts,tsx}": [
      "eslint --fix",
      "prettier --write"
    ],
    "*.{json,md,yml}": [
      "prettier --write"
    ]
  }
}

Pre-commit hook (.husky/pre-commit):

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo "🔍 Running pre-commit checks..."

# Run linter
npm run lint || exit 1

# Format code
npx lint-staged || exit 1

# Run tests on staged files
npm test -- --findRelatedTests $(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(js|jsx|ts|tsx)$' | tr '\n' ' ') || exit 1

echo "✅ Pre-commit checks passed!"

Pre-push hook (.husky/pre-push):

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo "🔍 Running pre-push checks..."

# Run full test suite
npm test || exit 1

# Check types (if TypeScript)
npm run type-check || exit 1

# Build check
npm run build || exit 1

echo "✅ Pre-push checks passed!"

Commit-msg hook (.husky/commit-msg):

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Enforce conventional commits
npx --no -- commitlint --edit $1 || exit 1

Phase 3: Python Setup (pre-commit)

.pre-commit-config.yaml:

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.5.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
      - id: check-added-large-files
      - id: check-json
      - id: check-merge-conflict
      - id: detect-private-key

  - repo: https://github.com/psf/black
    rev: 23.12.1
    hooks:
      - id: black
        language_version: python3.11

  - repo: https://github.com/pycqa/flake8
    rev: 7.0.0
    hooks:
      - id: flake8
        args: ['--max-line-length=88', '--extend-ignore=E203']

  - repo: https://github.com/pycqa/isort
    rev: 5.13.2
    hooks:
      - id: isort
        args: ['--profile', 'black']

  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.8.0
    hooks:
      - id: mypy
        additional_dependencies: [types-all]

  - repo: local
    hooks:
      - id: pytest
        name: pytest
        entry: pytest
        language: system
        pass_filenames: false
        always_run: true

Read the full file on GitHub · 320 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 320 lines · 25 tokens per session scan A dffa2e86698e

Subscribe to this mod's changes

git-hooks-manager is a skill published in the GitHub repository glincker/claude-code-marketplace (37 stars, last pushed 21d ago), licensed Apache-2.0. It adds 25 tokens to every session and 1,935 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

implementing-secret-scanning-with-gitleaks

This skill covers implementing Gitleaks for detecting and preventing hardcoded secrets in git repositories. It addresses configuring pre-commit hooks, CI/CD pipeline integration, custom rule authoring for organization-specific secrets, baseline management for existing repositories, and remediation workflows for…

xalgorix/xalgorix · 63 tokens

prek

Use when setting up or running hooks with prek in any repository. prek is a Rust drop-in alternative to pre-commit for running Git hooks that check, format, lint, and validate code and repository files. Prefer it when speed, workspace mode, built-in hooks, shared toolchains, or native TOML configuration matter.

j178/prek · 67 tokens

gate

MANDATORY before every commit and push. All gates must pass — Gates 1–3 always run; Gates 4 (Docker) and 5 (Cloud) run only when applicable. Do NOT proceed if any gate fails — fix the issue first.

rajitsaha/100xprism · 0 tokens

validate-changes

Evaluate staged changes using LLM-as-a-Judge before committing.

FlorianBruniaux/claude-code-plugins · 16 tokens

catchup

Restore context after /clear by summarizing recent work and project state.

FlorianBruniaux/claude-code-plugins · 16 tokens

trim-text

Trim and rewrite prose, such as PR and issue bodies or agent instructions: the point first, then the minimum why. Use for "trim this text", "tighten the PR body", or "this instruction is too long"; for code comments, use trim-comments.

cboone/agent-harness-plugins · 57 tokens