/ai-sbom:generate-sbomfrom ai-sbom
Generates an AI SBOM declaration for PR descriptions, listing AI tools, models, and skills used. Handles both active and past sessions.
Ships in ai-sbom. 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.
Generate a formatted ai-assisted code fence block for a PR description that declares which AI tools, models, and skills contributed to the work.
When the user asks to generate an AI SBOM during an active session, you already know which skills were invoked. Collect the list from your own tool usage history in this conversation. Get the tool version by running claude --version.
When the user wants an SBOM for a previous session or across multiple sessions:
~/.claude/projects/<project-path-with-dashes>/python3 <ai-sbom-plugin-path>/scripts/extract_skills.py <path-to-session-or-project-dir>
skills, models, and tool_version. The tool version is extracted from the session transcript when available; if not found, it falls back to the currently installed version via claude --version.For each skill identified, resolve its version and source:
Read ~/.claude/plugins/installed_plugins.json to find the plugin entry
plugin-name@marketplace-name (e.g., superpowers@claude-plugins-official)version and gitCommitSha from the entryRead ~/.claude/plugins/known_marketplaces.json to find the source repo
source.repo (e.g., anthropics/claude-plugins-official)For repo-local skills (.claude/skills/), use the repo: prefix with no version
For user-level skills (~/.claude/skills/), use the user: prefix with no version
Read the format specification at plugins/ai-sbom/docs/AI_SBOM.md for the exact block structure, field definitions, skill entry format, and examples. Generate the ai-assisted code fence block following that spec.
When the user asks to write the SBOM to a PR:
gh pr view --json number,body## AI Assistance header## AI Assistance section
## AI Assistance through the closing ``` of the ai-assisted fencegh pr edit <number> --body "<updated body>"claude --version~/.claude/plugins/installed_plugins.json~/.claude/plugins/known_marketplaces.json.claude/skills/ and ~/.claude/skills/ for repo-local and user-level skills## AI Assistance section with the ai-assisted code fence blockgh pr editWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub openshift-eng/ai-helpers --plugin ai-sbomOther plugins' skills for the same job