anchore/syft ? reverse-engineered prompt

Reverse engineered prompt

Build me a Go tool called Syft that can scan a container image or a local folder and generate a software bill of materials for it.

I want it to show what packages are inside, including common ecosystems like Alpine, Debian, RPM, Go, Python, JavaScript, Ruby, Rust, PHP, and .NET, and it should work with images and filesystems, plus archives if that fits. Let me export the results in a few useful formats like CycloneDX, SPDX, and a JSON format of your own. It would be great if it can also convert between SBOM formats and produce signed attestations for supply chain use.

Make it feel like a real command line app with sensible defaults, good help text, and easy output to stdout or files. Keep it usable as both a CLI and a library, and make sure it is useful for vulnerability scanning workflows with Grype. If you need to check current format details or best practices, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab