/cdxgen:ai-bomfrom cdxgen
Generates AI-BOM, MCP inventory, AI skill inventory, and AI authorship provenance documents with cdxgen, cataloging models, inference services, Hugging Face purls, MCP servers, agent instruction files, and AI codegen provenance signals.
Ships in cdxgen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Four related but distinct concerns. Pick the right one before reaching for flags — conflating them produces a document that answers the wrong question.
| Question | Project type |
|---|---|
| What models and inference services does this use? | ai / aibom / ai-bom |
| What MCP servers, tools, and configs does this ship? | mcp |
| What agent instruction and skill files does it ship? | ai-skill / skill / skills |
| Was this code written with AI assistance? | ai-provenance / ai-authorship / aicode / ai-codegen |
Read reference/safety.md first. The review-before-sharing rule is especially relevant here: AI and MCP inventory is one of the categories most likely to contain credential-bearing configuration.
aibom /absolute/path/to/project
Or explicitly, with the audit pack:
cdxgen -r --include-formulation \
-o /absolute/path/to/aibom.json \
--bom-audit --bom-audit-categories ai-bom \
/absolute/path/to/project
--include-formulation matters here: it moves the AI and agentic inventory into
the standard CycloneDX formulation[] section so downstream tools consume it as
formal formulation data rather than ad-hoc top-level enrichment. Prefer it.
aibom accepts a model reference rather than a project directory:
aibom pkg:huggingface/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
aibom https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-7B
aibom /absolute/path/to/Modelfile
aibom /absolute/path/to/model.gguf
Hugging Face model repositories get proper
pkg:huggingface/<namespace>/<name>@<revision> purls when a compliant
repository reference is available. When remote resolution is enabled, cdxgen
follows the revision-aware Hub endpoints, so explicit purl revisions, remote
popularity/runtime hints, and Space-linked model/dataset relationships are
preserved instead of collapsing to an unversioned HEAD lookup. Datasets
referenced by model cards get reusable dataset component references with their
own Hugging Face purls.
cdxgen --profile ml-tiny -o /absolute/path/to/bom.json /absolute/path/to/project
ml / machine-learning, ml-deep / deep-learning, and ml-tiny trade
depth against runtime. Start with ml and escalate only if the inventory is
thin.
| Category | Checks |
|---|---|
ai-bom | Umbrella pack for AI-BOM review |
ai-security | Security posture of AI services and model usage |
ai-governance | Governance and policy conformance |
ai-performance | Performance-relevant model and runtime findings |
ai-inventory | Alias enabling both ai-agent and mcp-server |
cdxgen -t mcp /absolute/path/to/project \
-o /absolute/path/to/bom.json \
--bom-audit --bom-audit-categories mcp-server
By default a plain -t js scan also reports shipped MCP configuration files
and AI instruction/skill files, because both can influence build and post-build
lifecycles. Control that overlay:
--exclude-type mcp drops MCP config components, discovered services, and MCP primitives. Genuine MCP SDK dependency packages (@modelcontextprotocol/*, PyPI mcp, io.modelcontextprotocol.sdk) are real supply-chain components and are always retained.--exclude-type ai-skill drops AI skill and instruction inventory.-t mcp produces an exact MCP-focused BOM: SDK packages, discovered services, primitives, and config files such as .vscode/mcp.json.components for MCP SDK packagesservices for discovered MCP serversdependencies links from a server service to the primitives it exposesConfig formats recognised include .vscode/mcp.json, .mcp.json,
claude_desktop_config.json, and opencode.json. Community agent layouts are
covered too: OpenCode, Nanocoder, LangGraph, and common CrewAI project files.
# discovered servers
jq '.services[]' /absolute/path/to/bom.json
# MCP primitives
jq '.components[] | select(.properties[]?.name == "cdx:mcp:role")' /absolute/path/to/bom.json
# shipped MCP config files
jq '.components[] | select(.properties[]?.value == "mcp-config")' /absolute/path/to/bom.json
# service-to-primitive links
jq '.dependencies[] | select(.ref | startswith("urn:service:mcp:"))' /absolute/path/to/bom.json
# audit findings
jq '.annotations[]' /absolute/path/to/bom.json
Key property namespaces: cdx:mcp:serviceType, cdx:mcp:transport,
cdx:mcp:exposureType, cdx:mcp:authPosture, cdx:mcp:trustProfile,
cdx:mcp:credentialExposure, cdx:mcp:reviewNeeded,
cdx:mcp:security:confusedDeputyRisk, cdx:mcp:security:tokenPassthroughRisk.
Escalate these:
The analysis is deliberately conservative — it prefers literal, explainable signals over speculative reconstruction. So a clean result is not proof of absence. Dynamically generated tool names, endpoints, and capability objects can be missed, and provider/model detection only records explicit literals.
Keep and flag the files:
cdxgen -t js --bom-audit \
--bom-audit-categories mcp-server,ai-agent \
--tlp-classification AMBER \
-o /absolute/path/to/bom.json /absolute/path/to/repo
Drop them for a package-only SBOM:
cdxgen -t js --exclude-type ai-skill --exclude-type mcp \
-o /absolute/path/to/bom.json /absolute/path/to/repo
--experimental-mcp-pinning (or CDXGEN_EXPERIMENTAL_MCP_PINNING=true), off by
default, records an explicit cdx:mcp:pinning state — pinned, unpinned, or
unhashable — plus cdx:mcp:composition=unknown for remote servers with no
local package. The point is that absence is labelled rather than implied.
These property names are subject to change until the CycloneDX agent-BOM proposal is ratified. Do not build durable tooling on them; tell the user they are experimental if you enable the flag.
cdxgen -t ai-skill /absolute/path/to/project -o /absolute/path/to/bom.json \
--bom-audit --bom-audit-categories ai-agent
Covers CLAUDE.md, AGENTS.md, SKILL.md,
.github/copilot-instructions.md, .github/workflows/copilot-setup-steps.yml,
.opencode/**, .nanocoder/**, langgraph.json, and CrewAI files. Properties
land under cdx:agent:*, cdx:tool:*, cdx:skill:*, cdx:langgraph:*, and
cdx:crewai:*.
A different concern entirely: this is a generation-time property injector over git history and CI configuration. It does not inventory MCP servers or models.
cdxgen -t ai-provenance -o /absolute/path/to/bom.json /absolute/path/to/project
Signals land in the BOM document root properties as cdx:ai:codegen:* and
cdx:ai:oversight:*.
Detection is enabled by default in cdx-audit, since all rule categories
run by default:
cdx-audit --bom /absolute/path/to/bom.json --direct-bom-audit
cdx-audit --bom /absolute/path/to/bom.json --direct-bom-audit --categories ai-provenance
cdx-audit --bom /absolute/path/to/bom.json --direct-bom-audit --no-ai-provenance
If the BOM already carries cdx:ai:codegen:* properties, cdx-audit reuses
them; otherwise it scans the working directory and injects them before
evaluating rules.
The ai-provenance category enables both ai-provenance and ai-oversight.
The oversight rules evaluate whether AI-assisted code was merged with adequate
independent human review, and detect rubber-stamping or quality-gate bypassing.
Treat the output as a signal for a conversation, not a verdict about a person.
In cdxi (see bom-explore): .aibom, .services, .formulation,
.provenance, .auditfindings.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cdxgen/cdxgen --plugin cdxgen14 skills in this plugin
/bom-auditRuns supply-chain risk analysis on CycloneDX BOMs with cdx-audit predictive auditing and cdxgen --bom-audit embedded rules, covering npm and PyPI package compromise posture, CI permission risk, dependency source integrity, license policy violations, and SARIF or JSON reporting for code scanning. Use when asked to audit an SBOM, assess supply-chain or dependency risk, check for compromised or malicious packages, triage which dependencies to review first, or produce SARIF from a BOM./bom-convert-validateConverts 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./bom-evidenceEnriches an existing CycloneDX BOM with occurrence, callstack, reachability, data-flow, and crypto-flow evidence using cdxgen evinse, including Go analysis via Golem and Rust analysis via Rusi, and produces SaaSBOM service and endpoint inventory. Use when asked which dependencies are actually used or reachable, for callstack or usage evidence, a SaaSBOM, API endpoint inventory, data-flow or taint analysis, or to distinguish real from declared dependency usage, or what Golem found in a Go project, including requests to show Golem's raw values./bom-exploreExplores and triages a CycloneDX BOM interactively with the cdxi REPL, using built-in commands for dependency trees, licenses, services, cryptographic assets, audit findings, evidence occurrences and callstacks, unpackaged container binaries, HBOM and OBOM categories, and Golem or Cargo hotspots. Use when asked to inspect, query, summarize, or triage an existing BOM, find what is inside an SBOM, or answer ad hoc questions about BOM contents without writing scripts./bom-signingSigns and verifies CycloneDX BOMs using cdxgen's native JSON Signature Format (JSF) implementation via cdx-sign and cdx-verify, supporting granular component, service, and annotation signatures, parallel multi-signatures, and sequential signature chains. Use when asked to sign an SBOM, verify a BOM signature, establish BOM authenticity or non-repudiation, build an approval trail across pipeline stages, or generate signing keys./bom-slimmerReviews a codebase's direct dependencies and designs lightweight, low-risk, zero-dependency custom replacements using cdxgen SBOM evidence, occurrence/callstack usage data, and license and supply-chain risk evaluation. Use when asked to shrink node_modules, reduce dependency bloat or copyleft exposure, find small or utility packages that could be replaced with built-in code, or replace utility packages with native or built-in implementations. Load it before suggesting any command for that analysis, even when the user only wants to see the commands.Other plugins' skills for the same job