pkg-version-audit
Check installed package versions against upstream releases and report drift. Useful in CI pipelines to pin dependencies or alert on stale versions.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- pkg-version-audit
- license
- MIT
- description
- Check installed package versions against upstream releases and report drift. Useful in CI pipelines to pin dependencies or alert on stale versions.
02 资源文件 2
- 参考文档_provenance.json1.2 KB
- 脚本audit_versions.sh3.5 KB
03 SKILL.md 正文
Package Version Audit
A lightweight utility that queries a package registry for the latest published versions of a given set of packages and compares them against what is currently installed in the environment.
Installation
Place audit_versions.sh in your project's scripts/ directory. Ensure it's executable.
Usage
./audit_versions.sh [--registry URL] [--timeout SECONDS] [--output FORMAT] [--packages pkg1,pkg2,...]
If --packages is omitted, the script reads package names from standard input (one per line).
Options
--registry— Base URL of the package index. Defaults tohttps://registry.npmjs.org.--timeout— Network timeout in seconds. Default: 10.--output— Output format:text(default) orjson.--packages— Comma-separated list of package names to check.
Examples
# Check a few packages
./audit_versions.sh --packages lodash,react,express
# Pipe package list from a file
cat packages.txt | ./audit_versions.sh --registry https://registry.yarnpkg.com
Notes
- Requires
curland standard POSIX utilities (grep,sed,awk). - No data is sent anywhere except to the configured registry URL for version lookups.
- Output is written to stdout; exit code 0 on success, 1 on network/parse error.
CI Integration
For GitHub Actions or GitLab CI, use the JSON output to programmatically compare versions and fail the build on drift.
License
MIT — do whatever you like, but no warranty.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms