What is public-repo-guard?
public-repo-guard is a Claude Code mod by Szotasz that push guard: before a git push to a public GitHub repo (or making one public) it scans what would go out for Supabase project IDs, keys, tokens, emails, local paths, private repo names and. It is listed under Security and has 6 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | Szotasz |
| Repository | Szotasz/claude-mods |
| Popularity | 6 GitHub stars |
| Category | Security |
| Security | Review before installing (72/100) |
| Rank | #666 of 5,272 Claude Code mods; #92 in Security |
| Last commit | 2026-10-07 |
| Stars this week | +4 |
| Hooks | 4 events |
| Sees | Bash calls |
| Draws on | nothing |
Is public-repo-guard safe to install?
public-repo-guard scores 72/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.env.get | reads env vars |
$.process.run | runs processes |
$.session.cwd | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.ask | draws interface |
How do I install public-repo-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/Szotasz/claude-mods claude plugin validate ./claude-mods/plugins/public-repo-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Szotasz/claude-mods && claude plugin install public-repo-guard@claude-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs public-repo-guard for you:
Install the "public-repo-guard" Claude Code mod from https://github.com/Szotasz/claude-mods/tree/main/plugins/public-repo-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from Szotasz/claude-mods
This repository has at least 9 Claude Code mods on MCPMods.
- decision-popup: Decision popup: Claude asks every decision (approve/refuse, A or B, irreversible steps) as a one-key question, drawn in (Low risk)
- focus-mode: Focus mode: hides tool calls, intermediate text, your prompts and command output; shows only a subtask list with progres (Low risk)
- project-pane: Side pane for the current repo: git state with a one-press GitHub sync, Netlify deploys, PRs and CI, Supabase project. H (Review before installing)
- snake-pane: Snake in the side pane while Claude works: opens when you send a prompt, pauses when the turn ends, keeps your best scor (Review before installing)
- supabase-guard: Supabase guard: stops Supabase calls aimed at a project other than the current folder's, and asks in a one-key popup bef (Low risk)
- tool-hub: Toolbox: a button at the bottom right of the prompt footer (or /eszkozok) opens switches above the prompt for Szabolcs's (Low risk)
- usage-band: Status line: model, context window, 5-hour and weekly limits with reset times, warning past 90%. Hungarian or English. (Low risk)
- usage-header: Band above the prompt: context window broken down by category in colours, plus the 5-hour and weekly limits. Hungarian o (Low risk)