Vulnerability Until Zero
An automated loop to systematically eliminate critical npm security vulnerabilities in your project by iteratively running npm audit, analyzing findings, and…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Vulnerability Until Zero" loop.
Goal: Fix security findings
Max iterations: 10
Between iterations run: npm audit
Exit when: No critical vulnerabilities
Execute an automated security remediation loop for this npm project. Begin by running 'npm audit', identify all critical vulnerabilities, and attempt to fix them using 'npm audit fix --force'. If any critical vulnerabilities persist after automated fixes, manually update the affected packages to patched versions while preserving compatibility. Re-run 'npm audit' after each fix attempt until either no critical vulnerabilities remain or 10 iterations have passed, whichever comes first. Log all changes made during this process.
Self-pace this loop. After each iteration, run `npm audit` and evaluate the output, and only continue if the exit condition is not met (No critical vulnerabilities). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.