Individual skill
n8n-subworkflows
Build reusable, composable n8n sub-workflows. Use when extracting shared logic, building anything multi-step or reused across workflows, or any workflow over ~10 nodes — and whenever the user mentions sub-workflows, Execute Workflow, reuse, shared/common logic, modular workflows, "Define Below" inputs, waitForSubWorkflow, mode each vs all, or exposing a workflow as an agent tool. Covers typed sub-workflow inputs, all-vs-each execution, verb-first naming for discovery, stateless vs stateful design, and splitting by input shape.
skills/n8n-subworkflows/SKILL.md
Source commit e037563e101749e630e6688d121d04529fe6ee7b
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 6,629
- Repository last updated
- Oct 24, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai-agents Repository topic
- n8n Repository topic
- workflow-automation Repository topic
- design Derived category
- operations Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
NAMING_AND_DISCOVERY.mddoc · 6,500 bytesREADME.mddoc · 8,595 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSKILL.mdcore · 20,292 bytesSUBWORKFLOW_PATTERNS.mddoc · 8,935 bytes
Read excerpt
# n8n Sub-workflows
A sub-workflow is a reusable function. An **Execute Workflow Trigger** declares typed inputs, the body does the work, and the last node returns the output. A caller invokes it through an **Execute Workflow** node like any other step.
That framing buys you the things functions buy you everywhere: encapsulation, reuse, testability, replaceability. It's the primary reuse mechanism in n8n, and it's badly underused. Without it, the same logic gets copy-pasted across workflows — then a bug gets fixed in two places, the third copy gets missed, and your "identical" copies quietly drift apart.
This skill is about when to reach for a sub-workflow, how to define its input/output contract so callers (and agents) can actually use it, how to call it correctly (`all` vs `each`, blocking vs fire-and-forget), and how to name it so it gets found instead of rebuilt.
---
## The two non-negotiables
Everything else is judgement. These two are not.