Agent skill

Generate Sbom

by openshift-eng in openshift-eng/ai-helpers

Generate an AI SBOM declaration for a PR description. An agent skill from openshift-eng/ai-helpers.

Apache-2.0Auto-check passedSecurity

Install Generate Sbom

skills CLI
$ npx skills add openshift-eng/ai-helpers --skill generate-sbom -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openshift-eng/ai-helpers generate-sbom --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ai-sbom/skills/generate-sbom .claude/skills/generate-sbom && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
generate-sbom
GitHub stars
120
Token cost
~874 tokens
SKILL.md length
430 words
Files
1
Skills in repo
118
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate an AI SBOM declaration for a PR description. An agent skill from openshift-eng/ai-helpers.

  • Works in 3 steps: Identify the project directory:… → Run the extraction script → The script outputs a JSON object with…
  • The user asks to generate an AI SBOM
  • SKILL.md covers Modes, Resolving Provenance, Output Format and Writing to a PR, plus 1 more section
  • Calls claude, gh and python3

What it does

Generate Sbom is an agent skill from openshift-eng/ai-helpers. Generate an AI SBOM declaration for a PR description. Use this skill when the user asks to generate an AI SBOM, create an ai-assisted block, fill out their AI assistance section, or prepare a PR description with AI provenance. Also use when the user says 'what skills did I use' or 'summarize my AI usage'.

Its SKILL.md is about 870 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Security, covering Supply chain security and Pull requests. The repository describes itself as: Developer productivity tools for Claude Code & other AI assistants. The licence is Apache-2.0.

When your agent uses it

  • The user asks to generate an AI SBOM
  • Create an ai-assisted block
  • Fill out their AI assistance section
  • Prepare a PR description with AI provenance

Example prompts

  • “what skills did I use”
  • “summarize my AI usage”
  • “/generate-sbom”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Identify the project directory: ~/.claude/projects//
  2. Run the extraction script
  3. The script outputs a JSON object with skills, models, and tool_version. The tool version is extracted from the session transcript when…

What it can do on your machine

Read from SKILL.md and the folder at commit a627176. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • claude
    • gh
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Generate Sbom loads about 874 tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 430 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~874

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openshift-eng/ai-helpers at commit a627176, republished under its Apache-2.0 licence (© openshift-eng). 430 words, ~874 tokens.

Download SKILL.mdSave it as .claude/skills/generate-sbom/SKILL.md (or your agent's skills folder).
name
generate-sbom
description
Generate an AI SBOM declaration for a PR description. Use this skill when the user asks to generate an AI SBOM, create an ai-assisted block, fill out their AI assistance section, or prepare a PR description with AI provenance. Also use when the user says 'what skills did I use' or 'summarize my AI usage'.

Generate AI SBOM Declaration

Generate a formatted ai-assisted code fence block for a PR description that declares which AI tools, models, and skills contributed to the work.

Modes

Current Session

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.

Past Session

When the user wants an SBOM for a previous session or across multiple sessions:

  1. Identify the project directory: ~/.claude/projects/<project-path-with-dashes>/
  2. Run the extraction script:
    bash
    python3 <ai-sbom-plugin-path>/scripts/extract_skills.py <path-to-session-or-project-dir>
  3. The script outputs a JSON object with 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.

Resolving Provenance

For each skill identified, resolve its version and source:

  1. Read ~/.claude/plugins/installed_plugins.json to find the plugin entry

    • The key format is plugin-name@marketplace-name (e.g., superpowers@claude-plugins-official)
    • Extract version and gitCommitSha from the entry
  2. Read ~/.claude/plugins/known_marketplaces.json to find the source repo

    • Match the marketplace name to get the source.repo (e.g., anthropics/claude-plugins-official)
  3. For repo-local skills (.claude/skills/), use the repo: prefix with no version

  4. For user-level skills (~/.claude/skills/), use the user: prefix with no version

Output Format

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.

Show full SKILL.md (192 more words)Show less

Writing to a PR

When the user asks to write the SBOM to a PR:

  1. Find the PR for the current branch: gh pr view --json number,body
  2. Generate the SBOM block with the ## AI Assistance header
  3. Check if the PR body already contains a ## AI Assistance section
    • If yes, replace everything from ## AI Assistance through the closing ``` of the ai-assisted fence
    • If no, append the section to the end of the PR body
  4. Update the PR: gh pr edit <number> --body "<updated body>"
  5. Confirm to the user what was written

Steps

  1. Determine mode (current session or past session)
  2. Get the tool version by running claude --version
  3. Collect the list of skills used (from self-knowledge or extraction script)
  4. Read ~/.claude/plugins/installed_plugins.json
  5. Read ~/.claude/plugins/known_marketplaces.json
  6. For each skill, resolve: marketplace, version, source repo, commit SHA
  7. Check .claude/skills/ and ~/.claude/skills/ for repo-local and user-level skills
  8. Format the ## AI Assistance section with the ai-assisted code fence block
  9. If the user wants it written to a PR, update the PR body using gh pr edit
  10. Otherwise, present it to the user for manual inclusion

© openshift-eng, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ai-sbom/skills/generate-sbom of openshift-eng/ai-helpers.

Open the folder on GitHubat commit a627176

Compare with similar skills

Generate Sbom next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Generate Sbom compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Sbom this skillopenshift-eng/ai-helpers120—~874Automated safety check: PassApache-2.0
PR Auditakitaonrails/my-skills212—~4.8kAutomated safety check: PassNone
Detecting Typosquatting Packagesmukul975/Anthropic-Cybersecurity-Skills34k—~3kAutomated safety check: PassApache-2.0
Renovate Actions PR Reviewbacknotprop/plannotator9.2k—~640Automated safety check: PassApache-2.0
Contributor Screendifferent-ai/openwork24k—~939Automated safety check: WarnCustom licence
Skill Scannergetsentry/skills1k4 repos~2.5kAutomated safety check: WarnApache-2.0

Similar skills

  • PR Audit

    akitaonrails/my-skills

    Audit GitHub pull requests before merge, including contributor-claim verification, prompt-injection resistance, malicious-code and supply-chain review, regressions, tests, documentation…

    212 GitHub stars~4.8k tokensUpdated 15 days ago
    SecurityAuto-check passed
  • Detecting Typosquatting Packages

    mukul975/Anthropic-Cybersecurity-Skills

    Flag misspelled, brandjacked, and typosquatted package names across npm, PyPI, and crates.io before installation, using edit-distance, keyboard-proximity, and known-target corpus matching with…

    34k GitHub stars~3k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Renovate Actions PR Review

    backnotprop/plannotator

    Reviews Renovate pull requests that bump GitHub Actions by checking pinned SHAs against upstream tags, scanning changelogs and confirming workflows stay compatible.

    9.2k GitHub stars~640 tokensUpdated today
    DevelopmentAuto-check passed
  • Contributor Screen

    different-ai/openwork

    Screen a pull request from an outside contributor for hidden, obfuscated, or supply-chain-risky changes before any of its code runs.

    24k GitHub stars~939 tokensUpdated today
    DevelopmentAuto-check: warnings
  • Skill Scanner

    getsentry/skills

    Official

    Scan agent skills for security issues. An agent skill from getsentry/skills.

    1k GitHub starsUsed in 4 repos~2.5k tokens
    SecurityAuto-check: warnings
  • Serenity Aleabitoreddit

    yan-labs/serenity-aleabitoreddit

    Apply trader Serenity's (@aleabitoreddit) AI/semiconductor supply-chain analytical lens to US-stock ideas and market judgment.

    480 GitHub starsUsed in 1 repo~3.3k tokens
    SecurityAuto-check passed

More from openshift-eng/ai-helpers

All 118 skills in this repo
  • Investigate CI Reliability

    openshift-eng/ai-helpers

    Find and independently validate actionable reliability defects across OpenShift release jobs and presubmits, then export portable issue handoffs.

    120 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Address Review PR

    openshift-eng/ai-helpers

    Fetch and address all PR review comments — categorize by priority, make code changes, post replies, and push.

    120 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Categorize Activity Types

    openshift-eng/ai-helpers

    Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools.

    120 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Has Review Work

    openshift-eng/ai-helpers

    Decide whether a GitHub PR has unanswered authorized review comments or new required CI failures worth a follow-up agent.

    120 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Must Gather Analyzer

    openshift-eng/ai-helpers

    Analyze OpenShift must-gather diagnostic data including cluster operators, pods, nodes, and network components.

    120 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Payload Autodl JSON

    openshift-eng/ai-helpers

    Schema for the autodl JSON data file produced by payload-analysis for database ingestion — you must use this skill whenever generating the autodl JSON file

    120 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Generate Sbom

What does Generate Sbom do?

Generate an AI SBOM declaration for a PR description. An agent skill from openshift-eng/ai-helpers. Generate Sbom is an agent skill from openshift-eng/ai-helpers. Generate an AI SBOM declaration for a PR description.

When should I use Generate Sbom?

Generate Sbom fits situations like: the user asks to generate an AI SBOM; create an ai-assisted block; fill out their AI assistance section; prepare a PR description with AI provenance.

How do I install Generate Sbom in Claude Code?

Run `npx skills add openshift-eng/ai-helpers --skill generate-sbom -a claude-code`. Or copy the skill folder (plugins/ai-sbom/skills/generate-sbom in openshift-eng/ai-helpers) into .claude/skills/generate-sbom in your project. Claude Code loads it when a task matches its description.

How do I install Generate Sbom in Codex?

Run `npx skills add openshift-eng/ai-helpers --skill generate-sbom -a codex`. Or copy the skill folder (plugins/ai-sbom/skills/generate-sbom in openshift-eng/ai-helpers) into .agents/skills/generate-sbom in your project. Codex loads it when a task matches its description.

Can I use Generate Sbom in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openshift-eng/ai-helpers --skill generate-sbom -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-sbom, .gemini/skills/generate-sbom, .github/skills/generate-sbom and .opencode/skills/generate-sbom in your project.

What does Generate Sbom need to run?

Going by SKILL.md and its folder, Generate Sbom needs the command-line tools its instructions call (claude, gh and python3). Our summary lists: Python 3.

Does Generate Sbom access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Generate Sbom safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Generate Sbom use?

Generate Sbom is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Generate Sbom use?

About 874 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Generate Sbom?

Skills that share tags, products or a category with Generate Sbom: PR Audit (akitaonrails/my-skills, 212 stars), Detecting Typosquatting Packages (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Renovate Actions PR Review (backnotprop/plannotator, 9.2k stars) and Contributor Screen (different-ai/openwork, 24k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Sbom?

openshift-eng (a GitHub organization) maintains it in openshift-eng/ai-helpers, which has 120 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on October 6, 2026.

Source: openshift-eng/ai-helpers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.