# Lockfile Diff + SBOM

> Diff lockfiles and generate CycloneDX-lite SBOMs to identify major bumps, install scripts, and git dependency risks.

Lockfile Diff + SBOM is a paid AI agent skill on Agensi by Nenad Zivotic, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $19 (one-time purchase)
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.1
- Last updated: 2026-10-27
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/lockfile-diff-sbom
- Tags: security, api, npm, yarn, pnpm, sbom, cyclonedx, dependency-audit

## About this skill

Dependency changes are a primary vector for supply chain attacks and breaking releases. This skill identifies exactly what changed in your lockfiles, flagging high-risk signals like major version bumps, new install scripts, and dependencies pulled from unverified git or non-registry URLs. It provides a zero-dependency, offline mechanism to audit package changes before they hit production.

### What it does
- **Diff lockfiles** across formats, including npm, Yarn, and pnpm, to compare package names and resolved versions.
- **Identify risk signals** by flagging new `install` scripts and dependencies resolved from git repositories or direct URLs.
- **Detect major bumps** to highlight breaking change risks that require manual changelog review.
- **Generate SBOMs** in a CycloneDX-lite JSON format for compliance and release inventory requirements.
- **Inventory components** by extracting name, version, purl, and integrity hashes from local lockfile data.

### How it works
1. **Selection** of the mode (`diff` or `sbom`) and the target file paths or project directories.
2. **Execution** of the bundled Node.js script to parse lockfile structures without making any network calls.
3. **Analysis** of the generated JSON report to prioritize new external sources, scripts, and major version shifts.
4. **Triage** of findings, manually verifying any flagged git sources or potential typosquats.

### Frameworks & tools
This tool uses a bundled Node.js script (v18+) with zero external dependencies. It supports `package-lock.json`, `npm-shrinkwrap.json`, `yarn.lock`, and `pnpm-lock.yaml`.

### Why this beats prompting it yourself
Parsing complex lockfile formats like Yarn's line-based schema or nested npm trees is prone to hallucination and regex errors in raw LLM prompts. This skill uses a specialized, offline script to extract ground-truth data, ensuring that every reported version and risk signal is actually present in the file.

### Use cases
- **PR reviews** to verify that a "simple dependency update" didn't sneak in an unverified git source.
- **Release audits** to generate a component manifest for compliance before shipping a new version.
- **Migration checks** to ensure version parity when switching from Yarn to npm or vice versa.
- **CI gating** to automatically flag major version bumps or new install scripts in automated pipelines.

### Known limitations
Does not perform vulnerability (CVE) scanning. Yarn and pnpm lockfiles do not support install script detection. pnpm support is best-effort due to the lack of a bundled YAML parser.

## Requires

- Node.js 18+
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Lockfile Diff + SBOM skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Why should I use this skill instead of just pasting my lockfile into a standard AI prompt?

This skill uses a specialized, offline Node.js script to extract exact version data and risk signals, preventing the hallucinations and regex errors that occur when asking a standard LLM to read complex lockfile schemas.

### Which lockfile formats and package managers are compatible with this tool?

The skill fully supports npm (package-lock.json, shrinkwrap), Yarn (yarn.lock), and pnpm (pnpm-lock.yaml), allowing you to audit changes or verify parity during package manager migrations.

### What specific security risks and 'red flags' does the diff analysis identify?

It flags high-risk indicators such as major version bumps that may contain breaking changes, new post-install scripts, and dependencies sourced from unverified git repositories or direct URLs rather than official registries.

### Does the skill require an internet connection or access to external registries to analyze my files?

No, this skill operates entirely offline and makes zero network calls; it parses your local files to generate reports, ensuring your dependency data never leaves your secure environment.

### Can this skill replace my current CVE vulnerability scanner?

The skill identifies what is in your project and flags suspicious sources, but it does not query external vulnerability databases (like the NVD) to report on specific CVEs.

### What assets are included in the purchase of this skill?

You receive the core AI skill configuration along with the bundled, zero-dependency Node.js execution script required to perform the deep parsing and SBOM generation.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
