claudemods

All Claude Code modsShriD5/claude-mods

main-guard

A Claude Code mod in ShriD5/claude-mods

A red band when you are on main or in prod, and no force-push, reset --hard or unconfirmed push to a protected branch

main-guard reaches L2 (writes or runs) and passed claude plugin validate with warnings.

To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsruns processes, reads files, reads env vars, reads mod state, draws

Validation

Passed with warnings

View the source on GitHub Back to the list

What the scan recorded

Observed events
Bash calls
Hooks
session.start, tool.call {tool=Bash}, ui.render {component=AbovePrompt}
API calls
$.clock.every, $.env.get, $.fs.exists, $.process.run, $.session.cwd, $.state.get, $.state.set, $.ui.ask, $.ui.resolve
Validation
Passed with warnings
Scanned revision
1203787ff69a

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

More from ShriD5/claude-mods

Badge for your README

Reach badge for main-guard Validation badge for main-guard

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/ShriD5--claude-mods--main-guard-reach.svg)](https://mods.aidojo.si/mods/ShriD5--claude-mods--main-guard/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/ShriD5--claude-mods--main-guard-validates.svg)](https://mods.aidojo.si/mods/ShriD5--claude-mods--main-guard/)