publish-guard
by pomesaka · ★ 0 · updated 4 days ago
Before the agent pushes from a repository that has scripts/check-public.sh, runs that check and blocks the push when it finds names or keys that must not be published
Install
/plugin marketplace add pomesaka/dotclaude/plugin install publish-guard@dotclaudeThen 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
tool.call- API calls
$.process.run$.session.cwd- Can see
Bash calls- Reach
- level 2 of 3 runs processes
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/pomesaka/dotclaude
- Path in repo
mods/publish-guard- Source commit
b450be0the exact code the scan read- Author
- @pomesaka
- License
- No license declared — ask the author before reusing code.
- 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 pomesaka/dotclaude
questions
pomesaka/dotclaude
A list of the decisions the agent made provisionally so work could continue, kept with add_question and shown in a pane for the user to settle by clicking; a question can be talked over with a read-only fork of the conversation first. A session that hands work to others can follow them and answer their questions on its own pane; the answer reaches the session that asked. Adds a pending button...
quiet-prompts
pomesaka/dotclaude
Draws a prompt that another plugin submitted on its own (a reminder, a notice) as one line in the transcript, without the engine's framing; ctrl+o still shows it in full
refs
pomesaka/dotclaude
A list of the documents and URLs this session relied on, kept by the agent with add_reference and shown in a pane; adds a refs button to the line under the prompt
retro
pomesaka/dotclaude
Looks back on the session in the background and writes what is worth keeping into the docs: a fork of the conversation lists the findings, and only when there are some, a subagent without the conversation writes them following the re skill. Runs before a compact, after commits and PRs, and after long stretches with corrections; /retro runs it now
rich
pomesaka/dotclaude
show tool: the agent draws cards, a box-and-arrow diagram, tables and clickable questions inline in the transcript or in a pane
status-band
pomesaka/dotclaude
A line under the prompt that replaces the status line: model, context use and directory. Other mods add their own buttons to its right
verify-guide
pomesaka/dotclaude
When the agent launches an app (portless, playwright-cli open, a dev server), tells it once per repository whether the repository has a run guide (.claude/skills/verify, verifier-*, run-*) to follow, or that it should write one after verifying
write-guard
pomesaka/dotclaude
When the agent's Write lands outside the working directory and creates a new folder to do so, tells the agent in the tool result to check the path for a copying mistake
budget
pomesaka/dotclaude
One usage budget on a subscription rate-limit window (set_budget, clear_budget, read_budget): when any session sees the window reach the threshold, toasts once and tells the session that set it to wrap up, report and stop; dropped when the window resets
check-streak
pomesaka/dotclaude
Counts how many times in a row the same check (tests, type check, lint) fails for the agent; on the third failure without a pass, tells the agent in the tool result to stop fixing and call the user with its diagnosis
danger-guard
pomesaka/dotclaude
Before the agent runs a Bash command, blocks the ones that can wreck the machine or the user's data beyond the working repository: sudo, deletes of broad places and precious files, disk erasure, shutdown, and process kills that would also stop the user's applications
devrep
pomesaka/dotclaude
update_devrep tool: while turned on for a session, the agent keeps a short report of where the work stands (doing now, next, and free sections) in a pane, so the user can pick the session back up without reading the transcript
Related mods
Other mods in Guards, close to this one by stars.