
Description
n8n-expressions is the official n8n agent skill for writing and reviewing n8n expressions, the JavaScript snippets inside {{...}} that run on one item at a time with access to upstream nodes, Luxon dates and most of native JavaScript. It applies to $json and $node references, date code and expression errors. Its main rule is to reference data by node name, as in $('Node Name').item.json.field, rather than $json, because $json silently breaks when a node clears item context or a refactor inserts a step. It also asks the agent to avoid Set nodes that only feed one downstream field, to do date math with Luxon inside expressions rather than the DateTime node unless asked, to compute values in the consuming node's own fields, and to indent and comment multi-line expressions for readers who are not programmers.…
Highlights
- Reference data by node name instead of $json
- Avoid single-use Set nodes
- Luxon for dates inside expressions
- Compute values in the consuming node
- Formatted, commented multi-line expressions
Ratings & Reviews
No ratings yet
Be the first to rate n8n-expressions-official.
People also visit

n8n-code-nodes-official
The user reaches for a Code node, mentions writing JavaScript or Python in n8n

n8n-code-python
Write Python in n8n Code nodes (native Python, `language` pythonNative, n8n 2.x)

n8n-node-configuration-official
Configuring any n8n node: HTTP, webhooks, database, comms
n8n-expressions-official FAQ
What does this skill cover?
Writing and reviewing n8n expressions in {{...}} syntax, including $json and node references, Luxon date code and expression errors.
Why reference nodes by name?
$json refers to the item flowing into the current node and can silently return wrong data after aggregations, merges or refactors. $('Node Name') references stay stable.
Should I use the DateTime node?
The skill prefers Luxon inside expressions for date math, formatting and parsing, and only uses the DateTime node when the user asks for it.
How do I install it?
Run: npx skills add https://github.com/n8n-io/skills --skill n8n-expressions-official
What are the best n8n-expressions-official alternatives?
Popular alternatives to n8n-expressions-official include n8n-code-nodes-official, n8n-expression-syntax and n8n-code-javascript. See all n8n-expressions-official alternatives