fix-security-audit

Fix scanner-reported CVEs by updating dependencies via uv, pip, or npm.

Updated Dec 15, 2025
One-click install
npx skills add https://github.com/VectorInstitute/aieng-bot-maintain --skill fix-security-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-security-audit
Source: https://github.com/VectorInstitute/aieng-bot-maintain/tree/main/.claude/skills/fix-security-audit
Command: npx skills add https://github.com/VectorInstitute/aieng-bot-maintain --skill fix-security-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill fixes security vulnerabilities uncovered by scanners (pip-audit, npm audit, Snyk) and ensures patches are applied safely in dependencies and code.

Core Features & Use Cases

  • Vulnerability Analysis: locate CVEs and active advisories in logs, determine severity
  • Package Manager Patching: use uv (Python) or npm/pip workflows to apply secure updates
  • Dependency Management: update to patched versions, regenerate lockfiles when needed
  • Safety & Validation: verify audits post-fix and re-run tests to ensure stability
  • Use Case: A repo flags a vulnerability after a dependency update; this Skill applies the patched version and rechecks security.

Quick Start

Run fix-security-audit on a PR with vulnerability findings; the Skill will identify patches, apply updates, refresh lockfiles, and re-run audits.

Frequently Asked Questions about fix-security-audit

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

FAQPage Schema
How do I fix security vulnerabilities reported by automated scanners in my repository?

Fix security vulnerabilities by running this Skill on a PR with vulnerability reports; it identifies CVEs from scanner logs, applies patched versions via uv (Python) or npm, regenerates lockfiles, and re-runs audits to confirm the fix.

Can this Skill patch vulnerabilities in both Python and JavaScript projects?

Yes, it handles both Python and JavaScript projects. For Python, it uses uv or pip to update dependencies; for Node.js, it uses npm. It reads vulnerability data from .failure-logs.txt and applies the appropriate package manager workflow.

What package managers does this Skill use to apply security patches?

The Skill uses uv as the primary package manager for Python projects, npm for Node.js, and pip as a fallback. It selects the correct manager based on your project type and applies patches to update vulnerable dependencies to safe versions.

How does the Skill verify that security patches were applied correctly?

After patching, the Skill re-runs security audits (pip-audit, npm audit, or Snyk) to confirm vulnerabilities are resolved and commits changes per your PR branch guidelines, ensuring stability before merging.

What input files and formats does this Skill require to identify vulnerabilities?

Provide .failure-logs.txt containing vulnerability reports from scanners and .pr-context.json with PR metadata. The Skill parses these files to extract CVEs, determine severity, and apply targeted fixes.

Does this Skill handle lockfile updates when dependencies are patched?

Yes, the Skill regenerates lockfiles after applying package manager updates to ensure dependency trees remain consistent and security patches propagate through transitive dependencies.