Skip to content
Back to skills

Check Packages

BSecurity

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

Pro shows the line behind each finding and how to fix it

Scanned December 1, 2026

npx -y skills add ai-guard-dev/eslint-plugin-ai-guard --skill check-packages --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check Packages?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check Packages
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/ai-guard-dev-check-packages/badge)](https://www.skillsdirectory.com/skills/ai-guard-dev-check-packages)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.