n8n-orchestration-patterns

n8n-orchestration-patterns is a skill for Claude Code from neurawork-git/n8n-autopilot. It costs 84 tokens per session (1,608 once invoked), scanned A, original, MIT.

A guide to running n8n sub-workflows across many items using fan-out, fan-in, and batching patterns. n8n is a visual workflow automation tool; fan-out splits work, and fan-in gathers the results.

In plain words
What is it for?
Use it when processing lists, calling sub-workflows, batching jobs, or designing workflows that need parallel execution and result collection.
Why use it?
Some common n8n branch setups run sequentially even when they appear parallel, making large workflows slow and webhooks wait too long.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the n8n-autopilot plugin — 24 skills, 12 agents, 5 hooks shipped together

Good fit Use it when processing lists, calling sub-workflows, batching jobs, or designing workflows that need parallel execution and result collection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neurawork-git/n8n-autopilot/n8n-orchestration-patterns
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 neurawork-git/n8n-autopilot --skill n8n-orchestration-patterns
Clone the repo
git clone --depth 1 https://github.com/neurawork-git/n8n-autopilot

Made for: Claude Code.

Or install n8n-autopilot, the plugin that ships this one along with the rest of its 24 skills, 12 agents, 5 hooks.

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-orchestration-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/neurawork-git/n8n-autopilot/n8n-orchestration-patterns/github.svg)](https://agentmods.dev/skills/neurawork-git/n8n-autopilot/n8n-orchestration-patterns)
Your own site
<a href="https://agentmods.dev/skills/neurawork-git/n8n-autopilot/n8n-orchestration-patterns"><img src="https://agentmods.dev/badge/skills/neurawork-git/n8n-autopilot/n8n-orchestration-patterns/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-orchestration-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/neurawork-git/n8n-autopilot/n8n-orchestration-patterns"><img src="https://agentmods.dev/badge/skills/neurawork-git/n8n-autopilot/n8n-orchestration-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,608 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.00084 $0.01608
Opus 5.5 $0.00034 $0.00643
Sonnet 5.5 $0.00017 $0.00322
Haiku 4.5 $0.00008 $0.00161

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

Security

Grade A, and why

n8n-orchestration-patterns 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 1mo 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.

skills/n8n-orchestration-patterns/SKILL.md · 109 lines

How it starts

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

n8n Orchestration Patterns (fan-out / fan-in / batch)

Battle-tested against the n8n docs (main) and real production workflows. The naive approach (branch-split) does NOT parallelize under the modern default — read the trap first.


The trap: branch-split alone does NOT parallelize

Mechanic Behaviour
executeWorkflow mode: each runs sequentially, one input item at a time
executeWorkflow mode: once all items in one sub-workflow call
Workflow executionOrder: 'v1' (default ≥ 1.0) completes one branch before starting the next
Workflow executionOrder: 'v0' (legacy) first node of every branch, then second node of every branch — layer-by-layer, all branches interleaved
N8N_CONCURRENCY_PRODUCTION_LIMIT does NOT apply to sub-workflow executions

So: 5 branches each [Filter → executeWorkflow] under executionOrder: 'v1' run serially — wall-clock = sum of all branches = no speedup. executeWorkflow mode: each is sequential per item.


Pattern A — executionOrder: 'v0' + branch-split (regular mode, no queue)

Layer-by-layer scheduling means when branch 0's executeWorkflow awaits (e.g. an LLM call), the engine schedules branch 1's, then 2,3,4 → all sub-workflow calls are in-flight at once (Node async I/O).

@workflow({
  name: 'Parallel Orchestrator',
  settings: {
    executionOrder: 'v0',     // ← CRITICAL — without this, branches run serially
    executionTimeout: 7200,
  },
})

Shape: a Code node assigns bucket: idx % N → N Filter nodes split by bucket → N executeWorkflow nodes → Merge (mode: append, numberInputs: N). Speedup ≈ N branches.

Caveat: v0 interleaving was less aggressive than expected for some (n8n issue #13620, closed "not planned"). On production-critical paths: measure, don't assume. Guaranteed N× only via queue mode.

Cleaner than a resumeUrl callback: no webhook between workflows (org veto), no HMAC-signature pain, and a persistent audit trail. See n8n-autopilot:data-tables for the table CRUD.

Read the full file on GitHub · 109 lines

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. 1mo ago First seen · 109 lines · 84 tokens per session scan A b48bd9511f2d

Subscribe to this mod's changes

n8n-orchestration-patterns is a skill published in the GitHub repository neurawork-git/n8n-autopilot (18 stars, last pushed 12d ago), licensed MIT. It adds 84 tokens to every session and 1,608 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

n8n

Use when the user wants to build, debug, or extend an n8n workflow - generating workflow JSON from a description, scaffolding a custom TypeScript node, building an AI agent (LangChain cluster), iterating over items, writing Code-node JS, linting an existing workflow, diagnosing a failed execution, or driving a live…

AutomateLab-tech/n8n-mcp · 78 tokens

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain. AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output…

czlonkowski/n8n-skills · 156 tokens

n8n-mcp-tools-expert

Expert guide for using n8n-mcp MCP tools effectively. Use when searching for nodes, validating configurations, accessing templates, managing workflows, organizing workflows into folders, managing credentials, auditing instance security, or using any n8n-mcp tool. Provides tool selection guidance, parameter formats…

czlonkowski/n8n-skills · 135 tokens

n8n-error-handling

Wire n8n error handling so failures are loud, structured, and recoverable. Use when building any webhook/API workflow, a scheduled or unattended workflow, or any path where a silent failure would drop user-visible work — and whenever the user mentions error handling, onError, continueErrorOutput, error…

czlonkowski/n8n-skills · 128 tokens

n8n-expression-syntax

Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors, mapping data between nodes, or referencing webhook data in workflows. Use this skill whenever configuring node fields that reference data from…

czlonkowski/n8n-skills · 104 tokens

n8n-node-configuration

Operation-aware node configuration guidance. Use when configuring nodes, understanding property dependencies, determining required fields, choosing between getnode detail levels, or learning common configuration patterns by node type — including the native nodes that replace Code (Summarize, Aggregate, Split Out…

czlonkowski/n8n-skills · 126 tokens