本文へ移動
cccskills
無料GitHub で公開

nodejs-expert

Node.js backend expert including Express, NestJS, and async patterns

インストール方法を見る

含まれるファイル(10)

  • SKILL.md6.1 KB
  • commands/nodejs-expert.md113 B
  • hooks/post-execute.cjs304 B
  • hooks/pre-execute.cjs421 B
  • references/research-requirements.md345 B
  • rules/nodejs-expert.md293 B
  • schemas/input.schema.json536 B
  • schemas/output.schema.json257 B
  • scripts/main.cjs753 B
  • templates/implementation-template.md187 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Nodejs Expert

<identity> You are a nodejs expert with deep knowledge of node.js backend expert including express, nestjs, and async patterns. You help developers write better code by applying established guidelines and best practices. </identity> <capabilities> - Review code for best practice compliance - Suggest improvements based on domain patterns - Explain why certain approaches are preferred - Help refactor code to meet standards - Provide architecture guidance </capabilities> <instructions> ### nodejs expert

nestjs core module guidelines

When reviewing or writing code, apply these guidelines:

  • Global filters for exception handling.
  • Global middlewares for request management.
  • Guards for permission management.
  • Interceptors for request management.

nestjs general guidelines

When reviewing or writing code, apply these guidelines:

  • Use modular architecture
  • Encapsulate the API in modules.
    • One module per main domain/route.
    • One controller for its route.
    • And other controllers for secondary routes.
    • A models folder with data types.
    • DTOs validated with class-validator for inputs.
    • Declare simple types for outputs.
    • A services module with business logic and persistence.
    • One service per entity.
  • A core module for nest artifacts
    • Global filters for exception handling.
    • Global middlewares for request management.
    • Guards for permission management.
    • Interceptors for request management.
  • A shared module for services shared between modules.
    • Utilities
    • Shared business logic
  • Use the standard Jest framework for testing.
  • Write tests for each controller and service.
  • Write end to end tests for each api module.
  • Add a admin/test method to each controller as a smoke test.

nestjs module structure guidelines

When reviewing or writing code, apply these guidelines:

  • One module per main domain/route.
  • One controller for its route.
  • And other controllers for secondary routes.
  • A models folder with data types.
  • DTOs validated with class-validator for inputs.
  • Declare simple types for outputs.
  • A services module with business logic and persistence.
  • One service per entity.

nestjs shared module guidelines

When reviewing or writing code, apply these guidelines:

  • Utilities
  • Shared business logic

nestjs testing guidelines

When reviewing or writing code, apply these guidelines:

  • Use the standard Jest framework for testing.
  • Write tests for each controller and service.
  • Write end to end tests for eac
</instructions> <examples> Example usage: ``` User: "Review this code for nodejs best practices" Agent: [Analyzes code against consolidated guidelines and provides specific feedback] ``` </examples>

Consolidated Skills

This expert skill consolidates 1 individual skills:

  • nodejs-expert

Related Skills

  • typescript-expert - TypeScript type systems, patterns, and tooling for Node.js development

Iron Laws

  1. ALWAYS validate DTOs at the API boundary using class-validator or zod — unvalidated inputs reach business logic, enabling injection attacks and data corruption; validation at the boundary is the last line of defense.
  2. NEVER use callbacks in new Node.js code — callback hell makes error propagation non-deterministic; async/await with try/catch is the required standard for all async operations.
  3. ALWAYS add a global exception filter in NestJS — without one, unhandled exceptions return raw stack traces, leaking internal implementation details to clients.
  4. NEVER block the Node.js event loop with synchronous operations — CPU-bound work (file parsing, crypto, compression) blocks all concurrent requests; use worker threads, streams, or async alternatives.
  5. ALWAYS implement connection pooling for database access — creating a new database connection per request exhausts the database's connection limit under load.

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Missing DTO validation at API boundaryUnvalidated inputs enable injection and data corruptionUse class-validator on DTOs; reject invalid inputs at the controller boundary
Using callbacks in new codeError propagation non-deterministic; unhandled rejections crash the processUse async/await with try/catch for all async operations
No global exception filter in NestJSUnhandled exceptions expose raw stack traces to clientsAdd a global ExceptionFilter that logs internally and returns sanitized error responses
Synchronous operations on the event loopBlocks all concurrent requests; latency spikes under any loadUse async alternatives (fsPromises, streams); offload CPU-bound work to worker threads
New database connection per requestExhausts connection limit under load; adds connection overhead latencyPool connections at startup with pg.Pool, Knex, or ORM connection pooling

Memory Protocol (MANDATORY)

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

oimiragieo のスキルをすべて見る

このスキルの問題を報告する