Mnemotek-based CLI/MCP/skill: installs a core.hooksPath dispatcher plus
bundled protected-branch, large-file, and secret-scan pre-commit checks. No
server, no daemon.
hooks — {action: 'install' | 'list', hooks?: string[], dir?: string, force?: boolean}
- install: refuses if an existing non-sample
.git/hooks/*file or a.husky/directory is detected, unlessforce: true. Otherwise setscore.hooksPathtodir(default.githooks) and writes an executable dispatcher script per requested hook name (default['pre-commit']). Requestingpre-commitalso installs three bundled checks:pre-commit-protected-branch(blocks direct commits tomain/develop, no bypass other than git's own--no-verify),pre-commit-large-file(blocks staged files overGIT_HOOKS_MAX_FILE_SIZE_BYTES, default 5MB), andpre-commit-secret-scan(a built-in regex scan for common secret patterns — AWS keys, private-key headers, secret/token/password assignments — with a loud stderr warning that coverage is limited since no dedicated secret-scanning tool is installed). - list: reports which known git hook names have a dispatcher installed
under the configured
dir.
git-hooks-tool hooks --action install
git-hooks-tool hooks --action list