Automatically identifies and fixes package vulnerabilities in your Node.js project by running `npm audit` and applying recommended fixes until the audit is clean.
Fix package issues
Run this loop in your preferred coding agent to automatically fix npm package vulnerabilities.
Open Coding Agent
Launch Cursor, Claude Code, Codex, OpenCode, or Gemini CLI in your project directory.
Input Kickoff Prompt
Paste the kickoff prompt into the agent to start the loop.
Follow Agent Instructions
Allow the agent to run `npm audit`, analyze vulnerabilities, and apply fixes iteratively.
Verify Exit Condition
Wait for the agent to complete all iterations or achieve a clean audit.
Run Initial Audit
Execute `npm audit` to generate initial vulnerability report.
Parse Vulnerabilities
Analyze audit output to identify vulnerable packages and their severity levels.
Maintenance
This loop automates the process of upgrading a project's framework to a newer version. It systematically analyzes the current framework, plans the upgrade path, updates dependencies, resolves breaking changes, and ensures all tests pass before completion.
Maintenance
Automated loop to safely upgrade project dependencies while ensuring all tests pass after each update. The agent incrementally updates out-of-date packages and runs test checks to prevent breaking changes.
Maintenance
This loop performs a comprehensive health check of a monorepo by validating its structure, dependencies, code quality, and consistency. It iteratively identifies and resolves issues related to missing dependencies, outdated packages, lint errors, and architectural inconsistencies until the repository passes validation.
Apply Fixes
Use `npm audit fix` to automatically resolve non-breaking vulnerabilities.
Handle Breaking Changes
For high-severity issues requiring major version updates, prompt user for confirmation before proceeding.
Re-run Audit
Repeat `npm audit` to check remaining vulnerabilities after fixes.
Iterate Until Clean
Continue the process up to max_iterations until exit condition is met.
Start the "Package Audit Fixer" loop. Goal: Fix package issues Max iterations: 10 Between iterations run: npm audit Exit when: Audit clean I'm starting a package audit fixer loop. Please follow this workflow: 1. Run `npm audit` and show me the results. 2. For each vulnerability found, try to apply fixes with `npm audit fix`. 3. If any fix requires user confirmation (e.g., breaking changes), ask me before proceeding. 4. After applying fixes, run `npm audit` again to verify progress. 5. Repeat steps 1-4 until the audit is clean or we reach 10 iterations. Start now by running the initial audit. Self-pace this loop. After each iteration, run `npm audit` and evaluate the output, and only continue if the exit condition is not met (Audit clean). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.