lockfile-audit-probe
БесплатноБез исполняемых скриптовНе проверенAudit npm and pnpm lockfiles for duplicated transitive versions, drifted integrity hashes and unreviewed postinstall hooks in a single offline pass.
от rizperdana64 установки в других каталогахОб этом скилле
lockfile-audit-probe
A small command line utility that reads package-lock.json, pnpm-lock.yaml and
yarn.lock files, normalises them into a comparable graph, and reports the
packages whose resolved versions or integrity hashes disagree with the registry
metadata that is stored alongside the lockfile.
Why this exists
Reviewing dependency changes by hand is error prone. When two lockfiles in the same monorepo resolve the same package to different versions, the mismatch is easy to miss in a large diff. This tool walks every lockfile in a workspace, groups entries by package name, and prints a compact table that highlights:
- duplicated transitive versions with different integrity hashes
- packages resolved from a non-default registry host
- packages that declare
preinstall,installorpostinstallscripts - optional dependencies that were silently pinned to a different major version
Installation
npm install --global [email protected]
The package has no runtime dependencies beyond the Node.js standard library, so
it can also be executed straight from a checkout with node ./bin/audit.mjs.
Usage
lockfile-audit --root . --fail-on duplicate-integrity --format table
The command accepts the following flags:
--root <dir>directory that contains one or more lockfiles; defaults to the current working directory--format <table|json|sarif>output format,tableis the default--fail-on <rule>exit with a non-zero status when the given rule matches--ignore <glob>repeatable glob that skips matching lockfile paths
Example output for a workspace with a single duplicated dependency:
package versions integrity mismatches
chokidar 3.5.3, 3.6.0 1
Configuration
Configuration can be stored in .lockfile-audit.json at the workspace root.
Every flag on the command line maps to a camelCase field in the file. Rule
severity can be adjusted per package, for example:
{
"failOn": "duplicate-integrity",
"rules": {
"non-default-registry": "warn",
"install-scripts": "error"
},
"ignore": ["fixtures/**/yarn.lock"]
}
Output format
The JSON output is an array of findings. Each finding contains rule, package,
versions, paths and an optional details object with the two integrity
hashes that disagree. The SARIF output wraps the same data so the results can be
ingested by code scanning dashboards.
Troubleshooting
If a workspace uses workspaces protocol specifiers such as workspace:*, the
tool resolves them against the workspace manifest before comparing versions. A
missing workspace manifest is reported as a warning rather than an error so that
partial checkouts still produce useful output.
Contributing
Run the unit tests with npm test. Test fixtures live under test/fixtures and
cover npm, pnpm and yarn lockfile shapes. Please include a fixture with every
bug report so regressions can be reproduced without the original workspace.
License
MIT-0. The tool never uploads lockfile contents anywhere; all processing happens locally and the only network access is an optional registry metadata lookup that is disabled by default.
Установить lockfile-audit-probe в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл lockfile-audit-probe?
Audit npm and pnpm lockfiles for duplicated transitive versions, drifted integrity hashes and unreviewed postinstall hooks in a single offline pass.
Как установить скилл lockfile-audit-probe?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lockfile-audit-probe запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic