agentsclimarketplace

Run3 Map Trivy JSON Fields to CSV Columns Accurately

Skill cxcscmu/SkillLearnBench/skills/b3-teacher-feedback-claude-haiku-4-5/dependency-vulnerability-check/run3_Map-Trivy-JSON-Fields-to-CSV-Columns-Accurately

Correctly identify and extract Trivy vulnerability JSON field names and map them to the required CSV output columns in exact order.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run3_Map-Trivy-JSON-Fields-to-CSV-Columns-Accurately

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.3 KB, 293 tokens by cl100k_base, as published. Nobody here has run it

Field Mapping Reference

Map Trivy JSON fields to CSV columns in this exact order:

CSV ColumnTrivy JSON FieldNotes
PackageTarget (from metadata) or parse from contextThe package name identifier
VersionInstalledVersionNot Version — use the exact field name
CVE_IDVulnerabilityIDNot CVE_ID — use Trivy's field name
SeveritySeverityCase-sensitive: filter for HIGH and CRITICAL only
CVSS_ScoreCVSS[source]['V3Score']Use priority: NVD → GHSA → RedHat
Fixed_VersionFixedVersionUse "N/A" if null/missing, never empty string
TitleTitle or DescriptionVulnerability title/description text
UrlPrimaryURL or References[0]Use PrimaryURL first, fallback to References[0], then "N/A"

Process

  1. Inspect the actual Trivy JSON output to confirm exact field names
  2. Extract each field using correct path (e.g., vuln.get('VulnerabilityID'))
  3. Verify field names are case-sensitive
  4. Apply fallbacks in specified order for URL and CVSS

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.