n8n-subworkflows
Build reusable n8n sub-workflows with typed inputs, all-vs-each execution, discoverable naming, and agent-tool exposure.
npx skills add sickn33/agentic-awesome-skills --skill n8n-subworkflows --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# n8n Sub-workflows ## When to Use Use this skill when shared or multi-step logic should become a typed reusable workflow, when an existing workflow is growing difficult to reason about, or when an agent needs a workflow exposed as a tool. Preserve authentication and authorization boundaries when extracting logic. Do not place credentials in inputs or returned data, declare state-changing behavior explicitly, and ask before running or activating a sub-workflow that sends, writes, deletes, or calls a billable external service. 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 inpu
- When to Use
- The two non-negotiables
- 1. Search before you build
- Should this be a sub-workflow?
- Stateless vs. stateful (deliberately)
- Inputs and outputs as a contract
- Declaring typed inputs (Define Below)
- The contract rules
- The final Return node — the legitimate Set exception
- Calling sub-workflows: mode and waitForSubWorkflow
- mode: all vs each
- waitForSubWorkflow: true vs false
- The only true parallelization n8n offers
- Splitting by input shape (the N+1 pattern)
What does the n8n-subworkflows skill do?
Build reusable n8n sub-workflows with typed inputs, all-vs-each execution, discoverable naming, and agent-tool exposure.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill n8n-subworkflows --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.