← Back to Skills Marketplace
johnnywang2001

Git Hooks Toolkit

by John Wang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
163
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install git-hooks-toolkit
Description
Generate, install, and manage Git hooks with pre-built templates. Includes hooks for linting staged files, enforcing conventional commits, blocking debug sta...
README (SKILL.md)

Git Hooks Toolkit

Install production-ready Git hooks in seconds with pre-built templates.

Quick Start

# List all available templates
python3 scripts/git_hooks.py list

# Install a hook
python3 scripts/git_hooks.py install pre-commit lint-staged
python3 scripts/git_hooks.py install commit-msg conventional

# Preview before installing
python3 scripts/git_hooks.py show pre-commit no-debug

# Check what's installed
python3 scripts/git_hooks.py status

# Remove a hook
python3 scripts/git_hooks.py remove pre-commit

Available Templates

pre-commit

  • lint-staged — Run ESLint/Ruff/Flake8 on staged files only
  • no-debug — Block console.log, debugger, pdb, breakpoint()
  • large-files — Prevent files over 500KB from being committed
  • format-check — Auto-run Prettier, Black, gofmt on staged files

commit-msg

  • conventional — Enforce Conventional Commits (feat/fix/docs/etc.)
  • ticket-ref — Require ticket reference (#123, PROJ-456)
  • no-wip — Block WIP commits on main/master/release branches

pre-push

  • run-tests — Auto-detect project type and run test suite
  • branch-protect — Prevent direct push to main/master

post-merge

  • install-deps — Auto-install deps when lockfiles change

Commands

  • list — Show all templates
  • install \x3Chook> \x3Ctemplate> [--repo path] [--force] — Install a hook
  • show \x3Chook> \x3Ctemplate> — Preview template content
  • status [--repo path] — Show installed hooks
  • remove \x3Chook> [--repo path] — Delete a hook
Usage Guidance
This package appears to do what it says: generate and install git hooks. Before installing, manually inspect the post-merge 'install-deps' template (the file was truncated in the listing) to confirm which install commands it runs. Note that hooks will run project commands (linters, tests, package managers) on your machine — auto-installing dependencies can execute package-manager postinstall scripts, which could be risky in untrusted projects. Also ensure python3 and git are available (the metadata omits required binaries). If you plan to use it on important repositories, run it in a disposable clone first or enable only specific templates you trust.
Capability Analysis
Type: OpenClaw Skill Name: git-hooks-toolkit Version: 1.0.0 The git-hooks-toolkit is a legitimate utility for managing Git hooks (pre-commit, pre-push, etc.) using pre-defined templates. The core script (scripts/git_hooks.py) provides functionality to list, install, and remove hooks by writing standard shell scripts to the .git/hooks directory. The templates themselves perform common development tasks like linting (ESLint, Ruff), formatting (Prettier, Black), and running tests (npm test, pytest), with no evidence of data exfiltration, obfuscation, or malicious intent.
Capability Assessment
Purpose & Capability
The skill name/description (git hooks generation/management) aligns with the included script and templates. However the runtime requires git and python3 (the SKILL.md shows running `python3 scripts/git_hooks.py` and the templates use git commands), yet the packaged metadata declares no required binaries — this is an omission that should be corrected.
Instruction Scope
SKILL.md tells the agent to run the bundled script to list/install/show/remove hooks, which is within scope. The hook templates themselves run linters, formatters, test suites, and (in the truncated post-merge template) auto-install dependencies; these are expected for such a tool but do allow executing arbitrary project commands and package-manager install scripts when hooks trigger. Review post-merge install-deps behavior before enabling in sensitive repos.
Install Mechanism
No install spec and no network downloads; the skill is delivered as source (script + SKILL.md). That minimizes installer risk — nothing will be fetched or written by an automated installer beyond what the script does when run by the user.
Credentials
The skill declares no required environment variables or credentials and the code does not attempt to read secrets. It does rely on local developer tools (git, npx/npm, linters, test runners) which are appropriate for its purpose.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or cross-skill privileges. It only writes hooks into a repository when explicitly invoked by the user, which is expected behavior.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install git-hooks-toolkit
  3. After installation, invoke the skill by name or use /git-hooks-toolkit
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of git-hooks-toolkit. - Generate, install, and manage Git hooks using ready-made templates. - Templates include enforcing commit conventions, linting staged files, blocking debug statements, preventing large file commits, auto-formatting, running tests pre-push, branch protections, and auto-installing dependencies after merge. - Intuitive CLI for listing, installing, previewing, checking status, and removing hooks. - Supports pre-commit, commit-msg, pre-push, and post-merge hook types.
Metadata
Slug git-hooks-toolkit
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Git Hooks Toolkit?

Generate, install, and manage Git hooks with pre-built templates. Includes hooks for linting staged files, enforcing conventional commits, blocking debug sta... It is an AI Agent Skill for Claude Code / OpenClaw, with 163 downloads so far.

How do I install Git Hooks Toolkit?

Run "/install git-hooks-toolkit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Git Hooks Toolkit free?

Yes, Git Hooks Toolkit is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Git Hooks Toolkit support?

Git Hooks Toolkit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Git Hooks Toolkit?

It is built and maintained by John Wang (@johnnywang2001); the current version is v1.0.0.

💬 Comments