Check npm packages with AI Guard before installing them. Catches names that do not exist (hallucinated packages), typosquats of popular packages, npm security placeholders, install scripts and releases published in the last day. Use before running npm install, pnpm add, yarn add, bun add or npx with a package you have not used in this project, and when asked whether a package is safe.
21 stars
0 votes
0 copies
0 views
Added December 1, 2026
ai-agentsbashsecurity
Security analysis
B76/100
mediumInstalls packages at runtime which could introduce malicious dependencies
mediumInstalls packages at runtime which could introduce malicious dependencies
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Check Packages?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ai-guard-dev-check-packages)
---
name: check-packages
description: Check npm packages with AI Guard before installing them. Catches names that do not exist (hallucinated packages), typosquats of popular packages, npm security placeholders, install scripts and releases published in the last day. Use before running npm install, pnpm add, yarn add, bun add or npx with a package you have not used in this project, and when asked whether a package is safe.
argument-hint: "<package> [package...]"
---
# Check packages before installing them
Run this before you add a dependency, so a package name you made up or mistyped is never installed.
Arguments: `$ARGUMENTS` (one or more package names, optionally with versions, such as `zod` or `left-pad@1.3.0`).
## Run the check
From the project root, with Bash (the user's normal permission prompt applies):
```bash
npx --yes eslint-plugin-ai-guard@1.4.8 verify-deps <package> [package...] --json
```
If the project already has AI Guard installed, `npx ai-guard verify-deps <package> --json` is the same. Never run a bare `npx ai-guard` in a project without it: that name is an unrelated npm package.
The check sends package names to `registry.npmjs.org`. Do not run it on private package names the user has not agreed to send there.
## Read the result
The output has `packages[]`, each with `name`, `verdict` and `findings[]` (`check`, `severity`, `message`):
| `verdict` | What to do |
| --- | --- |
| `block` | Do not install it. If it has `similarTo`, or a finding asks "Did you mean …?", suggest that package, or ask the user |
| `warning` | Tell the user each finding (for example install scripts, or a release from the last day) and install only if they agree |
| `ok` | Install it |
| `skipped` | Not checked on purpose (for example a private-registry package); say so |
| `unchecked` | The lookup failed; say the package was not checked |
If the command fails (no network, registry error), say the package was not checked. Do not describe it as safe.
## Checking a whole change
To check every dependency a change adds to `package.json` files:
```bash
npx --yes eslint-plugin-ai-guard@1.4.8 verify-deps --json
```