package-lock-parsing

package-lock-parsing is a skill for Claude Code, Codex from cxcscmu/SkillLearnBench. It costs 24 tokens per session (446 once invoked), scanned A, original, MIT.

A parser for npm's `package-lock.json`, the file that records the exact package versions installed in a JavaScript project. It extracts package names and their installed versions from the lock file.

In plain words
What is it for?
It is for reading dependency entries from the lock file, including packages listed under its `packages` section.
Why use it?
It avoids manually inspecting a large dependency file and provides consistent package data for tasks such as vulnerability scanning.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for reading dependency entries from the lock file, including packages listed under its packages section.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cxcscmu/skilllearnbench/package-lock-parsing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cxcscmu/SkillLearnBench --skill package-lock-parsing
Clone the repo
git clone --depth 1 https://github.com/cxcscmu/SkillLearnBench

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for package-lock-parsing

README.md
[![agentmods](https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/package-lock-parsing/github.svg)](https://agentmods.dev/skills/cxcscmu/skilllearnbench/package-lock-parsing)
Your own site
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/package-lock-parsing"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/package-lock-parsing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for package-lock-parsing

Your own site · 80×15
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/package-lock-parsing"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/package-lock-parsing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00446
Opus 5.5 $0.00010 $0.00178
Sonnet 5.5 $0.00005 $0.00089
Haiku 4.5 $0.00002 $0.00045

Measured 3mo ago against content hash b0e42430c571, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

package-lock-parsing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/b1-one-shot-claude-haiku-4-5/dependency-vulnerability-check/package-lock-parsing/SKILL.md · 76 lines

What it actually says

Package-lock.json Parsing

Overview

The package-lock.json file is an npm lock file that records exact dependency versions used in a project. It enables reproducible installs and is essential for vulnerability scanning.

File Structure

The package-lock.json follows this structure:

{
  "name": "project-name",
  "version": "1.0.0",
  "lockfileVersion": 3,
  "packages": {
    "": {
      "name": "project-name",
      "version": "1.0.0",
      "dependencies": {
        "express": "^4.18.0"
      }
    },
    "node_modules/express": {
      "version": "4.18.2",
      "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz"
    }
  }
}

Key Properties

  • packages: Contains all packages (root + node_modules)
  • version: The installed version of each package
  • dependencies: Direct dependencies of a package

Extraction Pattern

import json

def parse_package_lock(file_path):
    with open(file_path, 'r') as f:
        lock_data = json.load(f)

    packages = {}
    for pkg_path, pkg_info in lock_data.get('packages', {}).items():
        # Skip root package
        if pkg_path == '':
            continue

        pkg_name = pkg_path.split('/')[-1]
        version = pkg_info.get('version')
        packages[pkg_name] = version

    return packages

Usage

Use this skill when:

  • Extracting dependency lists from package-lock.json
  • Building vulnerability scanning pipelines
  • Analyzing dependency versions for compliance
  • Creating inventory reports of installed packages
  • trivy-vulnerability-scanning: Use parsed packages as input to vulnerability scanner
  • security-audit-csv-reporting: Output results in structured CSV format
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 76 lines · 24 tokens per session scan A b0e42430c571

Subscribe to this mod's changes

package-lock-parsing is a skill published in the GitHub repository cxcscmu/SkillLearnBench (93 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 446 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

package-lock-parsing compared with skills from other repositories

package-lock-parsing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
package-lock-parsingcxcscmu/SkillLearnBenchSkill931mo agoMITA24Claude Code, Codex
maintaining-core-memoryletta-ai/letta-codeSkill3.9ktodayApache-2.0A50Claude Code, Codex
maven-plugin-configurationbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A31Claude Code, Codex
openai-visionbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A17Claude Code, Codex
powerliftingbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A21Claude Code, Codex
box-least-squaresbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A64Claude Code, Codex
routing-subtour-eliminationbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A70Claude Code, Codex