What problem does it solve? Claude Code's PreToolUse guard only covers commits made through the agent; commits and pushes made directly from the shell or an IDE bypass those checks entirely. This Skill closes that gap by installing git-native hooks (pre-commit, commit-msg, prepare-commit-msg, post-commit, post-rewrite, pre-push) into the current repository so every commit path gets the same validation. ## Core Features & Use Cases - Idempotent hook installation: Copies hook scripts into the repo's hooks directory, skipping identical files and refusing to overwrite conflicting ones unless --force is passed (which creates timestamped backups first). - Smart path resolution: Detects repo-local core.hooksPath, creates a repo-local override when a global hooks path is inherited, and bakes the absolute plugin install path and Node.js executable into each hook. - Dry-run and conflict reporting: --dry-run previews every action without writing, and conflicts produce a unified diff so you can review before replacing. - Use Case: After installing the git-discipline plugin, run this Skill in each repository so that commits made from your IDE or terminal are validated by the same validate-body.sh logic as agent-driven commits, and re-run with --force after every plugin update to refresh the baked-in paths. ## Quick Start Ask the agent to run /git-discipline:install-hooks in the current repository to install the git hooks, optionally with --dry-run to preview or --force to overwrite existing hooks.