返回顶部
N

NPM Package Scanner

Scan npm packages used in a repository for risk, maintenance health, and upgrade concerns.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
158
下载量
0
收藏
概述
安装方式
版本历史

NPM Package Scanner

# NPM Package Scanner Use this skill when you need to inspect the npm packages used by a repository and identify security, maintenance, and dependency risks. ## Goal Produce a practical package-risk review for the current repository: - what dependencies are installed - which ones are direct vs transitive - which ones look stale, risky, or unnecessary - whether there are known audit issues - whether version ranges are too loose or outdated ## Scope Focus on: - `package.json` - lockfiles such as `package-lock.json`, `bun.lock`, `pnpm-lock.yaml`, or `yarn.lock` - workspace package manifests - scripts that introduce package/tooling risk - duplicated or overlapping dependencies Use the reference notes in `references/checklist.md` and `references/commands.md` when useful. ## Workflow 1. Find package manifests and lockfiles. 2. Read the root `package.json` and any workspace manifests. 3. List direct dependencies and devDependencies. 4. Check for: - very old package versions - abandoned or suspicious packages - duplicate packages solving the same problem - unnecessary runtime dependencies - risky postinstall/build hooks - overly broad semver ranges 5. Run available package-manager audit commands if appropriate. 6. Summarize findings by severity. 7. Recommend concrete next steps. ## Commands Prefer fast repo inspection first: ```bash rg --files | rg '(^|/)(package\.json|package-lock\.json|bun\.lock|pnpm-lock\.yaml|yarn\.lock)$' ``` Inspect manifests: ```bash cat package.json ``` If using Bun: ```bash bun pm ls bun audit ``` If using npm: ```bash npm ls --depth=0 npm audit ``` If using pnpm: ```bash pnpm ls --depth=0 pnpm audit ``` If using yarn: ```bash yarn list --depth=0 yarn audit ``` ## Output format Return: 1. High-risk findings 2. Medium-risk findings 3. Low-risk cleanup items 4. Packages worth upgrading soon 5. Packages that may be removable 6. Exact commands to verify or fix ## Review rules - Prioritize real risk over noise. - Distinguish direct dependencies from transitive ones. - Do not recommend upgrades blindly; mention likely blast radius. - If audit output is noisy, extract only actionable items. - If no serious issues are found, say so explicitly. ## Constraints - Do not modify dependency versions unless explicitly asked. - Do not remove packages unless explicitly asked. - Do not assume a package is abandoned without evidence from the repo context or audit/tool output.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 npm-package-scan-1776188942 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 npm-package-scan-1776188942 技能

通过命令行安装

skillhub install npm-package-scan-1776188942

下载 Zip 包

⬇ 下载 NPM Package Scanner v1.0.0

文件大小: 1.87 KB | 发布时间: 2026-4-17 15:33

v1.0.0 最新 2026-4-17 15:33
Initial release of NPM Package Scanner.

- Scans npm packages in a repository for risk, maintenance issues, and upgrade concerns.
- Analyzes package manifests, lockfiles, and workspace configurations.
- Identifies risky, stale, or unnecessary dependencies and semver issues.
- Runs audit commands for npm, bun, pnpm, and yarn when available.
- Provides a structured summary of findings and actionable recommendations.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部