← 返回 Skills 市场
3536
总下载
5
收藏
29
当前安装
2
版本数
在 OpenClaw 中安装
/install nodejs
功能描述
Avoid common Node.js mistakes — event loop blocking, async error handling, ESM gotchas, and memory leaks.
使用说明 (SKILL.md)
Quick Reference
| Topic | File |
|---|---|
| Callbacks, Promises, async/await, event loop | async.md |
| CommonJS vs ESM, require vs import | modules.md |
| Error handling, uncaught exceptions | errors.md |
| Readable, Writable, Transform, backpressure | streams.md |
| Memory leaks, event loop blocking, profiling | performance.md |
| Input validation, dependencies, env vars | security.md |
| Jest, Mocha, mocking, integration tests | testing.md |
| npm, package.json, lockfiles, publishing | packages.md |
Critical Traps
fs.readFileSyncblocks entire server — usefs.promises.readFile- Unhandled rejection crashes Node 15+ — always
.catch()or try/catch process.envvalues are strings —"3000"not3000, parseInt neededJSON.parsethrows on invalid — wrap in try/catchrequire()cached — same object, mutations visible everywhere- Circular deps return incomplete export — restructure to avoid
- Event listeners accumulate —
removeListeneroronce() asyncalways returns Promise — even for plain returnpipeline()over.pipe()— handles errors and cleanup- No
__dirnamein ESM — usefileURLToPath(import.meta.url) Buffer.from(string)— encoding matters, default UTF-8
安全使用建议
This skill appears safe to install as a Node.js reference aid. As with any development guidance, review package-management or dependency-update suggestions before applying them to a real project.
功能分析
Type: OpenClaw Skill
Name: nodejs
Version: 1.0.1
This skill bundle provides documentation on common Node.js development pitfalls and best practices across various topics like async, modules, error handling, performance, and security. All files are markdown documents describing 'traps' to avoid, such as `eval()` with user input or `exec(userInput)` leading to command injection, but these are presented as warnings for developers, not as instructions for the AI agent to execute. There is no evidence of prompt injection, data exfiltration, malicious execution, persistence mechanisms, or obfuscation. The content is purely informational and educational, aligning with a benign purpose.
能力评估
Purpose & Capability
The artifact coherently matches its stated purpose: concise Node.js development guidance on async behavior, modules, errors, streams, performance, security, testing, and package management.
Instruction Scope
The instructions are advisory and educational. Risky snippets such as eval(user input), exec(userInput), npm install, and npm audit are presented as pitfalls or normal developer cautions, not as commands for the agent to run automatically.
Install Mechanism
The package contains only markdown files and metadata. No installer scripts, hooks, binaries, executable files, or hidden runtime components were found.
Credentials
The declared Node.js binary requirement is proportionate to a Node.js guidance skill and there is no request for credentials, network access, broad filesystem access, or account data.
Persistence & Privilege
There is no artifact evidence of persistence, background workers, privilege escalation, profile or session use, destructive actions, or data exfiltration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install nodejs - 安装完成后,直接呼叫该 Skill 的名称或使用
/nodejs触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Initial release
v1.0.0
Initial release
元数据
常见问题
NodeJS 是什么?
Avoid common Node.js mistakes — event loop blocking, async error handling, ESM gotchas, and memory leaks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3536 次。
如何安装 NodeJS?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install nodejs」即可一键安装,无需额外配置。
NodeJS 是免费的吗?
是的,NodeJS 完全免费(开源免费),可自由下载、安装和使用。
NodeJS 支持哪些平台?
NodeJS 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 NodeJS?
由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.1。
推荐 Skills