Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

n8n-subworkflows

Skill by czlonkowski

Guides an AI assistant in building reusable n8n sub-workflows with typed inputs, clear return contracts and correct calling patterns. Aimed at n8n builders who want to extract shared logic instead of copying it.

  • Score 91
  • 6.7k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install n8n-subworkflows

Built from the published package, never by AI.

git clone --depth 1 https://github.com/czlonkowski/n8n-skills /tmp/n8n-skills && mkdir -p ~/.claude/skills && cp -r /tmp/n8n-skills/skills/n8n-subworkflows ~/.claude/skills/n8n-subworkflows

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install n8n-subworkflows in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill describes n8n sub-workflows as reusable functions. An Execute Workflow Trigger declares typed inputs, the body does the work, and the last node returns the output. It covers when to extract logic, how to define input and output contracts, and how to choose between stateless and stateful design. It also explains calling sub-workflows with mode all or each and with waitForSubWorkflow set to true or false.

The skill asks the assistant to search existing workflows by name before building new logic, and to use verb-first names so sub-workflows can be found later. It recommends the Define Below input mode with typed fields, with binary input and zero-input cases as the only exceptions. It is written for n8n users who reuse or modularize workflows, including those who use an n8n MCP server.

Written from the project's SKILL.md and checked against it.

What it can do

  • Extract shared logicDecides when logic should become a reusable sub-workflow instead of being copied.
  • Define typed inputsSets up Define Below inputs with string, number, boolean, array and object types.
  • Design return contractsKeeps outputs in natural shapes and returns expected errors as objects with ok set to false.
  • Choose all or each modeExplains when a sub-workflow should run once with all items or once per item.
  • Run fire-and-forget workExplains waitForSubWorkflow set to false and a stage, dispatch and poll pattern for parallel runs.
  • Name for discoveryUses verb-first naming so existing sub-workflows can be found and reused.
  • Split by input shapeDescribes the N+1 pattern for inputs whose contracts genuinely differ.
  • Test with pinned inputDescribes running a sub-workflow alone with pinned data through n8n_test_workflow.

What you need

  • An n8n instance with workflows to reuse
  • N8N_MCP_ACCESS_TOKEN for pinned testing
  • The Available in MCP setting on the workflow for pinned testing
  • An n8n MCP server for listing, reading and validating workflows

Try asking

  • Find an existing n8n sub-workflow that parses dates before I build one
  • Extract the shared retry logic from this n8n workflow into a sub-workflow
  • Set up an n8n sub-workflow with typed inputs that an agent can call as a tool

Good to know

  • The community MCP cannot filter workflows by tag, so discovery relies on workflow names.
  • Pinned testing needs N8N_MCP_ACCESS_TOKEN and the Available in MCP setting.
  • The default auto test method cannot run a sub-workflow because it has no HTTP trigger.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/n8n-subworkflows/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • NAMING_AND_DISCOVERY.md6 KB
  • README.md8 KB
  • SKILL.md20 KB
  • SUBWORKFLOW_PATTERNS.md9 KB

Alternatives to n8n-subworkflows

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

n8n-subworkflows: common questions

Should n8n sub-workflows use Define Below or passthrough inputs?

The skill says to default to Define Below with typed fields. Passthrough is only for binary input or for sub-workflows that take no inputs.

What is the difference between mode all and mode each?

With all, the sub-workflow runs once with all items. With each, it runs once per item, which suits bodies that expect a single item.

Can I test an n8n sub-workflow on its own?

Yes. The skill describes using n8n_test_workflow with the prepare method, then the pinned method with your own input data.

How do I install n8n-subworkflows?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is n8n-subworkflows free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is n8n-subworkflows safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to n8n-subworkflows?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

n8n-subworkflows Install

Add to stack

Loading.