dependency-check

dependency-check is a cursor rule for coding agents from adonai-labs/agent-runway. It costs 0 tokens per session (550 once invoked), scanned A, original, MIT.

Dependency management guidance for Node.js and npm projects, including checking unused packages and scanning dependencies for known security problems.

In plain words
What is it for?
Use it to review npm dependencies, run unused-package checks, inspect security advisories, and produce a dependency health summary.
Why use it?
It helps reveal packages that are no longer needed and security issues that may otherwise remain hidden in a project.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/adonai-labs/agent-runway/dependency-check
Clone the repo
git clone --depth 1 https://github.com/adonai-labs/agent-runway

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dependency-check

README.md
[![agentmods](https://agentmods.dev/badge/rules/adonai-labs/agent-runway/dependency-check.svg)](https://agentmods.dev/rules/adonai-labs/agent-runway/dependency-check)
Your own site
<a href="https://agentmods.dev/rules/adonai-labs/agent-runway/dependency-check"><img src="https://agentmods.dev/badge/rules/adonai-labs/agent-runway/dependency-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 550 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00550
Opus 5 $0.00000 $0.00275
Sonnet 5 $0.00000 $0.00110
Haiku 4.5 $0.00000 $0.00055

Measured yesterday against content hash 19c4307bf294, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

dependency-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/stacks/typescript/dependency-check.mdc · 77 lines

What it actually says

When I ask "dependency health" (or similar), do all of the following:

  1. Detect unused dependencies
npm run depcheck

Parse the JSON:

  • dependencies → list of unused production deps
  • using → map of used deps to file locations
  • invalidFiles → note any config parsing issues
  1. Check security advisories
npm audit --json

For each vulnerability, record:

  • Package name and severity (critical, high, moderate, low, info)
  • Whether it's direct or indirect dependency
  • Recommended fix version (if available)
  1. Manual cross-check for common missed packages

Check these packages that depcheck often misses:

  • date-fns (used in calendar components)
  • zod (schema validation)
  • react-flow-renderer vs reactflow (version conflicts)
  1. Produce dependency analysis table
Package Used? Where Found / Status Security Advisories (severity)
[package] ✅/❌ Location or "Not found" Advisory details
Overall Score X / 10

Score calculation:

  • Start at 10
  • -1 for each unused production dependency
  • -2 for each "info" or "low" advisory
  • -3 for each "moderate" advisory
  • -4 for each "high" advisory
  • -5 for each "critical" advisory
  • Floor at 1, cap at 10
  1. List concrete remediation steps

Examples:

  • npm uninstall <unused-pkg>
  • npm update <pkg>@latest
  • npm audit fix
  • Move dev tools from dependencies to devDependencies

Special considerations for your Vite+React setup:

  • Check for UI component library usage (@radix-ui/*)
  • Verify 3D library usage (@react-three/*)
  • Look for duplicate React Flow packages
  • Ensure dev tools are in devDependencies

Notes:

  • Only consider production dependencies for unused package scoring
  • For dynamic imports, add /* depcheck: ignore */ near the import
  • Check both automatic and manual analysis for completeness
  • Fix TypeScript config syntax errors that may affect depcheck
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 77 lines · 0 tokens per session scan A 19c4307bf294

Subscribe to this mod's changes

dependency-check is a cursor rule published in the GitHub repository adonai-labs/agent-runway (2 stars, last pushed 15d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 550 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.