Install
openclaw skills install slopcheckValidate npm package references in markdown, YAML, and config files against the live npm registry before installing or using them. Catches hallucinated and s...
openclaw skills install slopcheckScan files for npm install, npx, pnpm add, yarn add, bun add, and bunx commands, extract package names, and validate each against the live npm registry. Packages that don't exist are reported as phantom packages (hallucinations). Packages with HTTP 451 responses are flagged as security holds (removed for malware).
Zero runtime dependencies. Uses only Node.js built-in APIs.
# Scan specific files
npx slopcheck SKILL.md README.md
# Scan a directory recursively (.md, .yml, .yaml, .json, .cursorrules)
npx slopcheck .
# Scan with JSON output for programmatic use
npx slopcheck --json .
# Ignore known-good internal packages
npx slopcheck --ignore my-internal-pkg,another-known-pkg .
# Control registry check concurrency
npx slopcheck --concurrency 5 .
slopcheck v0.1.1 — scanning 3 files for phantom packages
✗ react-codeshift — not found on npm
└─ AGENTS.md:14 npx react-codeshift --transform ...
└─ SKILL.md:8 npm install react-codeshift
⚠ suspicious-pkg — security hold (HTTP 451)
└─ .cursorrules:19 npm install suspicious-pkg
✓ 12 packages verified, 1 not found, 1 security hold
Found 1 phantom package. Exit code 1.
When using --json, output is an array of findings:
[
{
"file": "AGENTS.md",
"line": 14,
"command": "npx react-codeshift --transform ...",
"packages": ["react-codeshift"],
"results": {
"react-codeshift": { "exists": false, "status": 404 }
}
}
]
.md, .yml, .yaml, .json, .cursorrules
Directories named node_modules, .git, dist, and build are always skipped.