重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
nodejs-expert by oimiragieo/agent-studio
npx skills add https://github.com/oimiragieo/agent-studio --skill nodejs-expert在审查或编写代码时,应用以下准则:
在审查或编写代码时,应用以下准则:
在审查或编写代码时,应用以下准则:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在审查或编写代码时,应用以下准则:
在审查或编写代码时,应用以下准则:
此专家技能整合了 1 项独立技能:
typescript-expert - 用于 Node.js 开发的 TypeScript 类型系统、模式和工具class-validator 或 zod 验证 DTO —— 未经验证的输入进入业务逻辑,可能导致注入攻击和数据损坏;在边界进行验证是最后一道防线。async/await 配合 try/catch 是所有异步操作的必要标准。| 反模式 | 失败原因 | 正确方法 |
|---|---|---|
| 在 API 边界缺少 DTO 验证 | 未验证的输入可能导致注入攻击和数据损坏 | 在 DTO 上使用 class-validator;在控制器边界拒绝无效输入 |
| 在新代码中使用回调 | 错误传播不确定;未处理的拒绝会导致进程崩溃 | 对所有异步操作使用 async/await 配合 try/catch |
| NestJS 中没有全局异常过滤器 | 未处理的异常向客户端暴露原始堆栈跟踪 | 添加一个全局 ExceptionFilter,在内部记录日志并返回经过处理的错误响应 |
| 在事件循环上执行同步操作 | 阻塞所有并发请求;任何负载下都会导致延迟激增 | 使用异步替代方案(fsPromises、流);将 CPU 密集型工作卸载到工作线程 |
| 每个请求都新建数据库连接 | 在负载下耗尽连接限制;增加连接开销和延迟 | 在启动时使用 pg.Pool、Knex 或 ORM 连接池来池化连接 |
开始前:
cat .claude/context/memory/learnings.md
完成后: 记录发现的任何新模式或例外情况。
假设中断:您的上下文可能会重置。如果它不在记忆中,那就没有发生过。
每周安装次数
72
仓库
GitHub 星标数
19
首次出现
2026年1月27日
安全审计
安装于
github-copilot70
gemini-cli70
opencode68
codex68
kimi-cli68
amp68
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
When reviewing or writing code, apply these guidelines:
This expert skill consolidates 1 individual skills:
typescript-expert - TypeScript type systems, patterns, and tooling for Node.js developmentclass-validator or zod — unvalidated inputs reach business logic, enabling injection attacks and data corruption; validation at the boundary is the last line of defense.async/await with try/catch is the required standard for all async operations.| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Missing DTO validation at API boundary | Unvalidated inputs enable injection and data corruption | Use class-validator on DTOs; reject invalid inputs at the controller boundary |
| Using callbacks in new code | Error propagation non-deterministic; unhandled rejections crash the process | Use async/await with try/catch for all async operations |
| No global exception filter in NestJS | Unhandled exceptions expose raw stack traces to clients | Add a global ExceptionFilter that logs internally and returns sanitized error responses |
| Synchronous operations on the event loop | Blocks all concurrent requests; latency spikes under any load | Use async alternatives (, streams); offload CPU-bound work to worker threads |
Before starting:
cat .claude/context/memory/learnings.md
After completing: Record any new patterns or exceptions discovered.
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
Weekly Installs
72
Repository
GitHub Stars
19
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
github-copilot70
gemini-cli70
opencode68
codex68
kimi-cli68
amp68
Node.js 环境配置指南:多环境管理、类型安全与最佳实践
10,500 周安装
fsPromises| New database connection per request | Exhausts connection limit under load; adds connection overhead latency | Pool connections at startup with pg.Pool, Knex, or ORM connection pooling |