본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)41k · #6714

nodejs-backend-patterns

하는 일

이 안내서는 Node.js로 인터넷 서비스(백엔드)를 만드는 방법을 설명합니다. 코드를 정리하는 법, 오류를 처리하는 법, 접근을 안전하게 하는 법, 데이터베이스에 연결하는 법을 가르쳐 줍니다.

사용하는 경우

  • ✓서버가 필요한 웹사이트나 앱을 만들 때.
  • ✓다른 프로그램이 사용할 API를 개발할 때.
  • ✓실시간 통신이 필요한 시스템을 만들 때.

스킬 링크

https://github.com/wshobson/agents/blob/main/plugins/javascript-typescript/skills/nodejs-backend-patterns/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/wshobson/agents/blob/main/plugins/javascript-typescript/skills/nodejs-backend-patterns/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“온라인 상점을 위해 안전한 Node.js 서버를 어떻게 만들 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

코드 구성 패턴과 모범 사례를 설명합니다. 들어오는 요청을 처리하는 방법, 발생할 수 있는 오류를 다루는 방법, 권한이 있는 사용자만 특정 부분에 접근하도록 하는 방법을 포함합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Node.js Backend Patterns

Comprehensive guidance for building scalable, maintainable, and production-ready Node.js backend applications with modern frameworks, architectural patterns, and best practices.

When to Use This Skill

  • Building REST APIs or GraphQL servers
  • Creating microservices with Node.js
  • Implementing authentication and authorization
  • Designing scalable backend architectures
  • Setting up middleware and error handling
  • Integrating databases (SQL and NoSQL)
  • Building real-time applications with WebSockets
  • Implementing background job processing

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Use TypeScript: Type safety prevents runtime errors
  2. Implement proper error handling: Use custom error classes
  3. Validate input: Use libraries like Zod or Joi
  4. Use environment variables: Never hardcode secrets
  5. Implement logging: Use structured logging (Pino, Winston)
  6. Add rate limiting: Prevent abuse
  7. Use HTTPS: Always in production
  8. Implement CORS properly: Don't use * in production
  9. Use dependency injection: Easier testing and maintenance
  10. Write tests: Unit, integration, and E2E tests
  11. Handle graceful shutdown: Clean up resources
  12. Use connection pooling: For databases
  13. Implement health checks: For monitoring
  14. Use compression: Reduce response size
  15. Monitor performance: Use APM tools

Testing Patterns

See javascript-testing-patterns skill for comprehensive testing guidance.

자주 묻는 질문

'미들웨어'란 무엇인가요?

요청이 메인 함수에 도달하기 전에 요청을 확인하거나 수정하는 '경비원' 또는 '처리기' 같은 것입니다.

왜 TypeScript를 쓰나요?

TypeScript는 프로그램을 실행하기 전에 데이터 타입을 확인해 흔한 오류를 막아 주므로, 코드를 더 믿을 수 있게 만듭니다.

'모범 사례'란 무엇인가요?

무엇인가를 하는 가장 잘 알려진 방법입니다. 코드를 더 안전하고, 이해하기 쉽고, 나중에 관리하기 쉽게 만듭니다.

상세 정보

작성자의 원본 설명

Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.

repo: wshobson/agents

인기도

GitHub 스타
41k
순위
#6714
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬