main-branch-warn
by Plagemes · ★ 8 · updated 15 Oct 2026
Warns you the moment Claude starts editing files directly on main or master.
Install
/plugin marketplace add Plagemes/claude-mods/plugin install main-branch-warn@claude-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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
session.starttool.call- API calls
$.clock.after$.fs.exists$.fs.read$.mods.hello$.mods.mode$.mods.notify$.mods.publish$.mods.registerTab$.process.run$.ui.log$.ui.status$.ui.toast- Can see
/"^(?:Edit|Write|MultiEdit|NotebookEdit)$"/ calls- Reach
- level 2 of 3 runs processesreads filesdrawsother: $.mods.helloother: $.mods.modeother: $.mods.notifyother: $.mods.publishother: $.mods.registerTab
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/Plagemes/claude-mods
- Path in repo
mods/main-branch-warn- Source commit
e9815cethe exact code the scan read- Author
- @Plagemes
- 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 Plagemes/claude-mods
migration-guard
Plagemes/claude-mods
Prevents editing database migrations that already exist; write a new one instead.
migration-namer
Plagemes/claude-mods
Gives new migrations consistent, descriptive, timestamped names.
mission-control
Plagemes/claude-mods
One dashboard for every Claude session on your machine: what each is doing, cost, blockers, with pause and priorities.
mock-server
Plagemes/claude-mods
/mock starts a fake API server from your OpenAPI spec so you can build the frontend before the backend.
mod-advisor
Plagemes/claude-mods
Recommends the right mods for your project and for what you're asking, with the commands to type, and installs them in one click.
mod-doctor
Plagemes/claude-mods
/mod-doctor checks your installed mods for outdated versions, conflicts and load errors.
mod-maker
Plagemes/claude-mods
/new-mod scaffolds a new Claude Code mod with manifest, hooks, test and README, ready to fill in.
mod-profiles
Plagemes/claude-mods
Switch between sets of mods — work, personal, demo — with one command.
mod-store
Plagemes/claude-mods
An in-terminal app store: browse, search, install and update every Claude Mod from GitHub.
model-advisor
Plagemes/claude-mods
Suggests a cheaper model when your prompt is simple, and a stronger one when it is hard.
mods-hub
Plagemes/claude-mods
The shared core that lets mods talk to each other: one event bus, one side panel with tabs, one place that routes notifications to your channels.
monorepo-scope
Plagemes/claude-mods
Detects which monorepo package you're in and scopes test, lint and build commands to it.
Related mods
Other mods in Status line, close to this one by stars.