n8n-expression-syntax
Skill by czlonkowski
Validates n8n expression syntax and helps fix common expression errors. Covers the {{}} format, $json, $node, $now, $env and $vars, and webhook data access. Aimed at people building n8n workflows.
Install n8n-expression-syntax
Built from the published package, never by AI.
git clone --depth 1 https://github.com/czlonkowski/n8n-skills /tmp/n8n-skills && mkdir -p ~/.claude/skills && cp -r /tmp/n8n-skills/skills/n8n-expression-syntax ~/.claude/skills/n8n-expression-syntaxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/czlonkowski/n8n-skills /tmp/n8n-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/n8n-skills/skills/n8n-expression-syntax ~/.gemini/antigravity-cli/skills/n8n-expression-syntaxAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install n8n-expression-syntax in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The n8n-expression-syntax skill gives an AI assistant guidance for writing correct n8n expressions. It covers the double curly brace format, core variables such as $json, $node, $now, $env and $vars, and the common mistake of webhook data sitting under .body. It also explains when not to use expressions, such as inside Code nodes.
The skill includes an order for choosing between a service's own node, a native node, a short expression and a Code node. It documents $jmespath() for querying nested JSON and a set of built-in helper functions such as pluck, sum and unique. It is written for people building workflows in n8n who need to fix expression errors or map data between nodes.
Written from the project's SKILL.md and checked against it.
What it can do
- Expression format checkShows the correct double curly brace format and flags common invalid forms.
- Core variable accessExplains how to read $json, $node, $now, $env and $vars in workflow fields.
- Webhook data mappingExplains that webhook user data sits under $json.body and shows correct paths.
- Nested field accessShows array indexing, nested properties and bracket notation for field names with spaces.
- Transform order guidanceDescribes when to use a service node, native node, short expression or Code node.
- $jmespath queriesDocuments one-expression JSON queries with syntax rules and silent failure cases.
- Built-in helper functionsLists expression helpers such as pluck, sum, unique, $ifEmpty and date methods.
What you need
- An n8n instance
- An n8n license that includes variables, for $vars
- n8n-mcp 2.97.0 or later, for the helper documentation tool
Try asking
- Check why my n8n expression {{$json.name}} returns undefined in a webhook
- Write an n8n expression that sums the prices in an array field
- Show me how to read a webhook email field in an n8n expression
Good to know
- $env access can be blocked by the N8N_BLOCK_ENV_ACCESS_IN_NODE setting
- $vars needs an n8n license that includes variables, not the free Community edition
- Expressions are not used in Code nodes, which use plain JavaScript access
- $jmespath is not available in native Python Code nodes
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: 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 →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
n8n-expression-syntax: common questions
Why does my n8n webhook expression return undefined?
Webhook node output wraps user data under a body property. The skill says to use paths like {{$json.body.name}} instead of {{$json.name}}.
Can I use n8n expressions inside a Code node?
The skill says no. Code nodes use direct JavaScript access such as $json.email, and expression helpers exist only in expressions.
Do complex n8n expressions hurt performance?
The source says performance rarely decides the choice below a few hundred items. Readability is given as the main reason to prefer native nodes or short expressions.
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 93 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.
