git-gates

git-gates is a Claude Code mod by bahaospanov that gates git work: no commit, push or merge without the user's say-so in the current turn; a push to a branch that already landed is refused; an MR whose branch lacks the target's latest.

Updated 2026-10-15

What is git-gates?

git-gates is a Claude Code mod by bahaospanov that gates git work: no commit, push or merge without the user's say-so in the current turn; a push to a branch that already landed is refused; an MR whose branch lacks the target's latest. It is listed under Git & CI and has no public popularity data yet.

TypeClaude code mod
Authorbahaospanov
Repositorybahaospanov/skills
Popularityno public popularity data yet
CategoryGit & CI
SecurityReview before installing (60/100)
Rank#2,692 of 5,272 Claude Code mods; #205 in Git & CI
LicenseMIT
Last commit2026-10-15
Hooks3 events
Sees/"^mcp__(plugin_)?git-gates__grant$"/ calls, Bash calls, every prompt
Draws onnothing

Is git-gates safe to install?

git-gates scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.env.getreads env vars
$.fs.readreads files
$.model.completedrives Claude
$.process.runruns processes
$.session.cwd
$.session.messagesreads the transcript
$.tool.registerdrives Claude
$.ui.logdraws interface
$.ui.statusdraws interface

How do I install git-gates?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/bahaospanov/skills
    claude plugin validate ./skills/git-gates
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add bahaospanov/skills && claude plugin install git-gates@bahaospanov

Or ask Claude to set it up

Paste this into Claude Code and it installs git-gates for you:

Install the "git-gates" Claude Code mod from https://github.com/bahaospanov/skills/tree/main/git-gates. Run claude plugin validate on it first and show me what it can access before you enable it.

More from bahaospanov/skills

This repository has 6 Claude Code mods on MCPMods.

  • git-cleanup: Cleans up after merged work, once it shipped: removing a branch needs git, the forge or the user to say it merged; remov (High risk)
  • issue-first: Feature work starts from an issue: a feat commit naming none is refused until Claude finds the issue, drafts one the use (Review before installing)
  • lean-comments: Comments worth keeping: limit-edits flags comment-heavy edits, limit-turns sends a follow-up when a turn's diff adds too (Review before installing)
  • lean-docs: Docs worth keeping: docs-review asks Haiku whether new text will be read again, docs-no-repeat-code blocks lines that re (Review before installing)
  • lean-scripts: Scripts worth keeping: scripts-review asks Haiku whether a new script could just be typed again when needed. (Review before installing)