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.
npx agentmods add commands/florianbruniaux/node-dep-scope/audit-depsgit clone --depth 1 https://github.com/FlorianBruniaux/node-dep-scopeWrote 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.
[](https://agentmods.dev/commands/florianbruniaux/node-dep-scope/audit-deps)<a href="https://agentmods.dev/commands/florianbruniaux/node-dep-scope/audit-deps"><img src="https://agentmods.dev/badge/commands/florianbruniaux/node-dep-scope/audit-deps.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00507 |
| Opus 5 | $0.00000 | $0.00253 |
| Sonnet 5 | $0.00000 | $0.00101 |
| Haiku 4.5 | $0.00000 | $0.00051 |
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 4d 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.
What it actually says
Dependency audit with dep-scope
Analyze project dependencies with dep-scope to identify optimization opportunities.
Instructions
1. Run the scan
dep-scope scan
If sources are outside ./src:
dep-scope scan -s ./src ./app ./lib
2. Interpret verdicts
| Verdict | Action |
|---|---|
| ✗ REMOVE | Remove (check: dynamic import? CSS? config file?) |
| ⊕ PEER_DEP | Remove from package.json (will stay via peer deps) |
| ↻ RECODE_NATIVE | Migrate to native JS (uuid.v4 → crypto.randomUUID()) |
| ⇄ CONSOLIDATE | Merge duplicates (keep the most-used lib) |
| ? INVESTIGATE | Review manually |
| ✓ KEEP | No action needed |
3. Generate migration prompts
For RECODE_NATIVE or CONSOLIDATE packages:
dep-scope migrate # auto-detect all candidates
dep-scope migrate <package> # target one package
Each command writes .dep-scope/migrate-<pkg>.md — pipe directly into Claude Code:
claude -p "$(cat .dep-scope/migrate-lodash.md)"
4. Produce the audit report
Structure:
## Dependency Audit - [Project]
### Summary
- Total: X deps | Actionable: Y | Estimated savings: ~ZKB
### Quick Wins (< 30 min)
- [ ] `npm uninstall pkg` - reason
### Recommended Migrations
- [ ] pkg → alternative - estimated effort
### Consolidations (duplicates)
- [ ] Category: keep X, migrate Y/Z
### To Investigate
- [ ] pkg - what to check
### False Positives (to ignore)
- pkg - used in config/runtime/CSS
5. Action plan
Phase 1 - Quick Wins: Safe removals, peer deps
Phase 2 - Simple Migrations: uuid→native, classnames→clsx
Phase 3 - Refactoring: Icon consolidation, axios→fetch
Known Limitations
Not detected: @import CSS, config file references (tailwind, babel, eslint plugins).
Dynamic imports (await import()) and require() ARE detected.
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.
- 4d ago First seen · 77 lines · 0 tokens per session scan A 68ab750b9639
audit-deps is a command published in the GitHub repository FlorianBruniaux/node-dep-scope (19 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 507 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-08-30.
Other commands, from other repositories
sonicjs-pr-fixer
You are a specialized agent that helps fix and merge problematic PRs in the SonicJS repository. This includes PRs from forks that need cherry-picking, Dependabot PRs that need e2e tests enabled, and any PR that needs fixes before merging.
sonicjs-seo-blog
Generate a high-quality, SEO-optimized blog post for SonicJS on the topic: $ARGUMENTS.
upgrade-nodejs
This guide explains how to upgrade the Node.js version that Bun reports for compatibility with Node.js packages and native addons.
upgrade-webkit
Upgrade Bun's WebKit fork to the latest upstream version of WebKit.
dedupe
Find duplicate GitHub issues.
ralph-plan
../../.mastracode/commands/ralph-plan.md.