Npm audit

From baekenough/oh-my-customcode · View interactive version

Npm audit is an AI agent skill from the GitHub repository baekenough/oh-my-customcode. Audit npm dependencies for security and updates

How to use this skill

Skill file

NPM Audit Skill

Audit npm dependencies for security vulnerabilities and outdated packages.

Options

--fix            Automatically fix vulnerabilities where possible
--production     Only audit production dependencies
--json           Output in JSON format

Workflow

1. Run npm audit for security vulnerabilities
2. Analyze vulnerability severity
3. Check for outdated dependencies
4. Generate health report
5. Suggest remediation steps

Output Format

Success

[NPM Audit] package-name

Security:
  Critical: 0
  High: 0
  Moderate: 2
  Low: 1

Outdated:
  Major updates: 3
  Minor updates: 5
  Patch updates: 12

Status: Needs attention (2 moderate vulnerabilities)

Recommendations:
  1. npm update lodash
  2. npm update axios

Failure

[NPM Audit] Failed

Error: {error_message}
Hint: Ensure package-lock.json exists

Examples

# Full dependency audit with report
npm-audit

# Audit and fix vulnerabilities
npm-audit --fix

# Audit only production dependencies
npm-audit --production
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.