npm-audit

Audit npm dependencies for security vulnerabilities and outdated packages.

34|5|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/baekenough/oh-my-customcode --skill npm-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: npm-audit
Source: https://github.com/baekenough/oh-my-customcode/tree/main/templates/.claude/skills/npm-audit
Command: npx skills add https://github.com/baekenough/oh-my-customcode --skill npm-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit npm dependencies for security vulnerabilities and outdated packages.

Core Features & Use Cases

  • Security Audit: Identify vulnerabilities in dependencies and the impact on the project.
  • Update Guidance: Highlight outdated packages and recommended upgrades.
  • Use Case: In a CI job, audit the dependency tree to surface critical fixes before release.

Quick Start

Run npm-audit in your project to scan dependencies for security vulnerabilities and available updates.

Frequently Asked Questions about npm-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit npm dependencies for security vulnerabilities in a Node.js project?

You can audit npm dependencies by running a scan on your project's package-lock.json to identify security vulnerabilities and analyze their severity. This generates a health report detailing the security issues and outdated packages affecting your project.

Can I automatically fix npm vulnerabilities and update outdated packages?

Yes, you can fix npm vulnerabilities by utilizing the optional --fix flag during the audit process. This attempts to automatically resolve security issues and update outdated packages in your dependency tree.

Does npm audit work in CI pipelines for Node.js projects?

Yes, npm audit is applicable in CI pipelines to scan the dependency tree and surface critical security fixes before release. It analyzes vulnerabilities and generates a health report suitable for automated continuous integration workflows.

How do I check for security vulnerabilities in production dependencies only?

To check for security vulnerabilities in production dependencies only, you can run the audit with the optional --production flag. This restricts the security audit to production dependencies listed in your package-lock.json.

What do I need to run an npm security audit on my project?

You need a Node.js project that uses npm and includes a package-lock.json file. The audit tool then executes against this lockfile to analyze your dependency tree for security vulnerabilities and available updates.