技能 npm-helper
📦

npm-helper

内容修订 r1 安全 ⚙️ 外部命令🌐 网络访问📁 文件系统访问🔑 环境变量

可靠地管理 NPM 项目

JavaScript 依赖工作经常因版本冲突、锁文件问题和包管理器差异而拖慢团队进度。此技能可指导 npm、Yarn、pnpm、审计、工作区和发布任务。

支持: Claude Codex Code(CC)
🥉 77 青铜

使用我的智能体安装

将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。

智能体请求
Review the Skillstore skill "npm-helper" from https://skillstore.io/skills/curiouslearner-npm-helper.md and its manifest at https://skillstore.io/api/skills/curiouslearner-npm-helper/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

你的智能体仍应展示其计划,并按安全策略请求必要确认。

Agent 可读资源

当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。

测试它

正在使用“npm-helper”。 我需要一个包含测试和 linting 的 TypeScript 包设置。

预期结果:

一份设置计划,涵盖包元数据、TypeScript 配置、开发依赖、脚本、源码文件夹、测试和锁文件实践。

正在使用“npm-helper”。 npm install 因 peer dependency 警告而失败。

预期结果:

一套故障排查流程,用于识别冲突包、解释 peer dependency 规则,并在使用 legacy 覆盖之前推荐更安全的修复方案。

正在使用“npm-helper”。 我想发布我的第一个 scoped package。

预期结果:

一份发布清单,涵盖包字段、访问设置、版本管理、dry-run 审查、审计检查和发布命令。

安全审计

安全
v10 • 2026/7/9 打开版本化报告

Most static alerts are Markdown fences, placeholder URLs, or benign package manager configuration examples. I confirmed the recursive sudo chown guidance as risky because it changes ownership of user or system package directories. No prompt-injection or credential-exfiltration intent was found.

1
已扫描文件
1,004
分析行数
4
复核项
0
已忽略误报
能力复核项 (4)

这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。

高
sudo privilege escalation
sudo chown -R $(whoami) ~/.npm
The skill advises recursive sudo chown against npm or system package directories. If followed blindly, this can alter ownership outside the project and weaken local system permissions.
高
sudo privilege escalation
sudo chown -R $(whoami) /usr/local/lib/node_modules
The skill advises recursive sudo chown against npm or system package directories. If followed blindly, this can alter ownership outside the project and weaken local system permissions.
中
Shell command substitution
sudo chown -R $(whoami) ~/.npm
The command uses $(whoami) inside a privileged ownership repair example. Although the intent is npm troubleshooting, shell substitution inside sudo guidance is security-sensitive and should require explicit review.
中
Shell command substitution
sudo chown -R $(whoami) /usr/local/lib/node_modules
The command uses $(whoami) inside a privileged ownership repair example. Although the intent is npm troubleshooting, shell substitution inside sudo guidance is security-sensitive and should require explicit review.
审计者: codex 查看审计历史 →
分享与引用此报告

分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。

打开版本化报告
安全评估

复制报告链接

https://skillstore.io/skills/curiouslearner-npm-helper/audits/10?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown 徽章

[![Skillstore security assessment](https://skillstore.io/badges/skills/curiouslearner-npm-helper/security.svg)](https://skillstore.io/skills/curiouslearner-npm-helper?utm_source=security_passport_badge)

HTML 徽章

<a href="https://skillstore.io/skills/curiouslearner-npm-helper?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/curiouslearner-npm-helper/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

嵌入卡片

<iframe src="https://skillstore.io/embed/skills/curiouslearner-npm-helper.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
学术引用 (APA · BibTeX · CFF)

APA 引用

CuriousLearner. (2026). npm-helper security audit report (audit version 10) [Author version unspecified]. Skillstore. https://skillstore.io/skills/curiouslearner-npm-helper/audits/10

BibTeX 引用

@techreport{curiouslearner-curiouslearner-npm-helper-2026, author = {CuriousLearner}, title = {npm-helper security audit report (audit version 10)}, institution = {Skillstore}, year = {2026}, number = {10}, url = {https://skillstore.io/skills/curiouslearner-npm-helper/audits/10}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "npm-helper security audit report (audit version 10)" version: "unspecified" type: report authors: - name: "CuriousLearner" date-released: "2026-07-09" url: "https://skillstore.io/skills/curiouslearner-npm-helper/audits/10" identifiers: - type: other value: "skillstore:curiouslearner-npm-helper:audit:10" description: "Skillstore immutable audit report identifier"

Skillstore 评分

评分依据 证据置信度: 高
55
架构
85
可维护性
87
内容
73
社区
70
规范符合性

你能构建什么

设置 Node.js 项目

创建包含脚本、依赖、TypeScript 设置和锁文件指导的包计划。

修复依赖问题

诊断 peer dependency 警告、模块解析错误、过时包以及与缓存相关的安装失败。

准备包发布

在发布前审查包元数据、发布设置、审计步骤、版本更新和 dry-run 检查。

试试这些提示

选择包管理器
帮我为一个新的 Node.js 项目选择 npm、Yarn 或 pnpm。说明权衡取舍和初始设置步骤。
修复安装错误
审查我的 npm install 错误,并建议安全步骤来修复依赖、缓存或 peer dependency 问题。
设计工作区脚本
为此仓库规划包管理器工作区。建议用于 build、test、clean 和依赖安装的脚本。
审计发布就绪状态
审查我的包发布流程。检查元数据、脚本、锁文件、审计步骤、标签和发布安全控制。

最佳实践

  • 在允许代理运行安装和发布命令之前先进行审查。
  • 提交锁文件,并使用干净安装以获得可重复构建。
  • 在升级或发布之前审计依赖变更和包脚本。

避免

  • 在不了解目标路径的情况下,不要运行特权包管理器修复操作。
  • 在审查破坏性变更之前,不要使用 audit fix --force。
  • 不要在没有 dry run 和元数据审查的情况下发布包。

常见问题

此技能可以在 npm、Yarn 和 pnpm 之间做选择吗?
可以。它会比较常见工作流、性能权衡、锁文件和工作区支持。
它可以自动修复依赖冲突吗?
它可以建议故障排查步骤,但用户应在执行前审查命令。
它支持 TypeScript 项目吗?
可以。它包括 TypeScript 设置、脚本、依赖类别和构建指导。
它可以帮助处理 monorepo 吗?
可以。它涵盖 npm、Yarn 和 pnpm 针对常见 monorepo 任务的工作区模式。
它会检查包安全吗?
它会解释审计工作流和审查实践,但不会独立验证包的可信度。
运行它建议的每个命令都安全吗?
不可以。请审查会安装包、更改主目录配置、使用 sudo 或发布包的命令。

开发者详情

许可证

MIT

Skillstore 修订

r1

版本提示

作者未声明版本。

引用

0519034dad657fb1f7706e0550e962beeda73fdf

维护新鲜度

2026/7/18

使用量

6 次下载 · 382 次浏览

文件结构

📄 SKILL.md

CuriousLearner 的更多技能

查看全部
查看全部