All shelves / Mods / Safety
public-repo-guard
By Szotasz
public-repo-guard is a Claude Code safety mod by Szotasz.
Asks in a popup before a push to a public GitHub repo, or before one goes public, when outgoing commits hold keys, emails, local paths, or private repo names.
DrawsHolds a command
Install
The marketplace name is claude-mods.
claude plugin marketplace add Szotasz/claude-mods claude plugin install public-repo-guard@claude-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.0
- Repo stars
- 6
- Last change
- 2026-10-07
What it can reach
- Draws in the session
- Holds a command
- Sees tool calls
- Calls another program on this machine
The plugin's own page is the Hungarian section of the root README. The author says it needs Claude Code around 2.1.289 and the gh CLI signed in. It scans commits not yet on the remote, the message and the added lines, for Supabase project IDs, keys, emails, local /Users/ paths, private repo names from gh repo list --visibility private, and .env files, then asks: deny, push anyway, or push and remember. It does nothing on a push to a private repo. /pushor be and /pushor ki turn it on and off.
Demo

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash command/pushorstate.setA Claude Code eventtool.callAround a tool call, where it can hold oneBash
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/pushor
Files
The author's source, 3 files. They load when you open them.
Facts
- Author
- Szotasz
- Category
- Safety
- Marketplace
- claude-mods
- Folder
- plugins/public-repo-guard
- Version
- 0.1.0
- Repo stars
- 6
- Last change
- 2026-10-07
- Language
- TypeScript
- Files
- 6