Community생산성 & 협업github.com

n8n Code (JavaScript) 스킬

n8n Code 노드에서 JavaScript 코드를 작성합니다. n8n에서 JavaScript를 작성할 때, $input/$json/$node 구문 사용, this.helpers / $helpers 전역 변수로 HTTP 요청, DateTime으로 날짜 작업, Code 노드 오류 해결, Code 노드 모드 선택, 또는 n8n에서의 모든 사용자 정의 데이터 변환 시 사용하세요.

n8n Code (JavaScript) 스킬란 무엇인가요?

이 스킬은 n8n 워크플로우 내에서 Code 노드를 사용할 때 JavaScript 코드를 작성하고 디버깅하는 방법을 포괄적으로 안내합니다. 사용자는 $input, $json, $node와 같은 n8n 특화 객체를 활용하여 입력 데이터에 접근하고 조작하는 방법을 배울 수 있습니다. 또한 this.helpers 또는 $helpers 전역 객체를 통해 외부 API 호출을 수행하고, DateTime 라이브러리를 사용하여 날짜/시간 데이터를 처리하는 방법도 다룹니다. SplitInBatches 패턴을 이용한 반복 처리, cross-iteration 데이터 공유, pairedItem 참조 유지, 그리고 프로덕션 환경에서의 일반적인 패턴을 포함하여 Code 노드의 성능 최적화(느린 실행 원인 분석, 실행 모드 선택, 대용량 데이터셋에서의 오버헤드 감소)에 관한 고급 주제도 제공합니다. 단, AI 에이전트에서 호출 가능한 Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode)은 이 스킬이 아닌 전용 n8n-code-tool 스킬을 사용해야 합니다. 이 스킬은 Cursor, Claude Code, Codex 등 다양한 AI 코딩 에이전트에서 n8n 워크플로우 개발을 지원하도록 설계되었습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/czlonkowski/n8n-skills/tree/main/skills/n8n-code-javascript

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

n8n Code (JavaScript) 스킬은(는) 무엇을 하나요?

n8n Code 노드에서 JavaScript 코드를 작성합니다. n8n에서 JavaScript를 작성할 때, $input/$json/$node 구문 사용, this.helpers / $helpers 전역 변수로 HTTP 요청, DateTime으로 날짜 작업, Code 노드 오류 해결, Code 노드 모드 선택, 또는 n8n에서의 모든 사용자 정의 데이터 변환 시 사용하세요. 워크플로우에 Code 노드가 필요한 경우(데이터 집계, 필터링, API 호출, 형식 변환, 배치 처리 로직 또는 모든 사용자 정의 JavaScript) 항상 이 스킬을 사용하세요. SplitInBatches 루프 패턴, 반복 간 데이터, pairedItem 및 실제 프로덕션 패턴을 다룹니다. Code 노드 또는 워크플로우가 느린 이유, 더 빠른 실행 모드, 또는 대규모 데이터셋에서 항목당 오버헤드를 줄이는 방법에 대한 질문이 있을 때도 사용하세요. 예외 — AI 에이전트에서 호출 가능한 Custom Code Tool(@n8n/n8n-nodes-langchain.toolCode, AI Agent에 연결된 도구)의 경우 n8n-code-tool 스킬을 대신 사용하세요. 이는 다른 런타임 계약을 가지고 있습니다.

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

czlonkowski/n8n-code-python

Write Python code in n8n Code nodes. Use when writing Python in n8n, using _input/_json/_node syntax, working with standard library, or need to understand Python limitations in n8n Code nodes. Use this skill when the user specifically requests Python for an n8n Code node. Note — JavaScript is recommended for 95% of use cases — only use Python when the user explicitly prefers it or the task requires Python-specific standard library capabilities (regex, hashlib, statistics). EXCEPTION — for Python in the AI-agent-callable Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode), use the n8n-code-tool skill instead (input is _query, return must be a string).

czlonkowski/n8n-expression-syntax

Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors, mapping data between nodes, or referencing webhook data in workflows. Use this skill whenever configuring node fields that reference data from previous nodes — expressions are how n8n passes data between nodes, and getting the syntax wrong is the most common source of workflow errors. Also use when asked whether a complex expression hurts performance.

czlonkowski/n8n-mcp-tools-expert

Expert guide for using n8n-mcp MCP tools effectively. Use when searching for nodes, validating configurations, accessing templates, managing workflows, managing credentials, auditing instance security, or using any n8n-mcp tool. Provides tool selection guidance, parameter formats, and common patterns. IMPORTANT — Always consult this skill before calling any n8n-mcp tool — it prevents common mistakes like wrong nodeType formats, incorrect parameter structures, and inefficient tool usage. If the user mentions n8n, workflows, nodes, or automation and you have n8n MCP tools available, use this skill first.

czlonkowski/n8n-node-configuration

Operation-aware node configuration guidance. Use when configuring nodes, understanding property dependencies, determining required fields, choosing between get_node detail levels, or learning common configuration patterns by node type. Always use this skill when setting up node parameters — it explains which fields are required for each operation, how displayOptions control field visibility, and when to use patchNodeField for surgical edits vs full node updates.

czlonkowski/n8n-validation-expert

Interpret validation errors and guide fixing them. Use when encountering validation errors, validation warnings, false positives, operator structure issues, or need help understanding validation results. Also use when asking about validation profiles, error types, the validation loop process, or auto-fix capabilities. Consult this skill whenever a validate_node or validate_workflow call returns errors or warnings — it knows which warnings are false positives and which errors need real fixes.

czlonkowski/n8n-workflow-patterns

Proven workflow architectural patterns from real n8n workflows. Use when building new workflows, designing workflow structure, choosing workflow patterns, planning workflow architecture, or asking about webhook processing, HTTP API integration, database operations, AI agent workflows, batch processing, or scheduled tasks. Always consult this skill when the user asks to create, build, or design an n8n workflow, automate a process, or connect services — even if they don't explicitly mention 'patterns'. Covers webhook, API, database, AI, batch processing, and scheduled automation architectures. Also use when optimizing a slow workflow or speeding up large-item-count processing (node count, batchSize, all-items vs per-item).

관련 스킬