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

[COLM'26] SkillLearnBench is the first benchmark for evaluating continual learning methods that automatically generate agent skills.

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.

What its author says it does

Copied from the file, not written here

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

SKILL.md

1.3 KB, 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

Keep looking

Skills are one crate of 328,083. 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.