Remediate Vulnerability

Skill name: remediate-vuln

Remediate vulnerability packets from a Snyk explain report. Use when the user asks an agent to evaluate, fix, suppress, exclude, or otherwise resolve one or more dependency or code vulnerability packets generated by the vulnerability CLI, including packets from remediation-packets.md or remediation-packets.json.


Use this skill to process one Snyk explain packet at a time. The goal is to convert a packet into a small, verified remediation or a documented acceptance decision.

Inputs

Accept any of these:

If no packet is identifiable, ask for the packet text, packet ID, or packet report path.

Run Modes

Default to reviewed mode unless the user explicitly requests another mode.

reviewed mode:

batch mode:

Batch mode must be explicit. Accept phrasing such as:

Use $remediate-vuln in batch mode for all code packets until the first blocker.
Use $remediate-vuln in batch mode for the next 10 dependency packets.

Useful optional controls:

Blocker conditions:

Mandatory Preflight

Before editing:

Never suppress or exclude a finding before understanding why it cannot be fixed directly.

Packet Routing

Standard Workflow

Verification Commands

Use the same target directory that generated the packet.

Dependency packet:

npm run cli -- deps build --target /path/to/project
npm run cli -- deps explain --target /path/to/project

Code packet:

npm run cli -- code build --target /path/to/project
npm run cli -- code explain --target /path/to/project

If the CLI is not in the current repo, locate it or ask the user for the vulnerability CLI directory.

Suppression Rules

Use suppression only when at least one is true:

Every suppression must include project-specific rationale, scope, and a follow-up condition. Prefer narrow suppression over broad directory or package suppression.

Final Response

Report: