Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计通过

nodejsNode.js 日程管理

Agent Skill

nodejs 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

674

周安装

27

GitHub Stars

12

下载量

218
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:nodejs(Node.js 日程管理)
来源仓库:https://github.com/claude-dev-suite/claude-dev-suite
仓库路径:skills/nodejs
安装命令:
npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill nodejs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/claude-dev-suite/claude-dev-suite --skill nodejs

简介

nodejs 用于记录任务执行中的错误和经验沉淀,适合让 Agent 持续修正问题和优化工作流程。

  • 它提供事件循环阶段说明、内存管理和集群模式配置,帮助提升 Node.js 应用稳定性。
  • 使用时需结合具体业务场景调整参数,避免过度优化影响可读性;涉及生产部署时应启用性能 flags。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • nodejs 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Node.js Best Practices

Full Reference: See advanced.md for worker pool pattern, memory management, cluster mode, graceful shutdown, and performance flags.
Deep Knowledge: Use mcp__documentation__fetch_docs with technology: nodejs for comprehensive documentation.

Event Loop

Phases

   ┌───────────────────────────┐
┌─>│           timers          │  ← setTimeout, setInterval
│  └─────────────┬─────────────┘
│  ┌─────────────┴─────────────┐
│  │     pending callbacks     │  ← I/O callbacks
│  └─────────────┬─────────────┘
│  ┌─────────────┴─────────────┐
│  │           poll            │  ← incoming I/O
│  └─────────────┬─────────────┘
│  ┌─────────────┴─────────────┐
│  │           check           │  ← setImmediate
│  └─────────────┬─────────────┘
│  ┌─────────────┴─────────────┐
└──┤      close callbacks      │
   └───────────────────────────┘

Priority Order

sync code > process.nextTick > Promises (microtasks) > timers > setImmediate

Don't Block the Event Loop

// BAD - blocks event loop
function hashSync(data: string): string {
  return crypto.pbkdf2Sync(data, 'salt', 100000, 64, 'sha512').toString('hex');
}

// GOOD - use async version
async function hashAsync(data: string): Promise<string> {
  return new Promise((resolve, reject) => {
    crypto.pbkdf2(data, 'salt', 100000, 64, 'sha512', (err, key) => {
      if (err) reject(err);
      else resolve(key.toString('hex'));
    });
  });
}

Async Patterns

// GOOD - parallel execution
const [users, posts] = await Promise.all([
  fetchUsers(),
  fetchPosts()
]);

// BAD - sequential when parallel is possible
const users = await fetchUsers();
const posts = await fetchPosts(); // waits unnecessarily

// Handle unhandled rejections
process.on('unhandledRejection', (reason, promise) => {
  console.error('Unhandled Rejection:', reason);
});

Streams (Pipeline)

import { pipeline } from 'stream/promises';
import { createReadStream, createWriteStream } from 'fs';
import { createGzip } from 'zlib';

// GOOD - handles errors and cleanup
await pipeline(
  createReadStream('input.txt'),
  createGzip(),
  createWriteStream('output.txt.gz')
);

When NOT to Use This Skill

ScenarioUse Instead
Express.js frameworkbackend-express skill
NestJS frameworkbackend-nestjs skill
JavaScript/TypeScript syntaxjavascript or typescript skills
Testingtesting-vitest or testing-jest skills
Database operationsDatabase-specific skills

Anti-Patterns

Anti-PatternWhy It's BadCorrect Approach
Blocking the event loopFreezes all requestsUse async APIs or workers
Not handling rejectionsSilent failuresUse process.on('unhandledRejection')
Synchronous file I/OBlocks event loopUse async fs methods
Unbounded cachesMemory leaksUse LRU cache with limits
Not removing event listenersMemory leaksUse.off() or.removeListener()
Nested callbacksCallback hellUse async/await
Large sync JSON.parseBlocks event loopStream parsing or workers
No concurrency limitsResource exhaustionUse p-limit or semaphores

Quick Troubleshooting

IssueCauseSolution
High event loop lagBlocking operationsProfile with --inspect, use workers
Memory leakUnbounded cache/listenersUse heap snapshots, fix leaks
"EADDRINUSE"Port already in useKill process or use different port
"EMFILE: too many open files"File descriptor leakClose files, increase ulimit
Process crashes on errorUncaught exceptionAdd error handlers
Slow startupToo many sync operationsMake initialization async
High CPU usageInfinite loop or blockingProfile with --cpu-prof
"MaxListenersExceededWarning"Too many listenersRemove old listeners

Checklist

Development

  • Use async/await over callbacks
  • Handle all Promise rejections
  • Use streams for large data
  • Limit concurrent operations
  • Remove event listeners when done

Production

  • Use cluster mode or PM2
  • Implement graceful shutdown
  • Set appropriate heap size
  • Monitor memory usage
  • Use connection pooling
  • Enable keep-alive for HTTP

Metrics

MetricTarget
Event loop lag< 100ms
Heap usage< 70% of limit
Active handlesStable
GC pause< 100ms

Reference Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.1%
按下载量换算77

Claude

29.24%
按下载量换算64

Cursor

17.97%
按下载量换算39

Gemini CLI

8.46%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills