n8n-subworkflows-official

安装量: 966
排名: #10700

安装

npx skills add https://github.com/n8n-io/skills --skill n8n-subworkflows-official

n8n Sub-workflows Sub-workflows are reusable functions. The Execute Workflow Trigger declares input parameters, the body does work, the last node returns output. Callers invoke it like any other node. That framing opens up the function-shaped wins: encapsulation, reuse, testability, replaceability. It's the primary reuse mechanism in n8n, and unfortunately underused. Without sub-workflows, the same logic gets duplicated across workflows. Bug fixes happen in multiple places, one gets missed, and "identical" copies drift. Non-negotiables Search before you build. Before writing logic that handles a generic problem, check if a sub-workflow already exists. Filter by tag ( search_workflows({ tags: ['subworkflow'] }) , a domain tag) and/or keyword ( query: '' ). Tags are the discovery mechanism (n8n 2.27.0+). Execute Workflow Trigger uses "Define Below" with typed fields, not passthrough. Define Below is the only mode that lets agent tools ( fromAi ) and structured callers pass values in. Two exceptions: (a) the sub-workflow specifically needs to receive binary (then it can't be wired as an agent tool directly), or (b) the sub-workflow takes no inputs at all (Define Below requires at least one field). See "Sub-workflow inputs and outputs" below. Strong defaults Show more Installs 947 Repository n8n-io/skills GitHub Stars 462 First Seen Jul 8, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Warn

返回排行榜