/install fix-npm-vuln
NPM Vulnerability Fix Skill
This skill provides guidance when users mention npm security vulnerabilities and suggests the automated fix workflow.
When This Skill Applies
This skill activates when the user's request involves:
- Running
npm auditor discussing audit results - Fixing npm security vulnerabilities
- Updating vulnerable npm dependencies
- Dealing with outdated packages that have known CVEs
- Security scanning of Node.js projects
Guidance
When a user mentions npm vulnerabilities or security issues in their Node.js project, suggest using the /fix-npm-vuln slash command which provides a complete automated workflow:
- Clean working tree — reverts uncommitted changes (with confirmation)
- Branch management — switches to main, pulls latest, creates a fix branch
- Vulnerability scanning — scans all package.json directories
- Automated fixing — runs
npm audit fixwith smart escalation - Clean environment — removes all
node_modules, build caches, and reinstalls dependencies fresh - Build verification — ensures the project still builds
- Test verification — ensures tests still pass
- Summary report — displays all changes made
Suggested Response
When this skill activates, inform the user:
You can use
/fix-npm-vulnto run a complete automated npm vulnerability fix workflow. It will scan all project directories, fix vulnerabilities, verify builds and tests, and create a dedicated branch with all the changes. Would you like to run it?
Important Notes
- The command requires a git repository to work
- It will create a new branch for the fixes (does not modify main directly)
- User confirmation is required before reverting any uncommitted changes
- Build and test failures are handled interactively
Tool Auto-Installation
If a tool required to complete any step is not installed on the current machine, apply the following policy before asking the user:
- Check availability — verify whether the tool is missing (e.g.
where toolorwhich toolreturns nothing) - Assess risk — a tool is considered low-risk if it is:
- Publicly available (official npm package, well-known CLI, OS package manager)
- Widely used and maintained (e.g.
npm-check-updates,snyk,yarn,pnpm) - Non-destructive by default (does not modify system files, does not require elevated permissions)
- Auto-install if low-risk — install silently without asking the user:
- npm global tool:
npm install -g \x3Ctool> - winget (Windows):
winget install \x3Ctool> - Other package managers as appropriate for the OS
- npm global tool:
- Ask the user if high-risk — if the tool requires admin rights, modifies system config, or is from an unverified source, show the install command and ask for confirmation before proceeding.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install fix-npm-vuln - After installation, invoke the skill by name or use
/fix-npm-vuln - Provide required inputs per the skill's parameter spec and get structured output
What is Fix NPM Vulnerabilities?
This skill should be used when the user asks about "npm vulnerabilities", "npm audit", "fix npm security", "security vulnerabilities in packages", "vulnerabl... It is an AI Agent Skill for Claude Code / OpenClaw, with 92 downloads so far.
How do I install Fix NPM Vulnerabilities?
Run "/install fix-npm-vuln" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Fix NPM Vulnerabilities free?
Yes, Fix NPM Vulnerabilities is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Fix NPM Vulnerabilities support?
Fix NPM Vulnerabilities is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Fix NPM Vulnerabilities?
It is built and maintained by jelllove (@jelllove); the current version is v1.0.1.