Official
Productivity & Workflow
Implements modular, reusable, and testable sub-workflow patterns within n8n to eliminate logic duplication and improve automation architecture.
This skill provides standardized guidance for building and managing sub-workflows in n8n, treating them as reusable functions with clear input/output contracts. It helps users decide when to extract logic, how to implement stateless versus stateful patterns, and how to utilize tags for discovery. By enforcing best practices like the middleware pattern and the fire-and-forget audit-log pattern, it ensures n8n automations remain scalable, maintainable, and easy to debug while providing the architecture needed for agentic tools.
Key Features
01Standardized patterns for stateless logic and stateful repository patterns
02Tagging and discovery conventions to maximize logic reuse across the organization
03Decision framework for sub-workflow extraction vs. inline node grouping
04Middleware implementation for shared API concerns like JWT and rate limiting
05305 GitHub stars
06Typed field configuration for 'Execute Workflow Trigger' (Define Below mode)
Use Cases
01Implementing reusable API middleware for JWT verification and rate limiting
02Centralizing repetitive logic like date parsing or data formatting across multiple workflows
03Abstracting database operations behind a clean domain-specific repository pattern