n8n-binary-and-data

n8n-binary-and-data is a skill for Claude Code from czlonkowski/n8n-skills. It costs 135 tokens per session (3,702 once invoked), scanned A, a copy of n8n-binary-and-data, MIT.

Guidance for handling files in n8n, a workflow automation tool, including PDFs, images, attachments, uploads, downloads, and base64 data. It explains the difference between structured values and file contents.

In plain words
What is it for?
Use it to read, write, preserve, upload, download, or pass files through n8n workflows and AI-agent steps.
Why use it?
n8n stores file bytes separately from ordinary workflow data, and AI-agent tools accept only JSON values. Knowing where files live helps prevent missing files, lost attachments, and unusable agent inputs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the n8n-mcp-skills plugin — 15 skills shipped together , and of n8n-mcp-skills

Good fit Use it to read, write, preserve, upload, download, or pass files through n8n workflows and AI-agent steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/czlonkowski/n8n-skills/n8n-binary-and-data
About the project

n8n-skills is a collection of Claude Code skills and hooks that guide AI assistants in creating, validating, and deploying n8n workflows through the n8n-mcp server. Developers use it to automate workflow construction, configure nodes and expressions, resolve validation errors, and operate self-hosted n8n. The catalogue entries are its skills, hooks, plugins, and instruction.

czlonkowski/n8n-skills · 6,205 stars · on GitHub · n8n-skills.com

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 czlonkowski/n8n-skills --skill n8n-binary-and-data
Clone the repo
git clone --depth 1 https://github.com/czlonkowski/n8n-skills

Made for: Claude Code.

Or install n8n-mcp-skills, the plugin that ships this one along with the rest of its 15 skills.

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-binary-and-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/czlonkowski/n8n-skills/n8n-binary-and-data/github.svg)](https://agentmods.dev/skills/czlonkowski/n8n-skills/n8n-binary-and-data)
Your own site
<a href="https://agentmods.dev/skills/czlonkowski/n8n-skills/n8n-binary-and-data"><img src="https://agentmods.dev/badge/skills/czlonkowski/n8n-skills/n8n-binary-and-data/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-binary-and-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/czlonkowski/n8n-skills/n8n-binary-and-data"><img src="https://agentmods.dev/badge/skills/czlonkowski/n8n-skills/n8n-binary-and-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,702 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. Third-party audits
  • Socket pass 18 Jun 2026
  • Snyk fail 18 Jun 2026
How audits are shown
Origin 100% copy Near-identical to another mod 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.00135 $0.03702
Opus 5 $0.00068 $0.01851
Sonnet 5 $0.00027 $0.00740
Haiku 4.5 $0.00014 $0.00370

Measured 10d ago against content hash 7c207909e3e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

n8n-binary-and-data 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 10d 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.

Origin

This is a copy

100% identical to n8n-binary-and-data — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/n8n-binary-and-data/SKILL.md · 250 lines

How it starts

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

n8n Binary and Data

Every n8n item carries two independent slots: $json for structured data and $binary for file bytes. They travel side by side through the workflow. File contents — the actual PDF, image, or zip — live in $binary, never in $json. Get that split wrong and you read an empty field, lose a file mid-flow, or hand an AI agent a tool input it can't use.

This skill covers where binary lives, how to read and write it, how to keep it from being silently stripped, the hard wall between binary and the AI-agent tool boundary, and why chat surfaces need a URL instead of raw bytes.


The three rules that prevent 90% of binary bugs

  1. File contents are in $binary, not $json. After an HTTP download, a "Read Files", or an email-attachment trigger, the bytes sit in $binary.<key>. $json holds metadata at most. Reading $json.data for file contents gives you nothing.

  2. Binary cannot cross the AI-agent tool boundary — in either direction. Tool arguments and tool return values are JSON only. An uploaded image can't be passed into a tool as a file, and a tool can't return raw bytes. Pre-stage to storage and pass a key or URL through JSON instead. See AGENT_TOOL_BINARY.md.

  3. Chat surfaces render images by URL, not by $binary. Slack, Discord, Teams, Telegram, embedded webhook chat — none of them read the binary slot. The image has to live somewhere a URL can fetch it. See CDN_REQUIREMENT.md.


The two slots

Each item is shaped like this:

{
  "json": { "customerId": 42, "status": "sent" },
  "binary": {
    "invoice": {
      "data": "<base64-encoded bytes>",
      "mimeType": "application/pdf",
      "fileName": "invoice-42.pdf",
      "fileExtension": "pdf"
    }
  }
}

The key inside binary (invoice here) is the binary property name. Most file-handling nodes have a binaryPropertyName parameter that points at it — the producer names the slot, the consumer references it by that name. The default key across most nodes is data, so when nothing tells you otherwise, assume $binary.data.

Read the full file on GitHub · 250 lines

Files

What ships with it

5 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. 10d ago First seen · 250 lines · 135 tokens per session scan A 7c207909e3e8

Subscribe to this mod's changes

n8n-binary-and-data is a skill published in the GitHub repository czlonkowski/n8n-skills (6,205 stars, last pushed 6d ago), licensed MIT. It adds 135 tokens to every session and 3,702 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to n8n-binary-and-data, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

n8n-binary-and-data

Handle files and binary data in n8n correctly. Use when working with files, images, PDFs, attachments, uploads or downloads, base64, vision/multimodal input, or when an AI agent needs a file as tool input or output — and whenever the user mentions $binary, binaryPropertyName, "read the PDF", "attach the file", "send…

czlonkowski/n8n-mcp · 135 tokens

n8n-workflow

Automate document workflows with n8n - 7800+ workflow templates.

claude-office-skills/skills · 21 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

bitsky-tech/bridgic-agent · 92 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

skill-doc-delivery

Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables.

nyldn/claude-octopus · 29 tokens

pdf-extract-create-workflow

Complete PDF lifecycle: download, extract, and generate structured documents with reportlab.

HKUDS/OpenSpace · 22 tokens