# dependency-audit

> Audit project manifests against source code to find unused, missing, and misplaced dependencies across major languages.

dependency-audit is a paid AI agent skill on Agensi by Kevin Cline, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Kevin Cline](https://www.agensi.io/creators/kevin-cline)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-04-10
- Security: scan passed (2026-04-10); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/dependency-audit
- Tags: code-review, cleanup, dependencies, javascript, python, rust

## About this skill

### What it does

The Dependency Audit skill performs a deep-tissue scan of your project to identify unused, misplaced, and missing dependencies. It works by cross-referencing your manifest files (like `package.json`, `requirements.txt`, or `Cargo.toml`) against the actual `import` and `require` statements found in your source code.

### How it works

Unlike basic linters, this skill maps your entire dependency graph across various ecosystems. It categorizes issues into clear buckets: unused packages that are bloating your build, dev-dependencies that accidentally leaked into production code, and "phantom" dependencies that you're using without explicitly declaring them.

### Supported ecosystem

- **Node.js/TypeScript:** npm, yarn, pnpm (handles scoped packages and test-file detection).

- **Python:** pip (requirements.txt and pyproject.toml normalization).

- **Go:** go.mod analysis.

- **Rust:** Cargo.toml dependency and dev-dependency separation.

### Why use this skill?

Standard dependency checkers often miss the context of *where* a package is used. This skill understands the difference between production source and test suites. It prevents production crashes caused by missing manifest entries and reduces your attack surface by pruning unneeded code. It delivers a comprehensive `DEPENDENCY_AUDIT.md` report with actionable CLI commands to fix every found issue.

## Known limitations

- May flag runtime-only deps (polyfills) or config-based plugins as unused
- Cannot detect dynamic imports or string-literal requires
- Limited to root-level audits for monorepos

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the dependency-audit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific dependency issues does this skill detect?

The skill identifies 'phantom' dependencies (used in code but missing from manifests), identifies unused packages to reduce build size, and flags development dependencies that are incorrectly used in production code.

### How does the skill help me fix the issues it finds?

The skill provides a detailed DEPENDENCY_AUDIT.md report that categorizes every issue and provides the exact CLI commands needed to add, move, or remove the packages.

### Does it support test files and dev-only dependencies?

Yes, the skill is designed to distinguish between production source code and test suites, ensuring that test-only libraries aren't accidentally flagged as missing from your production environment.

### Can I use this for projects written in multiple different languages?

Currently, the skill supports Node.js (npm/yarn/pnpm), Python (pip/pyproject), Go (go.mod), and Rust (Cargo), with more ecosystems planned for future updates.

### What is included in the purchase of the dependency-audit skill?

Your purchase includes the full skill set, documentation for integration, and lifetime access to any future updates or additional language support modules.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
