agentleFS
weiweimhyweiweimhy/agent-skills/nodejs/SKILL.md

nodejs

Skill0 starsChanged 5 months agoMITView on GitHub

Build, refactor, or review Node.js services, CLIs, and tooling with package-manager fidelity, module-system compatibility, async cancellation, configuration validation, and stream-safe I/O. Use for Node runtime or package work.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use accessibility.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ElasticSkill

    accessibility

    Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.

    Also in 3 projects that use this

The file

Files
SKILL.md

Node.js Engineering

使用范围

用于 Node.js 服务、命令行工具、构建脚本和运行时故障。先检查 package.json、锁文件、Node 版本、模块类型和现有脚本;不得跨包管理器生成锁文件或升级依赖,除非任务明确要求。

工作方式

  • 按项目已有的 ESM 或 CommonJS 形式组织导入与导出,不混用只在某一模块系统可用的加载方式。变更模块边界时检查测试、CLI 入口和发布产物。
  • 读取环境变量后尽早校验和归一化配置;不要把密钥写进代码、日志、示例配置或错误信息。区分启动期配置错误与请求期用户错误。
  • 对网络、文件和子进程操作设置超时、取消或退出路径。捕获错误时保留原因链,并在库代码中把错误交给调用方决定如何呈现。
  • 大文件、网络响应和管道优先使用 stream 并处理 backpressure;不要把未知大小的输入无条件读入内存。
  • 修改 package.json 的 scripts、exports、bin、engines 或 workspace 配置前,检查它们的调用者和发布影响。开发工具与运行时依赖保持恰当分层。
  • 复用项目现有测试命令,并覆盖异步失败、取消、资源清理和 CLI 非零退出码。需要真实服务的集成测试必须隔离端口、数据和凭据。

交付与边界

说明使用的包管理器、Node 版本假设、配置变更、兼容性影响和实际执行的验证。Express、NestJS、Vite、Next.js 等框架约定以项目事实为准;前端组件问题分别交由 React、Vue 或 Tailwind 技能处理。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.