Skip to content
Security
Skill

/ai-bom

Generates AI-BOM, MCP inventory, AI skill inventory, and AI authorship provenance documents with cdxgen, cataloging models, inference services, Hugging Face purls, MCP servers and their tools/prompts/resources, agent instruction files, and cdx:ai:codegen provenance signals, then

From plugin
cdxgen
1.1k14 skills1 agent

Claude Code

$ npx -y skills add cdxgen/cdxgen --skill ai-bom --agent claude-code

SKILL.md

ai-bom.SKILL.md
name: ai-bom
description: Generates AI-BOM, MCP inventory, AI skill inventory, and AI authorship provenance documents with cdxgen, cataloging models, inference services, Hugging Face purls, MCP servers and their tools/prompts/resources, agent instruction files, and cdx:ai:codegen provenance signals, then audits them with AI-focused rule packs. Use when asked to inventory AI or ML usage, catalog MCP servers, audit agent instruction or skill files, assess AI supply-chain risk, or detect AI-generated code authorship.

AI-BOM, MCP inventory, and AI provenance

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](../../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.

AI-BOM: models and inference services

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.

Direct model targets

`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.

ML depth profiles

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.

AI audit categories

| 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` |

MCP inventory

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`.

What the MCP inventory contains

  • `components` for MCP SDK packages
  • `services` for discovered MCP servers
  • synthetic components for MCP primitives: tools, prompts, resources, resource templates
  • `dependencies` links from a server service to the primitives it exposes

Config 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.

Inspecting an MCP BOM

# 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`.

The MCP findings that matter most

Escalate these:

  • unau
Read more
@cdxgen
Ships withcdxgen

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.

1.1k14 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.1k
Star history of cdxgen/cdxgen on GitHub, a chart by star-history.com

Other skills on cdxgen.

bom-audit

bom-audit

Runs supply-chain risk analysis on CycloneDX BOMs with cdx-audit predictive auditing and cdxgen --bom-audit embedded rules,…

@cdxgen@cdxgenInstall Skill
bom-convert-validate

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…

@cdxgen@cdxgenInstall Skill
bom-evidence

bom-evidence

Enriches an existing CycloneDX BOM with occurrence, callstack, reachability, data-flow, and crypto-flow evidence using cdxgen…

@cdxgen@cdxgenInstall Skill
bom-explore

bom-explore

Explores and triages a CycloneDX BOM interactively with the cdxi REPL, using built-in commands for dependency trees, licenses,…

@cdxgen@cdxgenInstall Skill
bom-signing

bom-signing

Signs and verifies CycloneDX BOMs using cdxgen's native JSON Signature Format (JSF) implementation via cdx-sign and cdx-verify,…

@cdxgen@cdxgenInstall Skill
bom-slimmer

bom-slimmer

Reviews a codebase's direct dependencies and designs lightweight, low-risk, zero-dependency custom replacements using cdxgen SBOM…

@cdxgen@cdxgenInstall Skill

More skills from other plugins.

api-security

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…

@zhaoxuya520@zhaoxuya520Install Skill
nemoclaw-user-guide

nemoclaw-user-guide

Find official NemoClaw documentation for installation, configuration, operation, or troubleshooting. Also handles requested docs…

@nvidia@nvidiaInstall Skill

Questions about ai-bom.

Which coding agents can use ai-bom?
ai-bom 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.