branch-guard 0.1.0
Stops Claude from editing files or running mutating git commands on main or master, and points it at a worktree instead.
Install
/plugin marketplace add Justmalhar/awesome-claude-mods /plugin install branch-guard@awesome-claude-mods
Run both lines inside Claude Code.
Hooks into
- Tool calls
Also in Justmalhar/awesome-claude-mods
- auto-checkpoint 0.1.0 Snapshots the working tree into hidden git refs at the start of every turn, with /checkpoints to list them and /undo-turn to roll back. 1
- notify-on-finish 0.1.0 Sends a desktop notification when a long turn finishes, so you can look away while Claude works. 1
- sensitive-file-guard 0.1.0 Blocks Read, Write, Edit, Grep, Glob and Bash calls that touch .env files, private keys and credential stores. 1
- cost-bar 0.1.0 A one-row band above the prompt with session cost, 5h/7d plan limits and an optional budget bar. 1
- file-tree-pane 0.1.0 Adds /tree: a side pane with a lazy file tree coloured by git status. Press a file to put @path in the prompt. 1
- path-guard 0.1.0 Blocks Write, Edit and MultiEdit calls that target a path outside the project root or inside .git, plus optional deny globs. 1
- powerline-bar 0.1.0 A one-row powerline-style band above the prompt: directory, git branch and state, model, context fill. 1
- secret-guard 0.1.0 Blocks Write, Edit and Bash calls that would put an API key, token or private key into a file or command. 1
- spinner-stats 0.1.0 Adds elapsed time, the running tool and the tool-call count to Claude Code's own spinner. 1
- test-guard 0.1.0 Blocks edits that make tests pass by weakening them: new skip/only markers, fewer assertions, a gutted test file, or deleting a test file. 1
More git mods
- git-sidebar 0.1.0 A lazygit-style side pane: every worktree of the repository and its local branches as rows you click. A worktree row moves the session there with /cd; a branch row shows its last commits and offers switch (clean tree only) or open worktree. Docked floor to ceiling beside the transcript in the ful... 32.4k
- md-preview 0.1.3 Shows the Markdown files Claude edits, rendered like GitHub, in a pane next to the chat. Before and after side by side. /md opens it. 111
- cc-arcade 0.2.0 Games above the Claude Code prompt (snake, Tetris, 2048, Minesweeper, Flappy, Pong, typing test, Space Invaders, Doom) plus a pet that grows as Claude tests, commits and edits. Clones of the genre, not affiliated with or endorsed by Tetris Holding, Taito, Atari or id Software. Needs function hook... 40
- pr-relay 0.9.0 Watches the session's pull request and wakes the session when it is merged or Codex reviews it 16
- gemini-review 0.4.2 Has Gemini review every git commit the model runs, from the staged diff and the conversation, and stops a commit with a blocking finding: a bug, data loss, a security hole or a committed secret. Off until /gemini-review on; gemini-core holds the key, tier, model and thinking level. 6