Run2 csv generation
Robust JSON-to-CSV parser for Trivy vulnerability reports.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run2_csv_generationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.7 KB, 157 tokens by cl100k_base, as published. Nobody here has run it
Improved CSV Generation
A Python utility to extract vulnerability data from Trivy's JSON structure.
Processing Logic
- Load the JSON report.
- Iterate
Results->Vulnerabilities. - Extract
PkgName,InstalledVersion,VulnerabilityID,Severity,CVSS(checking nvd, ghsa, redhat sources),FixedVersion(if any),Title,PrimaryURL. - Use
csv.DictWriterfor clean field escaping.
Best Practice
- Always provide a fallback string (e.g., "N/A") for missing fields to avoid runtime
KeyError. - Ensure the CSV is opened with
newline=""to prevent extra lines in some OS environments.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.