main-branch-warn

by Plagemes · ★ 8 · updated 15 Oct 2026

Status lineGuardsvalidates

0

Warns you the moment Claude starts editing files directly on main or master.

install main-branch-warn

Install

/plugin marketplace add Plagemes/claude-mods
/plugin install main-branch-warn@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
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
e9815ce the 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.

★ 8GuardsAutomation

migration-namer

Plagemes/claude-mods

Gives new migrations consistent, descriptive, timestamped names.

★ 8GuardsCommandsAutomation

mission-control

Plagemes/claude-mods

One dashboard for every Claude session on your machine: what each is doing, cost, blockers, with pause and priorities.

★ 8PanesStatus lineGuards

mock-server

Plagemes/claude-mods

/mock starts a fake API server from your OpenAPI spec so you can build the frontend before the backend.

★ 8PanesStatus lineCommands

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.

★ 8PanesBandsGuards

mod-doctor

Plagemes/claude-mods

/mod-doctor checks your installed mods for outdated versions, conflicts and load errors.

★ 8PanesCommands

mod-maker

Plagemes/claude-mods

/new-mod scaffolds a new Claude Code mod with manifest, hooks, test and README, ready to fill in.

★ 8CommandsAutomation

mod-profiles

Plagemes/claude-mods

Switch between sets of mods — work, personal, demo — with one command.

★ 8PanesCommands

mod-store

Plagemes/claude-mods

An in-terminal app store: browse, search, install and update every Claude Mod from GitHub.

★ 8PanesCommands

model-advisor

Plagemes/claude-mods

Suggests a cheaper model when your prompt is simple, and a stronger one when it is hard.

★ 8BandsCommandsPrompt

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.

★ 8PanesStatus lineGuards

monorepo-scope

Plagemes/claude-mods

Detects which monorepo package you're in and scopes test, lint and build commands to it.

★ 8Status lineGuardsCommands

Other mods in Status line, close to this one by stars.