Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

n8n-expression-syntax

Skill by czlonkowski

Guides AI assistants in writing correct n8n expressions and fixing common expression errors. It is for people building or debugging n8n workflows that pass data between nodes with {{ }} syntax.

  • Score 94
  • 23k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install n8n-expression-syntax

Built from the published package, never by AI.

git clone --depth 1 https://github.com/czlonkowski/n8n-mcp /tmp/n8n-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/n8n-mcp/data/skills/n8n-expression-syntax ~/.claude/skills/n8n-expression-syntax

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install n8n-expression-syntax in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is an expert guide for writing correct n8n expressions in workflows. It explains the double curly brace format, the core variables $json, $node, $now, $env and $vars, and how to reference node names exactly as they appear in a workflow. It also flags a common mistake: webhook data sits under the body property, not at the root.

It covers when not to use expressions, such as in Code nodes, webhook paths and credential fields. It sets an order for transforming data, from a service's own node to native nodes, then short expressions, then a Code node. It documents the $jmespath() function and built-in helper methods such as pluck, sum and unique. It is aimed at anyone building or debugging n8n workflows.

Written from the project's SKILL.md and checked against it.

What it can do

  • Expression formatExplains that dynamic content in n8n uses double curly braces, with examples of wrong and right forms.
  • Core variablesCovers $json, $node, $now, $env and $vars with usage examples and caveats.
  • Webhook data accessShows that webhook user data is under $json.body and not at the root.
  • Node referencesExplains that node names must be quoted and are case-sensitive in $node references.
  • Transform orderSets a order for choosing a service node, native node, short expression or Code node.
  • $jmespath queriesDocuments querying nested JSON in one expression, with common syntax mistakes to avoid.
  • Built-in helpersLists helper methods such as pluck, sum, unique, ifEmpty and extractEmail for expressions.
  • When not to use expressionsShows Code node, webhook path and credential field cases where expressions do not apply.

What you need

  • An n8n instance
  • An n8n license that includes variables, for $vars

Try asking

  • Why does my n8n webhook email field return undefined? Check the expression.
  • Write an n8n expression that sums the prices array from the previous node.
  • Write a $jmespath expression that lists names where country is PL.

Good to know

  • $env is blocked when N8N_BLOCK_ENV_ACCESS_IN_NODE is enabled on an instance.
  • $vars values are always strings and are read-only at runtime.
  • Helper functions work only in expressions, not in Code nodes.
  • Most $jmespath mistakes fail silently and return null or empty results.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: data/skills/n8n-expression-syntax/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • COMMON_MISTAKES.md12 KB
  • EXAMPLES.md8 KB
  • README.md3 KB
  • SKILL.md24 KB

Alternatives to n8n-expression-syntax

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

n8n-expression-syntax: common questions

Where is webhook data in an n8n workflow?

Webhook user data is under the body property, so use {{$json.body.name}} instead of {{$json.name}}. The webhook node wraps incoming data under body to keep headers, params and query separate.

Can I use n8n expressions inside a Code node?

No. Code nodes use direct JavaScript access, such as $json.email or $input.all(), and expression braces should not be added.

Why does $env return an error in my n8n workflow?

Some instances enable N8N_BLOCK_ENV_ACCESS_IN_NODE, which blocks $env. The skill suggests storing values in credentials, using n8n variables, a Set node or webhook query parameters instead.

How do I install n8n-expression-syntax?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is n8n-expression-syntax free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is n8n-expression-syntax safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to n8n-expression-syntax?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

n8n-expression-syntax Install

Add to stack

Loading.