/bom-convert-validate
Converts CycloneDX BOMs to SPDX 3.0.1 JSON-LD or between CycloneDX spec versions with cdx-convert, and validates BOMs against JSON schema, deep consistency checks, and OWASP SCVS and EU Cyber Resilience Act compliance benchmarks with cdx-validate, emitting SARIF for code
Claude Code
$ npx -y skills add cdxgen/cdxgen --skill bom-convert-validate --agent claude-code
Codex
$ npx skills add cdxgen/cdxgen --skill bom-convert-validate -a codex -y
Cursor
$ npx skills add cdxgen/cdxgen --skill bom-convert-validate -a cursor -y
Gemini CLI
$ npx skills add cdxgen/cdxgen --skill bom-convert-validate -a gemini-cli -y
GitHub Copilot
$ npx skills add cdxgen/cdxgen --skill bom-convert-validate -a github-copilot -y
OpenCode
$ npx skills add cdxgen/cdxgen --skill bom-convert-validate -a opencode -y
Windsurf
$ npx skills add cdxgen/cdxgen --skill bom-convert-validate -a windsurf -y
SKILL.md
bom-convert-validate.SKILL.mdname: bom-convert-validate
description: Converts CycloneDX BOMs to SPDX 3.0.1 JSON-LD or between CycloneDX spec versions with cdx-convert, and validates BOMs against JSON schema, deep consistency checks, and OWASP SCVS and EU Cyber Resilience Act compliance benchmarks with cdx-validate, emitting SARIF for code scanning. Use when asked to convert an SBOM to SPDX, downgrade or upgrade a BOM spec version, validate or lint a BOM, check SCVS or CRA compliance, or score SBOM quality.
Convert and validate BOMs
Two post-processing commands for BOMs that already exist.
Read [reference/safety.md](../../reference/safety.md) first.
Convert
# CycloneDX to SPDX 3.0.1 JSON-LD (default target)
cdx-convert -i /absolute/path/to/bom.json -o /absolute/path/to/bom.spdx.json
# Cross-convert between CycloneDX spec versions
cdx-convert -i /absolute/path/to/bom.json --to 1.6 -o /absolute/path/to/bom.1.6.json
| Flag | Purpose | | ---------------- | -------------------------------------------------------------------- | | `-i, --input` | Source BOM | | `-o, --output` | Destination | | `--to` | `spdx` (default) or a CycloneDX version: `1.5`, `1.6`, `1.7` | | `--validate` | Validate the conversion result | | `--json-pretty` | Pretty-print output |
The legacy spec-version path
`cdxgen` **rejects `1.4` and `1.5` as generation targets** — only `1.6`, `1.7` (default), and `2.0` are accepted. When a consumer needs an older document, the supported route is to generate at a valid version and downgrade the serialized output here:
cdxgen -o /absolute/path/to/bom.json /absolute/path/to/project
cdx-convert -i /absolute/path/to/bom.json --to 1.5 -o /absolute/path/to/bom.1.5.json
Tell the user that a downgrade drops fields the older schema cannot express. A 1.5 document converted from 1.7 is not the same document.
SPDX directly from source
If SPDX is the only target, skip the round trip:
cdxgen --format spdx -o /absolute/path/to/bom.spdx.json /absolute/path/to/project
`spdxgen` is the dedicated command for the same thing. Use `cdx-convert` when the CycloneDX document already exists or is also wanted.
Validate
cdx-validate -i /absolute/path/to/bom.json
Three layers run together:
1. **Schema validation** — CycloneDX JSON schema 2. **Deep validation** — metadata, purl, `bom-ref`, and property consistency 3. **Compliance rule packs** — OWASP SCVS (all 87 controls across L1/L2/L3) and EU Cyber Resilience Act SBOM expectations (8 controls)
Protobuf input works too:
cdx-validate -i /absolute/path/to/bom.cdx
Compliance benchmarks
cdx-validate -i /absolute/path/to/bom.json --benchmark scvs-l2 -r sarif -o /absolute/path/to/results.sarif
Benchmark aliases: `scvs`, `scvs-l1`, `scvs-l2`, `scvs-l3`, `cra`. Defaults to all. Categories: `compliance-scvs`, `compliance-cra`.
Rules that cannot be decided from a BOM alone — "SBOMs are required for new procurements", for example — are surfaced as **manual-review** items so coverage is still tracked. Include them with `--include-manual`.
This matters when reporting a score: a control marked manual-review is neither passing nor failing. Do not fold it into either bucket.
Validation flags
| Flag | Purpose | | --------------------- | ------------------------------------------------------------------ | | `--schema` / `--no-schema` | JSON-schema layer, on by default | | `--deep` | Deep consistency checks | | `--benchmark, -b` | Compliance benchmarks to score | | `--categories` | Compliance rule categories | | `--strict` | Treat warnings as failures | | `--min-severity` | Minimum severity to report | | `--fail-severity` | Severity that causes a non-zero exit | | `--include-manual` | Include manual-review controls in output | | `--include-pass` | Show passing controls, not just failures | | `--report, -r` | `sarif` and other formats | | `--report-file, -o` | Write the report to a file | | `--public-key` | Verify the JSF signature during validation | | `--require-signature` | Fail unless the signature verifies; needs a key, exit 1 without one | | `--platform` | Platform-specific validation behaviour |
Release-gate pattern
cdx-validate -i /absolute/path/to/bom.json \
--benchmark scvs-l2,cra \
--public-key /absolute/path/to/public.pem --require-signature \
--strict \
-r sarif -o /absolute/path/to/results.sarif
Schema, deep consistency, SCVS L2, CRA, and signature presence in one gate.
Validation during generation
`cdxgen --validate` is on by default, so a generated BOM is already schema-checked. `cdx-validate` adds the deep and compliance layers, which generation does not run. Do not tell the user their BOM is "already validated" when they are asking about SCVS or CRA coverage.
Rule details: <https://cdxgen.github.io/cdxgen/#/VALIDATION_RULES>.
Reference
- Conversion: <https://cdxgen.github.io/cdxgen/#/CDX_CONVERT>
- Validation: <https://cdxgen.github.io/cdxgen/#/CDX_VALIDATE>
- Validation rules: <https://cdxgen.github.io/cdxgen/#/VALIDATION_RULES>
Read more
name: bom-convert-validate description: Converts CycloneDX BOMs to SPDX 3.0.1 JSON-LD or between CycloneDX spec versions with cdx-convert, and validates BOMs against JSON schema, deep consistency checks, and OWASP SCVS and EU Cyber Resilience Act compliance benchmarks with cdx-validate, emitting SARIF for code scanning. Use when asked to convert an SBOM to SPDX, downgrade or upgrade a BOM spec version, validate or lint a BOM, check SCVS or CRA compliance, or score SBOM quality.
Convert and validate BOMs
Two post-processing commands for BOMs that already exist.
Read [reference/safety.md](../../reference/safety.md) first.
Convert
# CycloneDX to SPDX 3.0.1 JSON-LD (default target) cdx-convert -i /absolute/path/to/bom.json -o /absolute/path/to/bom.spdx.json # Cross-convert between CycloneDX spec versions cdx-convert -i /absolute/path/to/bom.json --to 1.6 -o /absolute/path/to/bom.1.6.json
| Flag | Purpose | | ---------------- | -------------------------------------------------------------------- | | `-i, --input` | Source BOM | | `-o, --output` | Destination | | `--to` | `spdx` (default) or a CycloneDX version: `1.5`, `1.6`, `1.7` | | `--validate` | Validate the conversion result | | `--json-pretty` | Pretty-print output |
The legacy spec-version path
`cdxgen` **rejects `1.4` and `1.5` as generation targets** — only `1.6`, `1.7` (default), and `2.0` are accepted. When a consumer needs an older document, the supported route is to generate at a valid version and downgrade the serialized output here:
cdxgen -o /absolute/path/to/bom.json /absolute/path/to/project cdx-convert -i /absolute/path/to/bom.json --to 1.5 -o /absolute/path/to/bom.1.5.json
Tell the user that a downgrade drops fields the older schema cannot express. A 1.5 document converted from 1.7 is not the same document.
SPDX directly from source
If SPDX is the only target, skip the round trip:
cdxgen --format spdx -o /absolute/path/to/bom.spdx.json /absolute/path/to/project
`spdxgen` is the dedicated command for the same thing. Use `cdx-convert` when the CycloneDX document already exists or is also wanted.
Validate
cdx-validate -i /absolute/path/to/bom.json
Three layers run together:
1. **Schema validation** — CycloneDX JSON schema 2. **Deep validation** — metadata, purl, `bom-ref`, and property consistency 3. **Compliance rule packs** — OWASP SCVS (all 87 controls across L1/L2/L3) and EU Cyber Resilience Act SBOM expectations (8 controls)
Protobuf input works too:
cdx-validate -i /absolute/path/to/bom.cdx
Compliance benchmarks
cdx-validate -i /absolute/path/to/bom.json --benchmark scvs-l2 -r sarif -o /absolute/path/to/results.sarif
Benchmark aliases: `scvs`, `scvs-l1`, `scvs-l2`, `scvs-l3`, `cra`. Defaults to all. Categories: `compliance-scvs`, `compliance-cra`.
Rules that cannot be decided from a BOM alone — "SBOMs are required for new procurements", for example — are surfaced as **manual-review** items so coverage is still tracked. Include them with `--include-manual`.
This matters when reporting a score: a control marked manual-review is neither passing nor failing. Do not fold it into either bucket.
Validation flags
| Flag | Purpose | | --------------------- | ------------------------------------------------------------------ | | `--schema` / `--no-schema` | JSON-schema layer, on by default | | `--deep` | Deep consistency checks | | `--benchmark, -b` | Compliance benchmarks to score | | `--categories` | Compliance rule categories | | `--strict` | Treat warnings as failures | | `--min-severity` | Minimum severity to report | | `--fail-severity` | Severity that causes a non-zero exit | | `--include-manual` | Include manual-review controls in output | | `--include-pass` | Show passing controls, not just failures | | `--report, -r` | `sarif` and other formats | | `--report-file, -o` | Write the report to a file | | `--public-key` | Verify the JSF signature during validation | | `--require-signature` | Fail unless the signature verifies; needs a key, exit 1 without one | | `--platform` | Platform-specific validation behaviour |
Release-gate pattern
cdx-validate -i /absolute/path/to/bom.json \ --benchmark scvs-l2,cra \ --public-key /absolute/path/to/public.pem --require-signature \ --strict \ -r sarif -o /absolute/path/to/results.sarif
Schema, deep consistency, SCVS L2, CRA, and signature presence in one gate.
Validation during generation
`cdxgen --validate` is on by default, so a generated BOM is already schema-checked. `cdx-validate` adds the deep and compliance layers, which generation does not run. Do not tell the user their BOM is "already validated" when they are asking about SCVS or CRA coverage.
Rule details: <https://cdxgen.github.io/cdxgen/#/VALIDATION_RULES>.
Reference
- Conversion: <https://cdxgen.github.io/cdxgen/#/CDX_CONVERT>
- Validation: <https://cdxgen.github.io/cdxgen/#/CDX_VALIDATE>
- Validation rules: <https://cdxgen.github.io/cdxgen/#/VALIDATION_RULES>
cdxgen is a CLI tool, library, REPL, and server to create, validate, sign, and verify software BOMs. It generates CycloneDX JSON BOMs and supports SPDX 3.0.1 JSON-LD export.
Other skills on cdxgen.
More skills from other plugins.
api-security
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
abusing-dpapi-for-cred…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
clean-user-facing-text
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…
Questions about bom-convert-validate.
- Which coding agents can use bom-convert-validate?
- bom-convert-validate installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

