claudeindex
Plugin

main-branch-guard

PreToolUse hook that blocks Edit/Write/NotebookEdit operations on main branch or worktree

Installation

1

Add the marketplace

/plugin marketplace add JacobPEvans/claude-code-plugins
2

Install plugins

/plugin

Run these commands in Claude Code to add this plugin to your environment. The marketplace must be added before you can install its plugins.