N8n Subworkflows skill for Claude
Build reusable, composable n8n sub-workflows.
When Claude uses it
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.
N8n Subworkflows SKILL.md
A preview of the skill file from WilkoMarketing/antigravity-n8n-skills.
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.
1. Search before you build
Before you write logic for a generic problem, check whether a sub-workflow already does it. The community MCP can't filter workflows by tag, so the name is the discovery surface:
n8n_list_workflows() # scan the library
n8n_get_workflow({ id: "<candidate>" }) # read its inputs/outputs + body
If something fits, use it and tell the user ("I found Subworkflow: Parse RFC2822 date — using that"). If nothing fits, build it with a discoverable name so the next search finds it. The discovery convention (verb-first prefixes) lives in NAMING_AND_DISCOVERY.md.
How to install N8n Subworkflows
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit WilkoMarketing/antigravity-n8n-skills/n8n-subworkflows#main ~/.claude/skills/n8n-subworkflowsCodex
npx degit WilkoMarketing/antigravity-n8n-skills/n8n-subworkflows#main ~/.codex/skills/n8n-subworkflowsClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What does the N8n Subworkflows skill do?
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.
+How do I install N8n Subworkflows in Claude Code?
Copy the skill folder into ~/.claude/skills/n8n-subworkflows, for example with "npx degit WilkoMarketing/antigravity-n8n-skills/n8n-subworkflows#main ~/.claude/skills/n8n-subworkflows". Claude Code loads it automatically and uses it when a task matches.
+Does N8n Subworkflows work with ChatGPT or Codex?
Yes. N8n Subworkflows uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/n8n-subworkflows. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is N8n Subworkflows free?
N8n Subworkflows is published on GitHub by WilkoMarketing. The repository does not declare a license, so check with the author before reusing it.