git-guard

by kyle · ★ 0 · updated 6 days ago

Status lineGuardsvalidates

0

Saves a git bundle of the repository before Bash commands that rewrite or delete git history: force pushes, filter-repo, reset --hard, branch and tag deletes.

install git-guard

Install

/plugin marketplace add ShaKy8/Claude-Mods
/plugin install git-guard@claude-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
tool.call
API calls
$.clock.now$.env.get$.fs.list$.process.run$.session.cwd$.ui.status$.ui.toast
Can see
Bash calls
Reach
level 2 of 3 runs processesreads filesreads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/ShaKy8/Claude-Mods
Path in repo
git-guard
Source commit
3f6842f the exact code the scan read
Author
kyle @ShaKy8
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

More from ShaKy8/Claude-Mods

boot-guard

ShaKy8/Claude-Mods

Takes a snapper snapshot before Bash commands that change dkms, kernel modules, limine, the initramfs or boot entries.

★ 0Status lineGuardsCommands

ship

ShaKy8/Claude-Mods

Git state in the status line, plus /ship to stage, commit and push in one step.

★ 0Status lineGuardsCommands