MPNext: Command for Claude Code

.claude/commands/audit-deps.md

audit-deps is a command for Claude Code from MinistryPlatform-Community/MPNext. It costs 15 tokens per session (4,294 once invoked), scanned A, original, MIT.

A command for checking a project's software dependencies for known security advisories and possible attacks. It also helps assess the risk and plan dependency upgrades.

In plain words
What is it for?
Use it to audit dependencies, assess whether reported vulnerabilities affect the project, and guide version upgrades.
Why use it?
It brings security warnings and upgrade decisions into one dependency review. This makes it easier to distinguish urgent issues from lower-risk ones.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

This is MinistryPlatform-Community/MPNext's own configuration. It tells Claude Code how to work on MPNext itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MPNext configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MinistryPlatform-Community/MPNext. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MinistryPlatform-Community/MPNext/main/.claude/commands/audit-deps.md
Clone the repo
git clone --depth 1 https://github.com/MinistryPlatform-Community/MPNext

Made for: Claude Code.

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 audit-deps

README.md
[![agentmods](https://agentmods.dev/badge/commands/ministryplatform-community/mpnext/audit-deps/github.svg)](https://agentmods.dev/commands/ministryplatform-community/mpnext/audit-deps)
Your own site
<a href="https://agentmods.dev/commands/ministryplatform-community/mpnext/audit-deps"><img src="https://agentmods.dev/badge/commands/ministryplatform-community/mpnext/audit-deps/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 audit-deps

Your own site · 80×15
<a href="https://agentmods.dev/commands/ministryplatform-community/mpnext/audit-deps"><img src="https://agentmods.dev/badge/commands/ministryplatform-community/mpnext/audit-deps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,294 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.00015 $0.04294
Opus 5.5 $0.00006 $0.01718
Sonnet 5.5 $0.00003 $0.00859
Haiku 4.5 $0.00002 $0.00429

Measured 28d ago against content hash 1988b08c298b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

audit-deps 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 28d 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.

.claude/commands/audit-deps.md · 328 lines

How it starts

The opening of the file, as written. The whole thing — 328 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dependency Audit & Upgrade

Perform a complete review of this project's dependencies: real vulnerability exposure, available updates, and — with approval where required — apply and verify the upgrades.

No Ministry Platform writes. This command touches only local dependencies (node_modules, package.json, package-lock.json) and local report files. It never reads or writes MP data, so the MP Data Safety rule in CLAUDE.md is not triggered. If any step would touch MP, stop and ask.

Arguments

Parse $ARGUMENTS; default behavior when none are given is described in each phase.

Flag Effect
(none) Full audit → auto-apply safe updates + verify → propose majors → ask before any major → offer branch+commit
--report-only Read-only. Produce the report and the exact commands, change nothing. Skip phases 6–9.
--majors-only Skip the safe-update pass; only research and propose major upgrades.
--major <pkg> After the normal run, attempt that one major upgrade with the verify/revert protocol in phase 8.
--no-verify Skip build/lint/test verification. Only honor this if the user passed it explicitly; say loudly in the report that nothing was verified.

Autonomy contract

Know exactly what you may do without asking:

Allowed without asking

  • Every read-only command (npm ls, npm audit, npm outdated, npm view, git status, git diff).
  • npm install with no package argument (syncs the tree to the lockfile). If it changes package-lock.json, regenerate it with npm run deps:relock and check it with npm run deps:verify — a bare Windows npm install/npm dedupe must never produce the committed lockfile (CLAUDE.md § Dependency Rule).
  • npm update with no package argument — applies patch/minor updates inside the existing ranges. This is the phase 6 workhorse; it never edits package.json.
  • npm run deps:relock / npm run deps:verify — required after any npm update.
  • npm audit fix without --force.
  • Patch/minor bumps that stay inside the existing ^ range.
  • Writing the report file and updating the known-issues file.
  • Running npm run build, npm run lint, npm run test:run.

Read the full file on GitHub · 328 lines

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. 28d ago Changed · +10 lines 1988b08c298b
  2. 1mo ago First seen · 318 lines · 15 tokens per session scan A f859a7bd4dfc

Subscribe to this mod's changes

audit-deps is a command published in the GitHub repository MinistryPlatform-Community/MPNext (14 stars, last pushed 7d ago), licensed MIT. It adds 15 tokens to every session and 4,294 once invoked, about $0.0001 per session on Opus 5.5. 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-08-30.