n8n-expression-syntax
Skill by MorrisLu-Taipei
Validates n8n expression syntax and fixes common errors. Written for people building n8n workflows that pass data between nodes, such as webhook fields or HTTP Request results.
Install n8n-expression-syntax
Built from the published package, never by AI.
git clone --depth 1 https://github.com/MorrisLu-Taipei/TigerAI-A2A-Code2n8n-Skill-Pack /tmp/TigerAI-A2A-Code2n8n-Skill-Pack && mkdir -p ~/.claude/skills && cp -r /tmp/TigerAI-A2A-Code2n8n-Skill-Pack/skills/_vendor/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/MorrisLu-Taipei/TigerAI-A2A-Code2n8n-Skill-Pack /tmp/TigerAI-A2A-Code2n8n-Skill-Pack && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/TigerAI-A2A-Code2n8n-Skill-Pack/skills/_vendor/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
This agent skill is a guide to writing correct n8n expressions. It explains the double curly brace format and the $json, $node, $now and $env variables. It also covers bracket notation for field names with spaces or special characters, and lists common mistakes with fixes. One key point is that webhook data sits under .body, and Code nodes use direct JavaScript access instead of expressions.
The skill is aimed at people configuring n8n workflow fields that read data from earlier nodes. It includes validation rules, examples such as a webhook to Slack message and an HTTP Request to email, date formatting with Luxon, and debugging tips. It points to separate files for a full error catalog and more examples, and mentions n8n-mcp validation tools for checking expressions.
Written from the project's SKILL.md and checked against it.
What it can do
- Expression format checkExplains that dynamic content must be wrapped in double curly braces and shows wrong and right forms.
- Core variable accessCovers $json, $node, $now and $env, with examples for each.
- Webhook data structureExplains that webhook user data is under .body and shows the correct access paths.
- Bracket notation rulesShows how to reference field and node names with spaces or special characters.
- Node name matchingDescribes the case-sensitive, exact-match rule for node names in $node references.
- Code node guidanceShows that Code nodes use direct JavaScript access, not expressions.
- Common error fixesProvides a quick-fix table for frequent expression mistakes.
- Date formattingShows how to format and manipulate timestamps with $now and Luxon methods.
- Debugging tipsExplains the expression editor preview and common error messages.
What you need
- An n8n instance to build workflows
Try asking
- Fix this n8n expression that reads a webhook name field
- Write an n8n expression that formats today's date as yyyy-MM-dd
- Check why my n8n $node reference to HTTP Request returns nothing
Good to know
- $env access may be blocked by the N8N_BLOCK_ENV_ACCESS_IN_NODE setting
- Expressions should not be used in Code nodes, webhook paths or credential fields
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/_vendor/n8n-expression-syntax/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
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 field show undefined?
The source says webhook user data is nested under the body property, so the path should be $json.body.fieldName rather than $json.fieldName.
Why is my n8n $env variable not working?
The source says some instances have N8N_BLOCK_ENV_ACCESS_IN_NODE enabled, which blocks $env access. It suggests storing values in credentials, using a Set node, or passing them through webhook query parameters.
Do n8n expressions work inside Code nodes?
No. The source says Code nodes use direct JavaScript access such as $json.email, and wrapping values in {{ }} there is a mistake.
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 78 of 100. Grades: maintenance A, licence A, quality B. 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.
