Vulnetix Remediation Plan Skill
This skill generates a comprehensive, context-aware remediation plan for a specific vulnerability using the VDB V2 remediation API. It auto-detects your repository's ecosystem, package manager, installed versions, container images, and OS to provide targeted fix guidance including registry upgrades, source patches, distribution advisories, workarounds, CWE-specific remediation strategies, and verification commands.
How this differs from /vulnetix:fix: The existing /vulnetix:fix skill fetches V1 fix data and proposes manual manifest edits. This skill uses the V2 remediation plan endpoint which provides context-aware guidance (ecosystem, version, OS, container), CWE remediation strategies, CrowdSec threat intelligence (live exploitation data), workaround effectiveness scoring, SSVC decision support, and verification commands per package manager.
Vulnerability Memory (.vulnetix/memory.yaml)
This skill reads and updates the .vulnetix/memory.yaml file in the repository root. This file is shared with /vulnetix:fix, /vulnetix:exploits, /vulnetix:package-search, /vulnetix:vuln, and /vulnetix:exploits-search.
Schema
The canonical schema is defined in /vulnetix:fix. This skill updates base fields and appends remediation plan events to the history log.
Reading Prior State
At the start of every invocation:
- Use Glob to check if
.vulnetix/memory.yaml exists in the repo root
- If it exists, use Read to load it and check for the vuln ID or aliases
- Use Glob for
.vulnetix/scans/*.cdx.json -- cross-reference for component data
- If a prior entry exists, display:
Previously seen: <vulnId> -- <developer-friendly status> (as of <date>)
Priority: <P1/P2/P3/P4> (<score>) (if cwss data exists)
Last decision: <developer-friendly decision> -- "<reason>"
Writing Updated State
After completing the remediation plan (Step 7):
- If no entry exists, create one with
status: under_investigation, discovery.source: user
- If an entry exists, update
severity, safe_harbour, and versions.fixed_in from the remediation plan data. Merge aliases.
- Do NOT change
status or decision unless the user explicitly makes a decision during the conversation
- Append to
history: event: remediation-plan, detail: summary of fix options found (registry fixes, source fixes, workarounds, distribution patches)
- Confirm to the user
VEX Status Mapping
not_affected --> "Not affected"
affected --> "Vulnerable"
fixed --> "Fixed"
under_investigation --> "Investigating"
Dependabot Integration
When gh CLI is available (check with gh auth status 2>/dev/null), query Dependabot alerts for the vuln ID to cross-reference with the remediation plan.
- Query alerts matching this vuln ID
- If a Dependabot PR exists, note it in the output:
"Dependabot PR #N proposes this upgrade -- consider reviewing and merging it"
- Update the
dependabot section in the memory entry
Workflow
Step 1: Load Memory and Detect Repository Context
- Load
.vulnetix/memory.yaml as described above
- Use Glob to detect manifest files and determine:
- Ecosystem -- npm, pypi, maven, go, cargo, rubygems, packagist
- Package manager -- npm, yarn, pnpm, pip, poetry, uv, cargo, go, maven, gradle, bundler, composer
- If the vuln ID is already in memory with a
package field, use that package name
- If not, run a quick lookup to get affected products:
vulnetix vdb vuln "$ARGUMENTS" -o json
Extract affected package names and ecosystems from the response.
- For each affected package found in the repo, detect the installed version using the priority chain: lockfile --> manifest --> installed artifacts --> unknown
Step 2: Auto-Populate Context Flags
Build the CLI flags automatically from repository state:
| Flag |
Source |
How to detect |
--ecosystem |
Manifest files |
From Step 1 ecosystem detection |
--package-name |
VDB response or memory |
Affected package name matching repo |
--current-version |
Lockfile/manifest |
Installed version from Step 1 |
--package-manager |
Manifest file type |
package-lock.json --> npm, yarn.lock --> yarn, poetry.lock --> pip/poetry, etc. |
--purl |
Constructed |
If ecosystem + name + version are known, construct pkg:<eco>/<name>@<version> |
--container-image |
Containerfile/Dockerfile |
Use Glob for Containerfile, Dockerfile, *.dockerfile. If found, Read and extract FROM image reference (e.g., node:18-alpine) |
--os |
OS detection |
Check for /etc/os-release or infer from container base image |
--vendor |
VDB response |
From affected products vendor field |
--product |
VDB response |
From affected products product field |
Always set:
--include-guidance -- includes CWE-specific remediation strategies
--include-verification-steps -- includes per-package-manager verification commands
If no package context can be determined (no manifests, no memory), run the command without package-specific flags -- the API will still return general remediation guidance.
Step 3: Execute Remediation Plan Query
vulnetix vdb remediation plan "$ARGUMENTS" -V v2 --include-guidance --include-verification-steps -o json [context flags]
CLI Reference (from vulnetix vdb remediation plan docs):
| Flag |
Type |
Description |
--ecosystem |
string |
Package ecosystem (npm, pypi, maven, go, cargo, etc.) |
--package-name |
string |
Package name |
--current-version |
string |
Currently installed version (enables version-specific guidance) |
--package-manager |
string |
Package manager (npm, pip, cargo, maven, etc.) |
--purl |
string |
Package URL (overrides ecosystem + package-name) |
--container-image |
string |
Container image reference (e.g., node:18-alpine) |
--os |
string |
OS identifier (e.g., ubuntu:22.04, debian-11) |
--vendor |
string |
Vendor name for CPE matching |
--product |
string |
Product name for CPE matching |
--registry |
string |
Registry filter (npm, pypi, maven-central) |
--include-guidance |
bool |
Include CWE-specific markdown guidance |
--include-verification-steps |
bool |
Include verification commands per package manager |
-V |
string |
API version -- must be v2 |
-o, --output |
string |
Output format: json or pretty |
Examples:
# Basic remediation plan
vulnetix vdb remediation plan CVE-2021-44228 -V v2 --include-guidance --include-verification-steps -o json
# With full package context
vulnetix vdb remediation plan CVE-2021-44228 -V v2 \
--ecosystem maven --package-name log4j-core --current-version 2.14.1 \
--package-manager maven --include-guidance --include-verification-steps -o json
# Using PURL
vulnetix vdb remediation plan CVE-2021-44228 -V v2 \
--purl "pkg:maven/org.apache.logging.log4j/log4j-core@2.14.1" \
--include-guidance --include-verification-steps -o json
# With container context
vulnetix vdb remediation plan CVE-2024-XXXXX -V v2 \
--ecosystem npm --package-name express --current-version 4.17.1 \
--container-image "node:18-alpine" --include-guidance --include-verification-steps -o json
Response structure (from V2 OAS):
The response includes:
cveId, state, title, aliases, description
descriptions[] -- multi-source descriptions with language and source attribution
crowdSecSummary -- live threat intelligence:
totalSightings, uniqueIPs, isActive
firstSeen, lastSeen
topSourceCountries, topTargetCountries
mitreTechniques, behaviors
cvssDetails -- parsed CVSS vector components (attackVector, attackComplexity, privilegesRequired, userInteraction, scope, impact metrics)
agent_prompt -- AI-optimized remediation context string
- Registry fixes, source fixes, distribution patches, workarounds, CWE guidance, verification steps (context-dependent based on flags provided)
Step 4: Present the Remediation Plan
Render a structured remediation report with the following sections:
Vulnerability Summary:
<CVE ID> -- <title>
<description -- first 2-3 sentences>
Severity: <CVSS score> (<level>) | EPSS: <score>
Threat Activity (from CrowdSec data, if present):
Live Exploitation: <Active/Inactive>
Sightings: <totalSightings> from <uniqueIPs> unique IPs
Last seen: <lastSeen>
Source countries: <top 3>
MITRE techniques: <techniques in developer language>
If no CrowdSec data, skip this section.
Registry Fixes (version upgrades per ecosystem):
| Ecosystem |
Package |
Current |
Fix Version |
Verified |
Confidence |
Registry |
| maven |
log4j-core |
2.14.1 |
2.17.1 |
Yes |
High |
Maven Central |
For each fix, report Safe Harbour confidence:
- High (> 0.90): patch-level bump, official registry release
- Reasonable (0.35-0.90): minor version bump, backward-compatible
- Low (< 0.35): major version bump, significant API changes
Source Fixes (upstream commits/PRs, if available):
Upstream fix: <commit URL>
SHA: <sha>
Author: <author>
Message: <commit message>
Repository health: <commit frequency, contributor count>
Distribution Patches (if --os or --container-image was set):
| Distro |
Patch ID |
Affected Packages |
Priority |
| Ubuntu 22.04 |
USN-XXXX-X |
liblog4j2-java |
High |
Workarounds (interim mitigations, if no immediate fix):
Workaround: <description>
Effectiveness: <score>/100
Applicable versions: <range>
Requires restart: <Yes/No>
Verification: <steps>
CWE Guidance (weakness-specific remediation strategies):
CWE-<id>: <title>
Remediation strategy:
<markdown guidance from API>
Verification guidance:
<markdown from API>
Verification Steps (per package manager):
Verify the fix:
npm: npm audit --json | jq '.vulnerabilities["<package>"]'
maven: mvn dependency:tree | grep <package>
pip: pip show <package> | grep Version
Step 5: Cross-Reference with Dependabot and Memory
- If Dependabot PR exists for this upgrade, note:
"Dependabot PR #N already proposes this upgrade -- consider reviewing and merging"
- If a prior
/vulnetix:exploits analysis exists in memory (threat_model, cwss), surface the priority: "Prior exploit analysis: P1 (87.5) -- Act now"
- If a prior
/vulnetix:fix analysis exists, note what was previously proposed
Step 6: Present Actionable Next Steps
Based on the remediation plan, present concrete actions:
- If registry fix available: Show exact manifest edit (same diff format as
/vulnetix:fix) with the fix version from the remediation plan. Offer to apply it.
- If source fix only (no registry release): Note that the fix requires building from source or waiting for a release. Link to the commit/PR.
- If workaround only: Present the workaround steps with effectiveness score. Note: "No patch available yet -- workaround is interim mitigation."
- If distribution patch: Provide the package manager command (e.g.,
apt-get update && apt-get install --only-upgrade <package>)
- Test commands: Suggest running tests after applying the fix
- Re-scan: Suggest
vulnetix vdb vuln <vuln-id> to verify the fix resolved the vulnerability
- Rollback guidance: If the fix introduces breaking changes, note the backup/rollback approach
Cross-references:
"Run /vulnetix:exploits $ARGUMENTS for exploit intelligence and threat modeling"
"Run /vulnetix:vuln $ARGUMENTS for full vulnerability details"
"Run /vulnetix:exploits-search --ecosystem <eco> to discover related exploited vulnerabilities"
Step 7: Update Vulnerability Memory
- Use Read to load the current memory file
- Create or update the entry:
versions.fixed_in -- from the registry fix data
versions.fix_source -- registry name and version
severity -- from CVSS data
safe_harbour -- computed from fix confidence
aliases -- merge any newly discovered aliases
dependabot -- if gathered in Step 5
- Append to
history: event: remediation-plan, detail: summary of fix options (e.g., "Registry fix: 2.17.1 (Maven Central, High confidence). 2 workarounds available. CWE-502 guidance provided.")
- Use Write to save
- Confirm to the user
If the user applies a fix or makes a decision:
- Record using the risk treatment categories from
/vulnetix:exploits
- Set
status: fixed and decision.choice: fix-applied if they apply the fix
- Append
event: fix-applied with detail including the version change
Error Handling
- If
vulnetix vdb remediation plan returns an error, fall back to vulnetix vdb fixes "$ARGUMENTS" -o json (V1 endpoint) and present basic fix data. Note that V2 enrichment (workarounds, CWE guidance, verification steps) is unavailable.
- If the vuln ID is not found, suggest checking the format and provide examples
- If no package context can be determined from the repo, run without context flags and note that guidance is generic rather than repo-specific
- If no fixes, workarounds, or patches are available, state clearly: "No remediation options are currently available for this vulnerability. Consider risk acceptance or component removal."
- If
.vulnetix/memory.yaml cannot be written, warn but do not block
Important Reminders
- This skill proposes code changes (manifest edits) but always asks before applying -- same guardrail as
/vulnetix:fix
- Auto-populate context flags from the repo -- the V2 API returns better results with more context. Always detect ecosystem, package name, current version, and package manager.
- Container detection is important -- if a Containerfile/Dockerfile exists, extract the base image for OS-specific distribution patches
- Safe Harbour scores: compute from fix confidence tiers, display as 0.00-1.00
- Version source transparency is mandatory -- always disclose how the current version was determined
- CrowdSec data is live threat intelligence -- if sightings are active, flag prominently
- The
agent_prompt field in the response contains AI-optimized context -- use it to inform your analysis but do not display it raw to the user
- Always update
.vulnetix/memory.yaml after generating the plan
- If Dependabot already has a PR for this fix, prefer merging that PR over manual edits
- The V2 remediation endpoint is the most comprehensive single endpoint -- it aggregates data from registry fixes, source fixes, distribution patches, workarounds, CWE guidance, and KEV data into one response
Source: davepoon/buildwithclaude → plugins/vulnetix/skills/remediation/SKILL.md
1---2name: remediation3description: Get a context-aware remediation plan for a vulnerability with fix verification steps4---567# Vulnetix Remediation Plan Skill89This skill generates a comprehensive, context-aware remediation plan for a specific vulnerability using the VDB V2 remediation API. It auto-detects your repository's ecosystem, package manager, installed versions, container images, and OS to provide targeted fix guidance including registry upgrades, source patches, distribution advisories, workarounds, CWE-specific remediation strategies, and verification commands.1011**How this differs from `/vulnetix:fix`:** The existing `/vulnetix:fix` skill fetches V1 fix data and proposes manual manifest edits. This skill uses the V2 `remediation plan` endpoint which provides **context-aware** guidance (ecosystem, version, OS, container), **CWE remediation strategies**, **CrowdSec threat intelligence** (live exploitation data), **workaround effectiveness scoring**, **SSVC decision support**, and **verification commands** per package manager.1213## Vulnerability Memory (.vulnetix/memory.yaml)1415This skill reads and updates the `.vulnetix/memory.yaml` file in the repository root. This file is shared with `/vulnetix:fix`, `/vulnetix:exploits`, `/vulnetix:package-search`, `/vulnetix:vuln`, and `/vulnetix:exploits-search`.1617### Schema1819The canonical schema is defined in `/vulnetix:fix`. This skill updates base fields and appends remediation plan events to the history log.2021### Reading Prior State2223**At the start of every invocation:**24251. Use **Glob** to check if `.vulnetix/memory.yaml` exists in the repo root262. If it exists, use **Read** to load it and check for the vuln ID or aliases273. Use **Glob** for `.vulnetix/scans/*.cdx.json` -- cross-reference for component data284. If a prior entry exists, display:29 ```30 Previously seen: <vulnId> -- <developer-friendly status> (as of <date>)31 Priority: <P1/P2/P3/P4> (<score>) (if cwss data exists)32 Last decision: <developer-friendly decision> -- "<reason>"33 ```3435### Writing Updated State3637**After completing the remediation plan (Step 7):**38391. If no entry exists, create one with `status: under_investigation`, `discovery.source: user`402. If an entry exists, update `severity`, `safe_harbour`, and `versions.fixed_in` from the remediation plan data. Merge aliases.413. **Do NOT change `status` or `decision`** unless the user explicitly makes a decision during the conversation424. Append to `history`: `event: remediation-plan`, detail: summary of fix options found (registry fixes, source fixes, workarounds, distribution patches)435. Confirm to the user4445### VEX Status Mapping4647- `not_affected` --> "Not affected"48- `affected` --> "Vulnerable"49- `fixed` --> "Fixed"50- `under_investigation` --> "Investigating"5152## Dependabot Integration5354When `gh` CLI is available (check with `gh auth status 2>/dev/null`), query Dependabot alerts for the vuln ID to cross-reference with the remediation plan.55561. Query alerts matching this vuln ID572. If a Dependabot PR exists, note it in the output: `"Dependabot PR #N proposes this upgrade -- consider reviewing and merging it"`583. Update the `dependabot` section in the memory entry5960## Workflow6162### Step 1: Load Memory and Detect Repository Context63641. Load `.vulnetix/memory.yaml` as described above652. Use **Glob** to detect manifest files and determine:66 - **Ecosystem** -- npm, pypi, maven, go, cargo, rubygems, packagist67 - **Package manager** -- npm, yarn, pnpm, pip, poetry, uv, cargo, go, maven, gradle, bundler, composer683. If the vuln ID is already in memory with a `package` field, use that package name694. If not, run a quick lookup to get affected products:70 ```bash71 vulnetix vdb vuln "$ARGUMENTS" -o json72 ```73 Extract affected package names and ecosystems from the response.745. For each affected package found in the repo, detect the installed version using the priority chain: lockfile --> manifest --> installed artifacts --> unknown7576### Step 2: Auto-Populate Context Flags7778Build the CLI flags automatically from repository state:7980| Flag | Source | How to detect |81|------|--------|---------------|82| `--ecosystem` | Manifest files | From Step 1 ecosystem detection |83| `--package-name` | VDB response or memory | Affected package name matching repo |84| `--current-version` | Lockfile/manifest | Installed version from Step 1 |85| `--package-manager` | Manifest file type | `package-lock.json` --> npm, `yarn.lock` --> yarn, `poetry.lock` --> pip/poetry, etc. |86| `--purl` | Constructed | If ecosystem + name + version are known, construct `pkg:<eco>/<name>@<version>` |87| `--container-image` | Containerfile/Dockerfile | Use **Glob** for `Containerfile`, `Dockerfile`, `*.dockerfile`. If found, **Read** and extract `FROM` image reference (e.g., `node:18-alpine`) |88| `--os` | OS detection | Check for `/etc/os-release` or infer from container base image |89| `--vendor` | VDB response | From affected products vendor field |90| `--product` | VDB response | From affected products product field |9192Always set:93- `--include-guidance` -- includes CWE-specific remediation strategies94- `--include-verification-steps` -- includes per-package-manager verification commands9596If no package context can be determined (no manifests, no memory), run the command without package-specific flags -- the API will still return general remediation guidance.9798### Step 3: Execute Remediation Plan Query99100```bash101vulnetix vdb remediation plan "$ARGUMENTS" -V v2 --include-guidance --include-verification-steps -o json [context flags]102```103104**CLI Reference** (from `vulnetix vdb remediation plan` docs):105106| Flag | Type | Description |107|------|------|-------------|108| `--ecosystem` | string | Package ecosystem (npm, pypi, maven, go, cargo, etc.) |109| `--package-name` | string | Package name |110| `--current-version` | string | Currently installed version (enables version-specific guidance) |111| `--package-manager` | string | Package manager (npm, pip, cargo, maven, etc.) |112| `--purl` | string | Package URL (overrides ecosystem + package-name) |113| `--container-image` | string | Container image reference (e.g., node:18-alpine) |114| `--os` | string | OS identifier (e.g., ubuntu:22.04, debian-11) |115| `--vendor` | string | Vendor name for CPE matching |116| `--product` | string | Product name for CPE matching |117| `--registry` | string | Registry filter (npm, pypi, maven-central) |118| `--include-guidance` | bool | Include CWE-specific markdown guidance |119| `--include-verification-steps` | bool | Include verification commands per package manager |120| `-V` | string | API version -- must be `v2` |121| `-o, --output` | string | Output format: `json` or `pretty` |122123Examples:124```bash125# Basic remediation plan126vulnetix vdb remediation plan CVE-2021-44228 -V v2 --include-guidance --include-verification-steps -o json127128# With full package context129vulnetix vdb remediation plan CVE-2021-44228 -V v2 \130 --ecosystem maven --package-name log4j-core --current-version 2.14.1 \131 --package-manager maven --include-guidance --include-verification-steps -o json132133# Using PURL134vulnetix vdb remediation plan CVE-2021-44228 -V v2 \135 --purl "pkg:maven/org.apache.logging.log4j/log4j-core@2.14.1" \136 --include-guidance --include-verification-steps -o json137138# With container context139vulnetix vdb remediation plan CVE-2024-XXXXX -V v2 \140 --ecosystem npm --package-name express --current-version 4.17.1 \141 --container-image "node:18-alpine" --include-guidance --include-verification-steps -o json142```143144**Response structure** (from V2 OAS):145146The response includes:147- `cveId`, `state`, `title`, `aliases`, `description`148- `descriptions[]` -- multi-source descriptions with language and source attribution149- `crowdSecSummary` -- live threat intelligence:150 - `totalSightings`, `uniqueIPs`, `isActive`151 - `firstSeen`, `lastSeen`152 - `topSourceCountries`, `topTargetCountries`153 - `mitreTechniques`, `behaviors`154- `cvssDetails` -- parsed CVSS vector components (attackVector, attackComplexity, privilegesRequired, userInteraction, scope, impact metrics)155- `agent_prompt` -- AI-optimized remediation context string156- Registry fixes, source fixes, distribution patches, workarounds, CWE guidance, verification steps (context-dependent based on flags provided)157158### Step 4: Present the Remediation Plan159160Render a structured remediation report with the following sections:161162**Vulnerability Summary:**163```164<CVE ID> -- <title>165<description -- first 2-3 sentences>166Severity: <CVSS score> (<level>) | EPSS: <score>167```168169**Threat Activity** (from CrowdSec data, if present):170```171Live Exploitation: <Active/Inactive>172Sightings: <totalSightings> from <uniqueIPs> unique IPs173Last seen: <lastSeen>174Source countries: <top 3>175MITRE techniques: <techniques in developer language>176```177178If no CrowdSec data, skip this section.179180**Registry Fixes** (version upgrades per ecosystem):181182| Ecosystem | Package | Current | Fix Version | Verified | Confidence | Registry |183|-----------|---------|---------|-------------|----------|------------|----------|184| maven | log4j-core | 2.14.1 | 2.17.1 | Yes | High | Maven Central |185186For each fix, report Safe Harbour confidence:187- **High** (> 0.90): patch-level bump, official registry release188- **Reasonable** (0.35-0.90): minor version bump, backward-compatible189- **Low** (< 0.35): major version bump, significant API changes190191**Source Fixes** (upstream commits/PRs, if available):192193```194Upstream fix: <commit URL>195 SHA: <sha>196 Author: <author>197 Message: <commit message>198 Repository health: <commit frequency, contributor count>199```200201**Distribution Patches** (if `--os` or `--container-image` was set):202203| Distro | Patch ID | Affected Packages | Priority |204|--------|----------|-------------------|----------|205| Ubuntu 22.04 | USN-XXXX-X | liblog4j2-java | High |206207**Workarounds** (interim mitigations, if no immediate fix):208209```210Workaround: <description>211 Effectiveness: <score>/100212 Applicable versions: <range>213 Requires restart: <Yes/No>214 Verification: <steps>215```216217**CWE Guidance** (weakness-specific remediation strategies):218219```220CWE-<id>: <title>221Remediation strategy:222<markdown guidance from API>223224Verification guidance:225<markdown from API>226```227228**Verification Steps** (per package manager):229230```231Verify the fix:232 npm: npm audit --json | jq '.vulnerabilities["<package>"]'233 maven: mvn dependency:tree | grep <package>234 pip: pip show <package> | grep Version235```236237### Step 5: Cross-Reference with Dependabot and Memory2382391. If Dependabot PR exists for this upgrade, note: `"Dependabot PR #N already proposes this upgrade -- consider reviewing and merging"`2402. If a prior `/vulnetix:exploits` analysis exists in memory (threat_model, cwss), surface the priority: `"Prior exploit analysis: P1 (87.5) -- Act now"`2413. If a prior `/vulnetix:fix` analysis exists, note what was previously proposed242243### Step 6: Present Actionable Next Steps244245Based on the remediation plan, present concrete actions:2462471. **If registry fix available:** Show exact manifest edit (same diff format as `/vulnetix:fix`) with the fix version from the remediation plan. Offer to apply it.2482. **If source fix only (no registry release):** Note that the fix requires building from source or waiting for a release. Link to the commit/PR.2493. **If workaround only:** Present the workaround steps with effectiveness score. Note: "No patch available yet -- workaround is interim mitigation."2504. **If distribution patch:** Provide the package manager command (e.g., `apt-get update && apt-get install --only-upgrade <package>`)2515. **Test commands:** Suggest running tests after applying the fix2526. **Re-scan:** Suggest `vulnetix vdb vuln <vuln-id>` to verify the fix resolved the vulnerability2537. **Rollback guidance:** If the fix introduces breaking changes, note the backup/rollback approach254255**Cross-references:**256- `"Run /vulnetix:exploits $ARGUMENTS for exploit intelligence and threat modeling"`257- `"Run /vulnetix:vuln $ARGUMENTS for full vulnerability details"`258- `"Run /vulnetix:exploits-search --ecosystem <eco> to discover related exploited vulnerabilities"`259260### Step 7: Update Vulnerability Memory2612621. Use **Read** to load the current memory file2632. Create or update the entry:264 - `versions.fixed_in` -- from the registry fix data265 - `versions.fix_source` -- registry name and version266 - `severity` -- from CVSS data267 - `safe_harbour` -- computed from fix confidence268 - `aliases` -- merge any newly discovered aliases269 - `dependabot` -- if gathered in Step 52703. Append to `history`: `event: remediation-plan`, detail: summary of fix options (e.g., "Registry fix: 2.17.1 (Maven Central, High confidence). 2 workarounds available. CWE-502 guidance provided.")2714. Use **Write** to save2725. Confirm to the user273274**If the user applies a fix or makes a decision:**275- Record using the risk treatment categories from `/vulnetix:exploits`276- Set `status: fixed` and `decision.choice: fix-applied` if they apply the fix277- Append `event: fix-applied` with detail including the version change278279## Error Handling280281- If `vulnetix vdb remediation plan` returns an error, fall back to `vulnetix vdb fixes "$ARGUMENTS" -o json` (V1 endpoint) and present basic fix data. Note that V2 enrichment (workarounds, CWE guidance, verification steps) is unavailable.282- If the vuln ID is not found, suggest checking the format and provide examples283- If no package context can be determined from the repo, run without context flags and note that guidance is generic rather than repo-specific284- If no fixes, workarounds, or patches are available, state clearly: "No remediation options are currently available for this vulnerability. Consider risk acceptance or component removal."285- If `.vulnetix/memory.yaml` cannot be written, warn but do not block286287## Important Reminders2882891. This skill **proposes code changes** (manifest edits) but **always asks before applying** -- same guardrail as `/vulnetix:fix`2902. **Auto-populate context flags** from the repo -- the V2 API returns better results with more context. Always detect ecosystem, package name, current version, and package manager.2913. **Container detection is important** -- if a Containerfile/Dockerfile exists, extract the base image for OS-specific distribution patches2924. Safe Harbour scores: compute from fix confidence tiers, display as 0.00-1.002935. Version source transparency is mandatory -- always disclose how the current version was determined2946. **CrowdSec data is live threat intelligence** -- if sightings are active, flag prominently2957. The `agent_prompt` field in the response contains AI-optimized context -- use it to inform your analysis but do not display it raw to the user2968. **Always update `.vulnetix/memory.yaml`** after generating the plan2979. If Dependabot already has a PR for this fix, prefer merging that PR over manual edits29810. The V2 remediation endpoint is the most comprehensive single endpoint -- it aggregates data from registry fixes, source fixes, distribution patches, workarounds, CWE guidance, and KEV data into one response299300---301302**Source:** [`davepoon/buildwithclaude`](https://github.com/davepoon/buildwithclaude) → `plugins/vulnetix/skills/remediation/SKILL.md`