Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
athola avatar

Dependency Verification

  • 18 installs
  • 325 repo stars
  • Updated August 2, 2026
  • athola/claude-night-market

Dependency verification is an agent skill that confirms PyPI, npm, and crates.io package names exist before install commands proceed.

About

Dependency verification is a registry-backed guard for AI-driven package installs across PyPI, npm, and crates.io. Solo builders and small teams use it when coding agents run pip, npm, or cargo add commands and you need confidence the name resolves to a real artifact—not a model hallucination or typosquat. The hook labels each target as exists, nonexistent, or unverified, blocking hard failures only when the registry returns 404 and strict mode is on, while network timeouts and rate limits warn without failing closed. Popular packages are matched offline first to keep everyday workflows fast. For air-gapped or sandboxed agents, you can disable live lookups and lean on edit-distance signals against a bundled popular set. It pairs naturally with agent hooks in Claude Code–style setups where shell installs are common.

  • Verifies PyPI, npm, and crates.io with HTTP 200/404 classification per package name
  • Three-state hook: exists (pass), nonexistent (block in strict mode), unverified (warn only, never block on network failu
  • Known-popular package short-circuit skips network calls for common installs like requests
  • 1.5s per-package timeout; IMBUE_PKG_REGISTRY_CHECK=0 for offline typosquat-only mode
  • VOW_SHADOW_MODE controls block vs warn for likely hallucinations

Dependency Verification by the numbers

  • 18 all-time installs (skills.sh)
  • Ranked #1,596 of 2,203 Security skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/athola/claude-night-market --skill dependency-verification

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs18
repo stars325
Last updatedAugust 2, 2026
Repositoryathola/claude-night-market

What it does

Block or warn when an agent tries to install packages that do not exist on PyPI, npm, or crates.io before they hit your project.

Who is it for?

Best when you're running agent guard hooks on package managers and want explicit 404 handling without blocking on transient network errors.

Skip if: Projects that only use private registries with no public endpoint mapping, unless you extend the guard beyond the three documented ecosystems.

When should I use this skill?

Before or during agent-issued package install commands across PyPI, npm, or crates.io when registry truth matters.

What you get

Install targets are classified against live or offline signals so hallucinated names are blocked or warned before they enter your dependency graph.

  • Per-install pass, warn, or block classification
  • Configurable strict vs shadow behavior via environment flags

By the numbers

  • 3 public registry ecosystems: PyPI, npm, crates.io
  • 1.5 second per-package network lookup timeout
  • 3 decision states: exists, nonexistent, unverified

Files

SKILL.mdMarkdownGitHub ↗
A package name the model produced is a claim, not a fact. The
registry is the fact. Verify before you install.

Dependency Verification

Overview

Code-generating language models recommend packages that do not exist at a measured rate of 5.2% (commercial models) to 21.7% (open models) across 576,000 samples (Spracklen et al. 2024, arXiv 2406.10279). Worse, 58% of hallucinated names recur across reruns, so an attacker can predict them, register the empty name, and ship malware. This is "slopsquatting." A proof-of-concept package (huggingface-cli) drew over 30,000 downloads after being registered against a commonly hallucinated name. Package hallucination is also inversely correlated with coding-benchmark score, so a better model does not make this go away.

The defense is cheap: confirm the name exists in its registry before installing or recommending it. This skill defines that check and is enforced by the guard_package_hallucination.py PreToolUse hook.

When to Use

Apply before any of these:

  • Running pip install, uv add, npm install, pnpm add,

yarn add, cargo add, poetry add, or pdm add.

  • Writing a dependency into pyproject.toml, requirements.txt,

package.json, or Cargo.toml.

  • Recommending a package to the user in prose.

The Two Signals

A package fails verification on either signal:

1. Nonexistent: the name is absent from its registry. This is a likely hallucination. Do not install it. Search for the correct name or confirm the package was renamed or removed. 2. Typosquat / slopsquat: the name is one or two edits from a popular package (for example reqeusts versus requests). This is either a typo or a deliberate impersonation. Confirm the exact name you intend before proceeding.

A name that is unknown to the bundled popular-package set but present in the registry passes. A name that cannot be checked because the registry is unreachable is reported as unverified, never blocked: the guard does not fail closed on a network error.

A Confidence Signal, Not a Gate

Registry existence is the pass/fail check. Real-world usage is a separate, softer signal that builds confidence on top of it. Once a package clears the two signals above, cross-checking that it is actually used by other projects raises your confidence that the name is the established one rather than a freshly-registered impostor that happens to exist.

Useful confidence signals, none of them blocking:

  • GitHub dependents or code search hits for the exact package name

(an established package is imported across many repositories).

  • Repository stars, recent commit activity, and release cadence on

the package's source.

  • Download counts and publish history on the registry (a popular

name registered yesterday is a red flag; a modest name with years of releases is reassuring).

Treat low usage as a prompt to look closer, never as a reason to reject on its own. New, niche, internal, and private packages are legitimately low-usage, so a missing GitHub footprint must not block an install the registry already confirmed. Use this signal to build confidence and to disambiguate between two similarly-named packages, not to gate.

Verification Procedure

1. Extract the exact package names the command or manifest edit would fetch (strip version specifiers and flags). 2. For each name, confirm existence in the registry. See registry-checks.md for the per-ecosystem endpoints and the offline-degradation rule. 3. For any name close to a popular package, restate the intended name and confirm it is the one you meant. 4. Capture the verification as evidence (the registry URL and the HTTP status) when the install lands in a PR, per imbue:proof-of-work.

Relationship to the Guard Hook

The guard_package_hallucination.py hook runs this check automatically on every Bash install command. Shadow mode (warn only) is the default; set VOW_SHADOW_MODE=0 to block typosquat and nonexistent installs. Disable the network lookup with IMBUE_PKG_REGISTRY_CHECK=0 to rely on the offline typosquat signal alone. The hook is a backstop, not a substitute: verify deliberately when you add a dependency rather than waiting for the gate.

Related Skills

  • imbue:proof-of-work: capture the registry check as evidence.
  • leyline:supply-chain-advisory: broader dependency supply-chain

auditing (lockfile drift, artifact integrity, bad versions).

Exit Criteria

  • [ ] Every package in the install command or manifest edit is

confirmed present in its registry, or the install is abandoned.

  • [ ] Any name within two edits of a popular package is restated

and confirmed before install.

  • [ ] A name that could not be verified online is reported as

unverified and not silently installed.

  • [ ] For PR-bound installs, the registry check is captured as

proof-of-work evidence.

Related skills

How it compares

Use as a pre-install checker on registry HTTP semantics, not as a full SBOM or CVE vulnerability scanner.

FAQ

Who is dependency-verification for?

Developers using Claude Code or similar agents with automated pip, npm, or cargo installs who need a lightweight anti-hallucination gate.

When should I use dependency-verification?

During Build when adding integrations and dependencies, and during Ship security review whenever agents execute install commands; also in Operate when iterating on hook strictness (VOW_SHADOW_MODE) before production enforcement.

Is dependency-verification safe to install?

Review the Security Audits panel on this Prism page for upstream audit results; the skill performs outbound registry HTTP checks when network mode is enabled.

Securityappsecsecrets

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.