ClaudeCodeMod

All shelves / Mods / Safety

slopsquat-guard

By Singh-AP

slopsquat-guard is a Claude Code safety mod by Singh-AP.

Holds a package install and checks the name against its registry, so a hallucinated or typosquatted package does not install.

Holds a command

Install

The marketplace name is awesome-claude-mods.

In Claude Code
/plugin marketplace add Singh-AP/awesome-claude-mods
/plugin install slopsquat-guard@awesome-claude-mods
Open the repo

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
1.0.0
License
MIT
Repo stars
3
Last change
2026-10-04

What it can reach

  • Holds a command
  • Reaches the network or an outside service

Claude Code 2.1.287 or later. The mod is live once you run /reload-plugins or start a new session. Every npm, pip, uv, poetry, cargo, and gem install Claude runs is checked against its registry first, including npx, pnpm, yarn, bun, and pipx forms, with versions, scopes, and chains such as cd web && npm i axios. A package that does not exist on npm, PyPI, crates.io, or RubyGems is blocked, and the model is told not to guess another spelling. One first published fewer than 14 days ago, with fewer than 50 weekly downloads, or one letter away from a popular package asks you first, and a headless run refuses. A bare npm install, requirement files, local paths, git sources, and a command that names its own registry are skipped. If a registry does not answer within 5 seconds, the install runs and a toast says it went unchecked. /slopsquat checks a package by hand. Its options are minAgeDays, minWeeklyDownloads, allowList, and timeoutMs.

The marketplace, Singh-AP's awesome-claude-mods, holds the 21 mods built there, bash-guard, file-guard, net-guard among them, and 26 community and Anthropic mods pinned to a commit. This one installs on its own. Stopping a hallucinated package before it installs is why this page files it under safety. trailhead, by ToRvaLDz, draws the ticket map beside the chat and the step above the prompt, and refuses a bad commit, a secret, or an unvetted install. guardrails-md, by berget-ai, sends each Bash command to a Berget AI scoring model and blocks it when the score says it destroys data, leaks a secret, or breaks your GUARDRAILS.md. This one asks the package registries themselves, registry.npmjs.org and api.npmjs.org, pypi.org and pypistats.org, crates.io, and rubygems.org, and caches each verdict for 24 hours, or 1 hour for a missing name. It checks only packages named on the command line, not dependencies from a manifest or a lockfile, and Go modules, Maven, Gradle, NuGet, Composer, and conda are not covered yet. The README says existing is not the same as safe. Its plugin.json names awesome-claude-mods as its author, and Singh-AP owns the marketplace.

Demo

The slopsquat-guard example on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • tool.callAround a tool call, where it can hold oneBash
  • command.runWhen you run its slash command/slopsquat

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /slopsquatCheck a package before installing it: /slopsquat <npm|pypi|crates|gem> <name>

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
Singh-AP
Category
Safety
Marketplace
awesome-claude-mods
Repo
Singh-AP/awesome-claude-mods
Folder
mods/safety/slopsquat-guard
Version
1.0.0
License
MIT
Repo stars
3
Last change
2026-10-04
Language
TypeScript
Files
9

Other mods in Safety

command-explainerSingh-APDraws a plain-English line and a risk level on the permission prompt, so you can see what the command does before you approve it.secret-guardarasovicHolds a commandHides API keys and private keys before the model or the transcript sees them, blocks credential files and commands that print secrets, and shows what it caught.guardrailsarasovicHolds a commandHolds Cloudflare write commands, attribution lines in commits and pull requests, and branch names that start with claude/.guardrails-liteedtrackaiHolds a commandHolds a read of a secret .env file, a git force-push, and a recursive rm on /, ~, or $HOME. .env.example, .env.sample, and .env.template are allowed.injection-guardSingh-APStrips hidden characters from tool output and marks results that carry instructions aimed at Claude, so they reach it as untrusted data.collision-guardnateherkaiHolds a commandHolds an edit to a file another open chat changed in the last 30 minutes, and asks you to proceed, move this chat to a worktree, or cancel.recording-modenateherkaiHolds a commandMasks keys, personal details, and business figures on screen while you record, hides results from mail, chat, and finance tools, and keeps private files closed.secret-boxray-amjadHolds a commandOpens a masked box when Claude needs a key, writes the key to .env, and gives Claude a placeholder; any key a tool prints comes back as a placeholder too.secret-shieldSingh-APHolds a commandReplaces API keys, tokens, private keys, and passwords in tool output with a redaction marker before the model or the transcript sees them.transcript-redactorray-amjadSwaps secrets and email addresses in the session for stable placeholders, and puts the real value back on the way into Bash, Write, and Edit.safe-deletecharlie947Holds a commandMoves the files Claude deletes to the Bin instead, toasts a receipt, and /undo-delete puts the last batch back.loop-detectiveYeonwooSungOpens a case when the same Bash command fails the same way again, ties it to the edits that followed, and shows the live cases in a pane and a status line.
All 73 in Safety