SlopSquatShield checks the packages that you or your AI coding agent install, and blocks names that don't exist or look like slopsquatting traps. It supports npm, PyPI and Maven, and it runs in your terminal, in AI agent hooks, on git commit and in your IDE.
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/agivanttechnologies/SlopSquatShieldGuides for using ai agents skills like SlopSquatShield.
See how SlopSquatShield compares with popular alternatives.
Checks the packages you or your AI coding agent install, and blocks the ones that don't exist or look like traps.
AI coding agents sometimes invent package names. Attackers register those names (this is called slopsquatting) so that the next agent making the same mistake installs their code. SlopSquatShield looks each package up in its public registry first.
Quickstart · How it works · Where it runs · Using it · Privacy · What it doesn't do · Reference · Uninstall
You need Node.js 22 or newer.
npm install -g slopsquatshield
slopsquatshield init --all # set up the shell wrapper and a hook for each AI agent it finds
slopsquatshield doctor # check the setup; it tells you how to fix anything missing
That's it. Keep using npm, pip and mvn as usual.
For each package, SlopSquatShield asks the registry a few questions:
| Check | If yes |
|---|---|
| The package doesn't exist | BLOCK |
| It was published less than 14 days ago | WARN |
| It has fewer than 500 downloads a week | WARN |
| Its name is 1–2 letters away from a popular package | WARN |
| It has no link to a source repository | WARN |
| It matches a name you marked as private, but it's on the public registry | BLOCK |
Two or more WARNs on the same package add up to a BLOCK. There's no hidden score.
A few details:
vitest isn't flagged for looking like vite).3.Files it reads:
| Language | Registry | Files |
|---|---|---|
| JavaScript / TypeScript | npm | package.json, package-lock.json |
| Python | PyPI | requirements.txt, pyproject.toml, Pipfile, lockfiles |
| Java | Maven Central | pom.xml (including multi-module and parent POMs) |
For Maven, it uses your own JDK and Maven if they're installed. doctor tells you if they're missing.
| Where | What it does | Can it stop an install? |
|---|---|---|
| Shell wrapper | Checks the package, then runs the real npm/pip/mvn |
Yes |
| AI agent hooks | Checks the agent's install command before it runs | Yes. The agent can't skip it |
CI shims (init --ci) |
The shell wrapper's checks, for CI shells | Yes, if they're on PATH |
slopsquatshield scan |
Checks every manifest in a project | No, it reports |
| Git pre-commit hook | Checks the manifests you staged. Only a BLOCK fails the commit | No, it reports |
| IDE extension | Marks problems in your manifests as you edit | No, it reports |
Run slopsquatshield scan . to check every manifest in a project. It exits with one of the exit codes.
--json prints machine-readable output.--report-only shows the same results but always exits 0. Use it to try the tool without failing anything.--maven-tree also runs mvn dependency:tree in the project to find the Maven versions it resolves. Use it only on projects you trust: Maven runs the project's own configuration and plugins.slopsquatshield init --all adds a hook to each AI agent it finds on your machine.
| Agent | Config file |
|---|---|
| Claude Code | ~/.claude/settings.json |
| Cursor | ~/.cursor/hooks.json |
| Codex CLI | ~/.codex/hooks.json |
| Antigravity (desktop app, CLI) | ~/.gemini/config/hooks.json |
To set up one agent only, use --claude-code, --cursor, --codex or --antigravity. Add --project to write into the current project instead of your user settings.
The commit check is advisory: only a BLOCK fails the commit.
With the pre-commit framework, add this to .pre-commit-config.yaml:
repos:
- repo: https://github.com/agivanttechnologies/SlopSquatShield
rev: v1.0.0
hooks:
- id: slopsquatshield
Without the framework, run slopsquatshield init --git-hook. It adds to your existing shell hook if there is one, and won't touch a hook written in another language.
The IDE extension works in VS Code, Cursor, Windsurf, VSCodium and Antigravity. It marks dependencies in package.json, requirements.txt, pyproject.toml, Pipfile and pom.xml:
Quick fixes can remove the dependency, allow it, or suggest the name you probably meant. The extension only reports; it can't stop an install. See its README.
slopsquatshield allow <package>. This adds it to the project's allowlist file.command npm install … (same for pip and mvn)npm.cmd install …git commit --no-verifyIf SlopSquatShield itself gets in your way, you can uninstall it.
api.npmjs.org, PyPI and pypistats.org, and Maven Central. Like any web request, these services see your IP address.Full statement: PRIVACY.md.
init changes on your machine~/.config/slopsquatshield/bin/, which the wrapper and hooks call. Re-run init if you move or reinstall the CLI. (Install globally first; init won't run from an npx cache.)~/.bashrc, ~/.zshrc or your PowerShell profile..slopsquatshield allowlist in the project, if there isn't one.--ci) and a git pre-commit hook (--git-hook).slopsquatshield uninstall removes all of these except your allowlist.
What it doesn't check
Coverage
npm, pip and mvn only, not pnpm, yarn, Gradle, uv or poetry. The agent hooks also understand uv and poetry.init --ci covers installs in CI shells, but nothing scans your pipelines.internal-utils allows it on npm and PyPI.Every part of SlopSquatShield uses the same four codes:
| Code | Meaning |
|---|---|
0 |
Clean: everything checked, nothing found |
1 |
Suspicious: WARNs only |
2 |
Blocked: at least one BLOCK |
3 |
Couldn't check: a registry was unreachable or a manifest couldn't be read. This is not a finding, but it's never reported as clean either |
The pre-commit hook only fails on 2.
.slopsquatshield at the project root lists packages to trust: one name per line (groupId:artifactId for Maven), with # for comments. An allowed package is never flagged, not even with a BLOCK.
Add to it by hand, with slopsquatshield allow <package>, or from the IDE extension's quick fix.
No configuration is needed. To change thresholds or to declare your private package names, add a .slopsquatshieldrc (JSON) file at the project root, or put the same object under a "slopsquatshield" key in package.json. If both exist, .slopsquatshieldrc wins.
{
"thresholds": { "minAgeDays": 30 },
"privateScopes": { "npm": ["@mycompany"] }
}
Only list what you want to change; everything else keeps its default.
| Key | Default | Meaning |
|---|---|---|
thresholds.minAgeDays |
14 |
Younger packages get a WARN |
thresholds.minWeeklyDownloads |
500 |
Fewer weekly downloads get a WARN (npm and PyPI) |
thresholds.maxNameSimilarityDistance |
2 |
Names this close to a popular package get a WARN |
privateScopes.npm |
none | npm scopes you only publish privately |
privateScopes.pypi |
none | A regular expression for your private PyPI names |
privateScopes.maven |
none | groupId prefixes you only publish privately |
If a private name turns up on the public registry, that's a BLOCK (a "dependency confusion" attack).
A mistake in
SlopSquatShield is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by agivanttechnologies. SlopSquatShield checks the packages that you or your AI coding agent install, and blocks names that don't exist or look like slopsquatting traps. It supports npm, PyPI and Maven, and it runs in your terminal, in AI agent hooks, on git commit and in your IDE. It has 50 GitHub stars.
SlopSquatShield's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/agivanttechnologies/SlopSquatShield" and add it to your Claude Code skills directory (see the Installation section above).
SlopSquatShield is primarily written in TypeScript. It is open-source under agivanttechnologies on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh SlopSquatShield against similar tools.
No comments yet. Be the first to share your thoughts!