dependency-check

dependency-check is a cursor rule for Cursor 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 for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to review npm dependencies, run unused-package checks, inspect security advisories, and produce a dependency health summary.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/adonai-labs/agent-runway/dependency-check
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.

Clone the repo
git clone --depth 1 https://github.com/adonai-labs/agent-runway

Made for: Cursor.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dependency-check

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00000 $0.00220
Sonnet 5.5 $0.00000 $0.00110
Haiku 4.5 $0.00000 $0.00055

Measured 1mo ago against content hash 19c4307bf294, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo ago.

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. 1mo ago 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 20d 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.

Related

Other cursor rules, from other repositories

optimize-dry-solid-principles-cursorrules-prompt-f

Cursor rules for optimization development with DRY and SOLID principles integration.

PatrickJS/awesome-cursorrules · 150 tokens

agent-master

Meta-orchestrator that classifies tasks and routes to the right combination of installed skills across caveman (output compression), superpowers (dev workflow), anthropic-skills (business/domain expertise), and wired tactical libraries (wshobson, davila7, impeccable, anthropic-official, rea). 27 routing categories…

Surya8991/AgentMaster · 211 tokens

ai-dev-os-review

Performs a comprehensive self-review before creating a PR. Combines guideline compliance checking (L3) with design-level review (L2) and philosophical alignment (L1). Unlike @ai-dev-os-check which only checks rules, this also evaluates architecture decisions and code design quality.

yunbow/ai-dev-os-plugin-cursor · 56 tokens

Accessibility-Review

Reviews web interfaces, content, or code snippets for common accessibility (a11y) issues based on WCAG guidelines, ensuring usability for people with disabilities.

TheSethRose/DevRules · 0 tokens

standard-agent-quality

A set of rules for checking development work before it is marked complete. It defines success checks such as a clean linter, cross-checking, and challenging the result.

dmitryprg-ai/cursor-develop-autorules · 53 tokens

reduce_method_arguments

A method should limit the number of arguments it accepts. If a method has more than three arguments, consider grouping them into a single parameter object to reduce complexity and improve clarity.

DeGraciaMathieu/cursor-mdc-rules · 381 tokens