git-commit
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
Ships a commit skill and holds every Bash git commit to it: a commit the skill did not open, a blanket git add, a signature trailer, a secret, an ignored…
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
Adds a commit skill and checks every git command Claude runs in Bash against it: commits made outside the skill, blanket git add, AI signature lines, likely secrets, ignored files, and pushes or branch changes you did not ask for are stopped before git runs. It also blanks Claude Code's own commit attribution while on. It runs git locally, makes no network calls and only stores its on/off and mode settings.
Review details
Static review of the source at the pinned commit; not run. One module (hooks/register.ts plus command.ts, context.ts, finding.ts, gitargs.ts, message.ts, rules.ts, secrets.ts). Hooks: session.start (registers the /git-commit command: status, on, off, mode note|deny), command.run, turn.start and turn.complete (re-read settings, drop per-loop skill state), prompt.submit (keeps the last prompt typed by the person to see whether it mentions push or branch/checkout/switch, and detects a typed /git-commit:commit with its options; the prompt is not changed), tool.call for Skill (records that the commit skill was opened, per agent loop), skill.prompt for git-commit:commit (appends a repository state block from git status, the last 20 subjects, staged files and ignore checks), attribution.text kind commit (returns empty text while enabled, removing the engine's commit trailer), and tool.call for Bash (only commands containing the word git). For add, rm, commit, push, config, rebase, merge, switch, branch and checkout it parses the command text and runs read-only git queries through $.process.run (rev-parse, ls-files, check-ignore, log, status, diff --cached with --no-ext-diff), and replays the command's git add / rm --cached and commit staging into a temporary copy of the index (GIT_INDEX_FILE, copied with cp next to the real index in .git and deleted with rm -f afterwards; a leftover is named in the transcript), so the real index is never written. It reads the -F message file when one is named and stats operand paths. Findings in deny mode (default) stop the call with an explanation; in note mode the call runs and the findings are added as context after the result. Secret scanning reports only file, line and kind, never the value. Findings go to the shared sidebar via $.sidebar.set when that mod is installed, else $.ui.log. Runtime calls: $.store.get/set, $.process.run, $.fs.exists/stat/read, $.session.cwd, $.command.register, $.sidebar.set, $.ui.log. No network calls, no eval, no npm runtime dependencies (package.json has only dev dependencies; eslint.config.js and Makefile are not loaded). The skill has no allowed-tools and tells Claude to run git status, git log, git diff and to push only when asked. Heuristics such as the push/branch keyword check on the last prompt can block or allow more than intended; they only restrict git, never widen permissions.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Ships a commit skill and holds every Bash git commit to it: a commit the skill did not open, a blanket git add, a signature trailer, a secret, an ignored path, or a push or branch change nobody asked for is stopped before git runs.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/git-commit/)