Skip to content
Kitbay

n8n-subworkflows-official

Apache-2.0Updated on Nov 11, 2026600GitHub stars

One of n8n's own skills for coding agents building workflows on an n8n instance through its MCP server.

What the skill teaches

One of n8n's own skills for coding agents building workflows on an n8n instance through its MCP server. It covers splitting logic into sub-workflows: a decision tree for when to extract, stateless versus deliberately stateful sub-workflows, patterns such as fire-and-forget audit logging and middleware, searching for an existing sub-workflow before building a new one, and declaring inputs and outputs explicitly, with exceptions for binary data. It also explains when a long linear workflow is fine.

Capabilities

  • Decide when to extract n8n logic into a sub-workflow
  • Find existing sub-workflows before building new ones
  • Define sub-workflow inputs and outputs
  • Build reusable logging and middleware sub-workflows