Skip to content

📚 Recipes ​

Each recipe solves one concrete problem with the cvss CLI and the github.com/scagogogo/cvss-skills Go SDK. Pick the task you actually have — filter, sort, parse CSV, export JSON, compare, migrate, or persist — and copy the commands and code straight into your project.

Problem map ​

All recipes ​

RecipeWhat it solvesTools
Filter Critical vulnsKeep only Critical vectors from a filebatch score --format json + jq
Sort by severityOrder a batch of vectors by scoresort + Cvss3xSlice
Parse from CSVScore every vector in a CSV filecsv read + csv write
Export to JSONEmit a structured JSON reportjson + Cvss3x.ToJSON
Compare two vectorsShow metric + score deltasdiff + Cvss3x.Diff
Measure similarityDistance/similarity between two vectorsdistance + DistanceCalculator
Build from scanTurn a scan result into a CVSS vectorbuild + FromMap
Migrate v3.0 → v3.1Upgrade old vectors to v3.1convert --to 3.1 + UpgradeTo31
Score a partial vectorScore range for an incomplete vectorrange + GetScoreRange/GetWorstCase
Generate test dataMake random CVSS vectorsrandom + mock.RandomCvss3xFull
Store in a databasePersist vectors and sort by score in SQLScan/Value + Cvss3xSlice

Each recipe is self-contained

The "Solution" section is a step-by-step you can run as-is. The "Discussion" covers when not to use it, and "See Also" links to the matching CLI command page and SDK reference.

Released under the MIT License.