git-hooks-toolkit

Generate, install, and manage Git hooks with pre-built templates. Includes hooks for linting staged files, enforcing conventional commits, blocking debug statements, preventing large file commits, auto-formatting code, requiring ticket references, protecting branches, running tests before push, and auto-installing dependencies after merge. Use when setting up git hooks, enforcing commit conventions, or automating pre-commit/pre-push checks.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "git-hooks-toolkit" with this command: npx skills add johnnywang2001/git-hooks-toolkit

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 <hook> <template> [--repo path] [--force] — Install a hook
  • show <hook> <template> — Preview template content
  • status [--repo path] — Show installed hooks
  • remove <hook> [--repo path] — Delete a hook

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

GigaChat (Sber AI) Proxy

Integrate GigaChat (Sber AI) with OpenClaw via gpt2giga proxy

Registry SourceRecently Updated
3600smvlx
General

TencentCloud Video Face Fusion

通过提取两张人脸核心特征并实现自然融合,支持多种风格适配,提升创意互动性和内容传播力,广泛应用于创意营销、娱乐互动和社交分享场景。

Registry SourceRecently Updated
General

TencentCloud Image Face Fusion

图片人脸融合(专业版)为同步接口,支持自定义美颜、人脸增强、牙齿增强、拉脸等参数,最高支持8K分辨率,有多个模型类型供选择。

Registry SourceRecently Updated
General

YoudaoNote News

有道云笔记资讯推送:基于收藏笔记分析关注话题,推送最新相关资讯。支持对话触发与每日定时推送(如早上9点)。触发词:资讯推送、设置资讯推送、生成资讯推送。

Registry SourceRecently Updated
1.5K1lephix