n8n-code-javascript – Coding skill for AI agents
Write JavaScript code in n8n Code nodes. Use when writing JavaScript in n8n, using $input/$json/$node syntax, selecting the HTTP Request node for network access, working with dates using DateTime, troubleshooting Code node errors, or choosing between Code node modes.
Install the n8n-code-javascript skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/n8n-code-javascript-14030.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /n8n-code-javascript – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/n8n-code-javascript-14030.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $n8n-code-javascript – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/n8n-code-javascript-14030.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /n8n-code-javascript – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/n8n-code-javascript-14030.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /n8n-code-javascript – then describe the task you want done.
SKILL.md content
JavaScript Code Node
Expert guidance for writing JavaScript code in n8n Code nodes.
---
Detailed Guide
Read [the detailed guide](references/detailed-guide.md) 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.
Related skills
- n8n-code-python – Write Python code in n8n Code nodes. Use when writing Python in n8n, using…
- n8n-code-tool – Write and debug JavaScript or Python for the AI-callable n8n Custom Code Tool, including…
- n8n-node-configuration – Operation-aware node configuration guidance. Use when configuring nodes, understanding…
- neon-ai-gateway – One API and one credential for frontier and open-source LLMs, built into your Neon…
- neon-postgres – Guides and best practices for working with Neon Serverless Postgres. Covers setup…
- nestjs-expert – You are an expert in Nest.js with deep knowledge of enterprise-grade Node.js application…
- netapi – Check domains and IPs against a free compromised feed, find newly registered lookalike…
- network-101 – Configure and test common network services (HTTP, HTTPS, SNMP, SMB) for penetration…