Home / Claude Code mods / Security / commit-guard

commit-guard

commit-guard is a Claude Code mod by irfanfaraaz that never commits docs/superpowers, never pushes unless you said push, asks before committing on main/staging/prod.

Updated 2026-10-11

What is commit-guard?

commit-guard is a Claude Code mod by irfanfaraaz that never commits docs/superpowers, never pushes unless you said push, asks before committing on main/staging/prod. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorirfanfaraaz
Repositoryirfanfaraaz/claude-kit
Popularityno public popularity data yet
CategorySecurity
SecurityHigh risk (56/100)
Rank#3,461 of 5,272 Claude Code mods; #377 in Security
Last commit2026-10-11
Hooks2 events
SeesBash calls, every prompt
Draws onnothing

Is commit-guard safe to install?

commit-guard scores 56/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 3 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
Doesn't drive ClaudePass
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.env.getreads env vars
$.process.runruns processes
$.session.cwd
$.ui.askdraws interface
$.ui.toastdraws interface

How do I install commit-guard?

  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/irfanfaraaz/claude-kit
    claude plugin validate ./claude-kit/mods/commit-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/irfanfaraaz/claude-kit && claude --plugin-dir ./claude-kit/mods/commit-guard

Or ask Claude to set it up

Paste this into Claude Code and it installs commit-guard for you:

Install the "commit-guard" Claude Code mod from https://github.com/irfanfaraaz/claude-kit/tree/main/mods/commit-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from irfanfaraaz/claude-kit

This repository has at least 9 Claude Code mods on MCPMods.

  • carousel-ship: After a carousel render: Caption, Queue Threads and Log ledger buttons; blocks Threads posts with a part over 500 charac (Low risk)
  • ctx-keeper: Cache countdown, context, limits and cost band; past 350k it runs /re-fresh, copies it, compacts and pastes it back (High risk)
  • env-bootstrap: Per-project Node version on PATH and env file auto-loaded for Bash, so Claude stops typing nvm use / source .env (Review before installing)
  • git-band: Git state above the prompt: branch, upstream, ahead/behind, Claude vs your changes, PR and CI, worktree, stash; toasts w (Low risk)
  • hybrid-agents: Subagents default to Sonnet; pasting a plan path adds the hybrid rule (inline small tasks, Sonnet subagents for big ones (Low risk)
  • rm-to-trash: Rewrites rm into macOS trash so deletes are recoverable and stop hitting the rm deny rule (Low risk)
  • tool-preload: Keeps context-mode, jcodemunch, claude-mem, WebSearch, Task and Supabase tools loaded so Claude stops calling ToolSearch (Low risk)
  • turn-coach: One fork per turn: a verdict on work turns (solved, gaps, shortcuts) plus up to 3 next prompts, in one compact block abo (Low risk)