Skip to main content

read-a-package-lockfile

Read a package lockfile to identify resolved versions, dependency paths, integrity, sources, platforms, and unexpected changes. Use when reviewing installation, upgrade, vulnerability, or supply-chain evidence.

来源信息

仓库
protosphinx/sphinxstack
最近来源活动
2026年7月29日 13:55
检测到的 SKILL.md 语言
英语
星标
3
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
read-a-package-lockfile
category
code
description
Read a package lockfile to identify resolved versions, dependency paths, integrity, sources, platforms, and unexpected changes. Use when reviewing installation, upgrade, vulnerability, or supply-chain evidence.
# read-a-package-lockfile Read the lockfile with the package manager and format that produced it. ## When to use - Use during dependency review, incident analysis, reproducibility checks, or merge review. - Do not edit generated lock entries manually unless the package manager explicitly supports it. ## Preconditions - Identify manifest, lock format and version, package manager and version, registries, workspace, and target platforms. ## Procedure 1. Preserve the lockfile and compare it to the relevant base revision. 2. Identify direct requirements and each resolved transitive path. 3. Inspect version, source, registry or URL, integrity, optionality, peer, platform, and lifecycle metadata. 4. Explain duplicate versions and resolution overrides. 5. Flag new sources, git URLs, local paths, missing integrity, scripts, and surprising transitive growth. 6. Reproduce installation in a clean authorized environment without updating the lock. 7. Record findings and regenerate through the correct package-manager command when change is approved. ## Failure plan - If the format or package-manager version is unknown, do not infer fields from another ecosystem. ## Worked example A minor direct upgrade introduces a git-sourced transitive package with an install script; the reviewer traces its path and blocks release pending provenance. ## Done - A lockfile review report records format, versions, paths, sources, integrity, duplicates, scripts, diff, and findings - Clean-install, manifest, package-manager-version, registry, platform, provenance, and lock-stability checks verify interpretation
在 GitHub 查看