N8N Code Javascript
Generates and executes JavaScript code within n8n workflows to manipulate data and integrate systems.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add redcoatasher-n8n-code-javascript npx -- -y @trustedskills/redcoatasher-n8n-code-javascript
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"redcoatasher-n8n-code-javascript": {
"command": "npx",
"args": [
"-y",
"@trustedskills/redcoatasher-n8n-code-javascript"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows you to execute JavaScript code within an n8n workflow. It provides a way to dynamically manipulate data, perform complex calculations, or interact with APIs that are not directly supported by n8n's built-in nodes. The resulting output from the executed JavaScript is then available for use in subsequent workflow steps.
When to use it
- Data Transformation: Modify and reshape data received from external sources before sending it to another application or service.
- API Interaction: Call APIs that require custom authentication or complex request formatting not easily handled by standard nodes.
- Complex Logic: Implement intricate business rules or calculations that are difficult to express using n8n's visual workflow editor.
- Dynamic Content Generation: Generate content, such as email subject lines or social media posts, based on data received from previous workflow steps.
Key capabilities
- Execute JavaScript code snippets.
- Access and modify input data within the script.
- Return output data to be used in subsequent workflow nodes.
Example prompts
- "Write a Javascript function that calculates the shipping cost based on order total and destination."
- "Use this JSON data and extract the 'product_name' field using JavaScript."
- "Format this date string into YYYY-MM-DD format using JavaScript."
Tips & gotchas
- Requires a basic understanding of JavaScript syntax. Errors in your code will prevent the workflow from executing correctly.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.