git-hooks-setup
Pass
Audited by Gen Agent Trust Hub on Jun 25, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill executes shell commands to initialize git hooks via Husky (
husky init) or directly modifies files in the.git/hooks/directory. It also useschmod +xto ensure the hook scripts have execution permissions, which is necessary for their intended functionality. - [EXTERNAL_DOWNLOADS]: Automatically installs standard development utilities from the official NPM registry, including
@commitlint/cliand@commitlint/config-conventional, to enforce commit message standards. - [SAFE]: Includes a security-enhancing pre-commit hook that performs a local search for sensitive keywords like 'password', 'secret', 'token', and 'api_key' in staged files, helping to prevent accidental credential leakage.
Audit Metadata