n8n Expression Syntax is a skill for Claude that covers the {{ }} expressions n8n uses to pass data between nodes. It explains the core variables $json, $node, $now, $env and $vars, the rule that webhook data sits under body, and quoting for names with spaces.
It also sets an order for transforming data: the service’s own node, a native node, a short expression, and only then a Code node. It documents $jmespath quoting rules, built-in helper methods and the way runtime errors inside an expression resolve to null.
What You Get
- The braces, quoting and exact-name rules for expressions, with a fix table for common mistakes
- A description of $json, $node, $now, $env and $vars, including when $env is blocked
- The webhook output structure and the rule that user data is under body
- A four-step gatekeeper: service node, native node, short expression, Code node
- A table of $jmespath quoting rules and a table of helper methods such as pluck, sum, unique and diffTo
- Advice on removing Set nodes that only rename fields and anchoring converging branches with a NoOp
Common Use Cases
- Fixing a webhook field that resolves to undefined because the path skips body
- Referencing a node whose name has spaces or different casing
- Choosing between an expression, a native node and a Code node for a transform
- Querying nested JSON for one value with $jmespath
- Finding out why a Filter drops every item after an expression error
What Makes It Unique
Beyond syntax, it ships tested guidance on what fails quietly: JavaScript errors inside braces become null, wrong $jmespath quoting returns an empty array, and a Python or Code step can pass items through. It orders the options for a transform so Claude picks a native node before code, and it explains that complex expressions cost little per item.
Under The Hood
The skill is instructions and two reference markdown files, with no scripts. It tells Claude to use the n8n-mcp tools to validate workflows and to patch nodes through partial updates, which call your n8n server. It does not fetch web pages or run commands itself. The expressions it teaches run inside n8n when a workflow executes and can read item data, other nodes’ output and environment variables when the instance allows them.