n8n-expression-testing

n8n-expression-testing is a skill for Claude Code from summarybotng/summarybot-ng. It costs 36 tokens per session (2,926 once invoked), scanned A, original, MIT.

A testing guide for n8n expressions, which are small pieces of JavaScript-like code used to read and transform workflow data. It checks syntax, context variables, missing values, types, and unsafe functions.

In plain words
What is it for?
Use it to test expressions with different inputs, verify null handling, and catch syntax, type, efficiency, or security problems.
Why use it?
Expressions can fail when data is missing, has the wrong type, or comes from an incorrectly referenced workflow node.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to test expressions with different inputs, verify null handling, and catch syntax, type, efficiency, or security problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/summarybotng/summarybot-ng/n8n-expression-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add summarybotng/summarybot-ng --skill n8n-expression-testing
Clone the repo
git clone --depth 1 https://github.com/summarybotng/summarybot-ng

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for n8n-expression-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/summarybotng/summarybot-ng/n8n-expression-testing/github.svg)](https://agentmods.dev/skills/summarybotng/summarybot-ng/n8n-expression-testing)
Your own site
<a href="https://agentmods.dev/skills/summarybotng/summarybot-ng/n8n-expression-testing"><img src="https://agentmods.dev/badge/skills/summarybotng/summarybot-ng/n8n-expression-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for n8n-expression-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/summarybotng/summarybot-ng/n8n-expression-testing"><img src="https://agentmods.dev/badge/skills/summarybotng/summarybot-ng/n8n-expression-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.02926
Opus 5.5 $0.00014 $0.01170
Sonnet 5.5 $0.00007 $0.00585
Haiku 4.5 $0.00004 $0.00293

Measured 2mo ago against content hash d83f10fe4914, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

n8n-expression-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/n8n-expression-testing/SKILL.md · 441 lines

How it starts

The opening of the file, as written. The whole thing — 441 lines — stays where its author put it; the contents beside it link to each section on GitHub.

n8n Expression Testing

<default_to_action> When testing n8n expressions:

  1. VALIDATE syntax before execution
  2. TEST with multiple context scenarios
  3. CHECK for null/undefined handling
  4. VERIFY type safety
  5. SCAN for security vulnerabilities

Quick Expression Checklist:

  • Valid JavaScript syntax
  • Context variables properly referenced ($json, $node)
  • Null-safe access patterns (?., ??)
  • No dangerous functions (eval, Function)
  • Efficient for large data sets

Common Pitfalls:

  • Accessing nested properties without null checks
  • Type coercion issues
  • Missing fallback values
  • Inefficient array operations </default_to_action>

Quick Reference Card

n8n Expression Syntax

Pattern Example Description
Basic access {{ $json.field }} Access JSON field
Nested access {{ $json.user.email }} Access nested property
Array access {{ $json.items[0] }} Access array element
Node reference {{ $node["Name"].json.id }} Access other node's data
Method call {{ $json.name.toLowerCase() }} Call string method
Conditional {{ $json.x ? "yes" : "no" }} Ternary expression

Context Variables

Variable Description Example
$json Current item data {{ $json.email }}
$node["Name"] Other node's data {{ $node["HTTP"].json.body }}
$items() Multiple items {{ $items("Node", 0, 0).json }}
$now Current timestamp {{ $now.toISO() }}
$today Today's date {{ $today }}
$runIndex Run iteration {{ $runIndex }}
$workflow Workflow info {{ $workflow.name }}

Expression Syntax Patterns

Safe Data Access

// BAD: Can fail if nested objects are null
{{ $json.user.profile.email }}

// GOOD: Optional chaining with fallback
{{ $json.user?.profile?.email ?? '' }}

// BAD: Array access without bounds check
{{ $json.items[0].name }}

// GOOD: Safe array access
{{ $json.items?.[0]?.name ?? 'No items' }}

Read the full file on GitHub · 441 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 441 lines · 36 tokens per session scan A d83f10fe4914

Subscribe to this mod's changes

n8n-expression-testing is a skill published in the GitHub repository summarybotng/summarybot-ng (2 stars, last pushed 5mo ago), licensed MIT. It adds 36 tokens to every session and 2,926 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

n8n-expression-testing compared with skills from other repositories

n8n-expression-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
n8n-expression-testingsummarybotng/summarybot-ngSkill25mo agoMITA36Claude Code
writing-blogsappwrite/appwriteSkill59ktodayBSD-3-ClauseA64Cursor
create-announcementappwrite/appwriteSkill59ktodayBSD-3-ClauseA0Cursor
auditing-seoappwrite/appwriteSkill59ktodayBSD-3-ClauseA52Cursor
reviewing-blogsappwrite/appwriteSkill59ktodayBSD-3-ClauseA55Cursor
prisma-8prisma/ormSkill48ktodayApache-2.0A216Claude Code, Codex
n8n-expression-syntaxczlonkowski/n8n-mcpSkill23kyesterdayMITA104Claude Code, Codex