본문으로 건너뛰기
Skillpedia
일반 코딩48k · #5268

n8n-code-javascript

하는 일

이 가이드는 자동화 도구인 n8n 안에서 JavaScript 코드를 작성하도록 돕습니다. 다른 n8n 도구로는 처리할 수 없는 더 복잡한 프로그래밍 작업에 유용합니다.

사용하는 경우

  • ✓복잡한 계산을 하거나 맞춤 비즈니스 로직을 적용해야 할 때.
  • ✓복잡한 구조의 API 응답을 처리할 때.
  • ✓여러 출처의 데이터를 고급 방식으로 묶을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/n8n-code-javascript/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“n8n에서 JavaScript를 사용해 입력 데이터를 변환하려면 어떻게 하나요?”

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

작동 방식

n8n에서는 데이터를 조작하기 위해 직접 JavaScript 코드를 작성할 수 있습니다. 이전 단계의 정보에 접근하고 다른 서비스에 요청을 보내기 위한 특별한 도구를 제공합니다.

기술 내용 (원본 SKILL.md)

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

JavaScript Code Node

Expert guidance for writing JavaScript code in n8n Code nodes.


Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use Code Node

Use Code node when:

  • ✅ Complex transformations requiring multiple steps
  • ✅ Custom calculations or business logic
  • ✅ Recursive operations
  • ✅ API response parsing with complex structure
  • ✅ Multi-step conditionals
  • ✅ Data aggregation across items

Consider other nodes when:

  • ❌ Simple field mapping → Use Set node
  • ❌ Basic filtering → Use Filter node
  • ❌ Simple conditionals → Use IF or Switch node
  • ❌ HTTP requests only → Use HTTP Request node

Code node excels at: Complex logic that would require chaining many simple nodes


Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문

언제 다른 노드 대신 Code 노드를 써야 하나요?

여러 단계의 복잡한 변환, 맞춤 계산, 재귀 로직, 복잡한 API 응답 파싱, 다단계 조건문, 데이터 집계에 Code 노드를 쓰세요. 필드 매핑이나 간단한 필터링 같은 작업에는 「Set」, 「Filter」, 「IF」 같은 노드를 쓰세요.

「$input」, 「$json」, 「$node」, 「$helpers」는 무엇인가요?

JavaScript 코드가 입력 데이터, 이전 노드의 정보, 요청을 보내거나 날짜를 다루는 유용한 함수에 쉽게 접근하도록 n8n이 제공하는 특별한 단축 표현입니다.

이 가이드가 코드 테스트를 대신하나요?

아니요. 이 가이드는 안내를 제공할 뿐입니다. 특정 환경에서 코드가 올바르고 안전하게 작동하는지 여전히 검증하고 테스트해야 합니다.

상세 정보

작성자의 원본 설명

Write JavaScript code in n8n Code nodes. Use when writing JavaScript in n8n, using $input/$json/$node syntax, making HTTP requests with $helpers, working with dates using DateTime, troubleshooting Code node errors, or choosing between Code node modes.

repo: sickn33/agentic-awesome-skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬