agentleFS
Cogni-AI-OUCogni-AI-OU/cogni-ai-agent-skills/sbom/SKILL.md

sbom

Skill4 starsChanged 7 months agoMITView on GitHub

Commands and guidelines for generating a Software Bill of Materials (SBOM) locally in SPDX and CycloneDX formats using syft. You MUST load this skill when asked to create, generate, or update an SBOM.

  • Pipes a download into a shell

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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. Distinctive:

    When required to generate compliance reports for software supply chain security.

    line 17
  2. Distinctive:

    When configuring a CI/CD pipeline step that requires SPDX or CycloneDX artifacts.

    line 19
  3. Very specific:

    When specifically auditing source code for logic vulnerabilities (use security-audit instead).

    line 24
  4. Distinctive:

    If the repository strictly uses another proprietary SBOM generator mandated by the organization.

    line 25
  5. Very specific:

    Install Syft: Ensure the syft CLI tool is installed for SBOM generation.

    line 35
  6. Distinctive:

    Generate SBOM: Run the project's build command to produce SBOM artifacts.

    line 36
  7. Distinctive:

    Always ensure the SBOM generation captures both direct and transitive dependencies.

    line 57
  8. Distinctive:

    Verify that package versions, licenses, and hashes are included in the generated output for integrity verification.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Skill: sbom

<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->

Guidelines and commands for generating a Software Bill of Materials (SBOM) to provide visibility into the dependency tree, enabling compliance reporting, vulnerability tracking, and supply chain risk assessment.

When to Use

  • When required to generate compliance reports for software supply chain security.
  • To produce an inventory of all third-party dependencies used in a project.
  • When configuring a CI/CD pipeline step that requires SPDX or CycloneDX artifacts.

When Not to Use

  • For routine unit testing or local syntax linting.
  • When specifically auditing source code for logic vulnerabilities (use security-audit instead).
  • If the repository strictly uses another proprietary SBOM generator mandated by the organization.

Common Pitfalls

  • Missing Transitive Dependencies: Generating an SBOM from source code without resolving lockfiles, leading to an incomplete dependency tree.
  • Format Confusion: Assuming a single JSON format is sufficient without verifying whether the downstream consumer requires SPDX or CycloneDX.
  • Stale Generation: Generating the SBOM before the final build step, resulting in an inaccurate representation of the shipped artifact.

Core Process

  1. Install Syft: Ensure the syft CLI tool is installed for SBOM generation.
  2. Generate SBOM: Run the project's build command to produce SBOM artifacts.
  3. Verify Output: Confirm the generation of both SPDX and CycloneDX JSON formats.

Quick Start

# 1. Install syft (if not already installed)
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin

# 2. Generate SBOM
make sbom

Commands / Usage Patterns

  • Install syft: curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
  • Generate Artifacts: make sbom
  • Expected Artifacts: The generation command typically produces sbom.spdx.json (SPDX JSON format) and sbom.cdx.json (CycloneDX JSON format).

Best Practices

  • Always ensure the SBOM generation captures both direct and transitive dependencies.
  • Verify that package versions, licenses, and hashes are included in the generated output for integrity verification.

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.