‹ 首页

dead-dependencies

@redis · 收录于 5 天前 · 上游提交 5 天前

Find and safely remove unused ("dead") npm dependencies in RedisInsight using a grep + leaf-check + build-gate recipe. Use when cleaning up dependencies, investigating whether a package is still used, removing a suspected leftover, or when the user mentions dead deps, unused dependencies, dependency cleanup, leftover packages, or "is this safe to remove". Complements the weekly vulnerability audit (`scripts/dependency-audit-report.mjs`), which only reports vulnerabilities.

适合你,如果经常需要清理项目中不再使用的 npm 包

/ 通过 npx 安装 校验哈希
npx oh-my-skill add redis/redisinsight/dead-dependencies
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- redis/redisinsight/dead-dependencies
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify redis/redisinsight/dead-dependencies
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
8640GitHub stars
~1.4K上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 32fcfa5 · 表述以原文为准
它做什么

Claude 会引导您通过搜索代码、检查依赖树、分类判断,最后通过构建测试来安全删除未使用的 npm 包。整个过程是交互式的,避免依赖静态工具的误报。

什么时候触发

当您要清理依赖项、检查某个包是否仍在使用,或提到“死依赖”、“未使用的依赖”等关键词时触发。

装好后可以这样说
Claude 会执行 grep 搜索和叶子检查。
Claude 会运行枚举脚本并给出候选列表。
Claude 会解释整个删除流程。

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。