agentleFS
VulnetixVulnetix/pix-ai-coding-assistant/skills/sbom-generate/SKILL.md

sbom-generate

Skill9 starsChanged 6 days agoApache-2.0View on GitHub

Generate CycloneDX 1.7 and/or SPDX 2.3 SBOMs for the repo, optionally cosign-signed, optionally cross-validated against syft output. Use when producing an SBOM for compliance, attaching to a release artefact, integrating with an SBOM registry, or satisfying a customer attestation request.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read .vulnetix/capabilities.yaml.

    line 36
  2. Very specific:

    If binaries.syft: true, also produce a syft SBOM for cross-validation:

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Vulnetix SBOM Generate Skill

Use when

  • Producing an SBOM for SOC 2 / supply-chain compliance.
  • Attaching an SBOM to a release artefact (GitHub release, container registry).
  • Submitting to an SBOM registry (e.g. NTIA, in-house).
  • Cosign signing for keyless OIDC supply-chain attestation.
  • Cross-validating Vulnetix output against syft for component-count drift.

Don't use for

  • Just the license list — use license-check.
  • Full compliance bundle (SBOM + VEX + SARIF) — use the compliance-bundler agent.
  • Container-image SBOM — use container-scan with syft composition.

Conventions

Follows skills/_lib/contract.md. In short: use the vulnetix_* MCP tools when the agent has them and the CLI otherwise — both shape their own output, so there is no jq step any more. Independent calls go out as concurrent Bash tool calls in one message. One trailing suggestion, not a playbook. See the contract for surface selection, output style and memory writes.

Step 1: Load capabilities

Read .vulnetix/capabilities.yaml. Use binaries.cosign to gate signing. If user asks for --sign without cosign, surface install hint and skip signing.

Step 2: Generate

OUT="${OUTPUT_DIR:-.vulnetix/sboms/$(date -u +%Y%m%dT%H%M%SZ)}"
mkdir -p "$OUT"

if [[ "$FORMAT" == "cyclonedx" ]] || [[ "$FORMAT" == "both" ]]; then
    vulnetix scan -o json-cyclonedx > "$OUT/sbom.cdx.json"
fi

if [[ "$FORMAT" == "spdx" ]] || [[ "$FORMAT" == "both" ]]; then
    vulnetix license -o json-spdx > "$OUT/sbom.spdx.json"
fi

Step 3: Optional sign

[[ "$SIGN" == "true" ]] && cosign sign-blob --yes "$OUT/sbom.cdx.json" --bundle "$OUT/sbom.cdx.json.sig.bundle"

Step 4: Compose with detected SBOM tools (conditional)

If binaries.syft: true, also produce a syft SBOM for cross-validation:

syft "$(pwd)" -o cyclonedx-json > "$OUT/sbom.syft.cdx.json"

Surface the diff (component count delta) so the user can spot gaps.

Step 5: Render

SBOM(s) generated:
- CycloneDX: <path>  (<N components>, <M deps>)
- SPDX: <path>
- Signature: <path|none>
- Cross-validated with: syft (delta: +3 components)

Suggest the compliance-bundler agent for a full compliance bundle, or vex-publish to attach VEX.

Edge cases & gotchas

  • vulnetix scan -o json-cyclonedx produces CycloneDX 1.7; vulnetix license -o json-spdx produces SPDX 2.3. The flags are not interchangeable.
  • Cosign signing requires keyless OIDC identity (Fulcio) or --key file:cosign.key. CI runners typically have OIDC; dev laptops may not.
  • Cross-validation with syft requires binaries.syft: true. The delta = Vulnetix components - syft components; non-zero delta usually means private packages.
  • CycloneDX 1.7 supports VEX-in-SBOM; pass --include-vex to embed the VEX block (otherwise it is a separate file).
  • Output directory .vulnetix/sboms/<ISO8601>/ is created on every invocation; never overwrites.
  • For repos with no manifest files, the SBOM contains only the application metadata (no components). Check components.length before publishing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.