Agent skill

N8n Workflow Patterns

by davila7 in davila7/claude-code-templates

Proven architectural patterns for building n8n workflows. An agent skill from davila7/claude-code-templates.

MITAuto-check passedProductivity & Automation

Install N8n Workflow Patterns

skills CLI
$ npx skills add davila7/claude-code-templates --skill n8n-workflow-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davila7/claude-code-templates n8n-workflow-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-tool/components/skills/workflow-automation/n8n-workflow-patterns .claude/skills/n8n-workflow-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
n8n-workflow-patterns
GitHub stars
32k
Used in
3 other repos
Token cost
~2.7k tokens
SKILL.md length
1,129 words
Files
1
Skills in repo
477
Repo updated
First seen
Licence
MIT

At a glance

Proven architectural patterns for building n8n workflows. An agent skill from davila7/claude-code-templates.

  • Works in 10 steps: Triggers → Data Sources → Transformation → …
  • Tasks that involve Workflow automation
  • SKILL.md covers The 5 Core Patterns, Pattern Selection Guide, Common Workflow Components and Workflow Creation Checklist, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

N8n Workflow Patterns is an agent skill from davila7/claude-code-templates. Proven architectural patterns for building n8n workflows.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Workflow automation. It works with n8n. The repository describes itself as: CLI tool for configuring and monitoring Claude Code. The licence is MIT.

When your agent uses it

  • Tasks that involve Workflow automation

Example prompts

  • “/n8n-workflow-patterns”

Requirements

  • Python 3

Workflow steps

10 steps, taken from the step headings in SKILL.md.

  1. Triggers
  2. Data Sources
  3. Transformation
  4. Outputs
  5. Error Handling
  6. Webhook Data Structure
  7. Multiple Input Items
  8. Authentication Issues
  9. Node Execution Order
  10. Expression Errors

What it can do on your machine

Read from SKILL.md and the folder at commit 4c82aba. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

N8n Workflow Patterns loads about 2.7k tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 1,129 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from davila7/claude-code-templates at commit 4c82aba, republished under its MIT licence (© davila7). 1,129 words, ~2,726 tokens.

Download SKILL.mdSave it as .claude/skills/n8n-workflow-patterns/SKILL.md (or your agent's skills folder).
name
n8n-workflow-patterns
description
Proven architectural patterns for building n8n workflows.
risk
unknown
source
community

n8n Workflow Patterns

Proven architectural patterns for building n8n workflows.


The 5 Core Patterns

Based on analysis of real workflow usage:

  1. Webhook Processing (Most Common)

    • Receive HTTP requests → Process → Output
    • Pattern: Webhook → Validate → Transform → Respond/Notify
  2. [HTTP API Integration]

    • Fetch from REST APIs → Transform → Store/Use
    • Pattern: Trigger → HTTP Request → Transform → Action → Error Handler
  3. Database Operations

    • Read/Write/Sync database data
    • Pattern: Schedule → Query → Transform → Write → Verify
  4. AI Agent Workflow

    • AI agents with tools and memory
    • Pattern: Trigger → AI Agent (Model + Tools + Memory) → Output
  5. Scheduled Tasks

    • Recurring automation workflows
    • Pattern: Schedule → Fetch → Process → Deliver → Log

Pattern Selection Guide

When to use each pattern:

Webhook Processing - Use when:

  • Receiving data from external systems
  • Building integrations (Slack commands, form submissions, GitHub webhooks)
  • Need instant response to events
  • Example: "Receive Stripe payment webhook → Update database → Send confirmation"

HTTP API Integration - Use when:

  • Fetching data from external APIs
  • Synchronizing with third-party services
  • Building data pipelines
  • Example: "Fetch GitHub issues → Transform → Create Jira tickets"

Database Operations - Use when:

  • Syncing between databases
  • Running database queries on schedule
  • ETL workflows
  • Example: "Read Postgres records → Transform → Write to MySQL"

AI Agent Workflow - Use when:

  • Building conversational AI
  • Need AI with tool access
  • Multi-step reasoning tasks
  • Example: "Chat with AI that can search docs, query database, send emails"

Scheduled Tasks - Use when:

  • Recurring reports or summaries
  • Periodic data fetching
  • Maintenance tasks
  • Example: "Daily: Fetch analytics → Generate report → Email team"

Common Workflow Components

All patterns share these building blocks:

1. Triggers
  • Webhook - HTTP endpoint (instant)
  • Schedule - Cron-based timing (periodic)
  • Manual - Click to execute (testing)
  • Polling - Check for changes (intervals)
2. Data Sources
  • HTTP Request - REST APIs
  • Database nodes - Postgres, MySQL, MongoDB
  • Service nodes - Slack, Google Sheets, etc.
  • Code - Custom JavaScript/Python
3. Transformation
  • Set - Map/transform fields
  • Code - Complex logic
  • IF/Switch - Conditional routing
  • Merge - Combine data streams
4. Outputs
  • HTTP Request - Call APIs
  • Database - Write data
  • Communication - Email, Slack, Discord
  • Storage - Files, cloud storage
5. Error Handling
  • Error Trigger - Catch workflow errors
  • IF - Check for error conditions
  • Stop and Error - Explicit failure
  • Continue On Fail - Per-node setting

Workflow Creation Checklist

When building ANY workflow, follow this checklist:

Planning Phase
  • Identify the pattern (webhook, API, database, AI, scheduled)
  • List required nodes (use search_nodes)
  • Understand data flow (input → transform → output)
  • Plan error handling strategy
Implementation Phase
  • Create workflow with appropriate trigger
  • Add data source nodes
  • Configure authentication/credentials
  • Add transformation nodes (Set, Code, IF)
  • Add output/action nodes
  • Configure error handling
Validation Phase
  • Validate each node configuration (validate_node)
  • Validate complete workflow (validate_workflow)
  • Test with sample data
  • Handle edge cases (empty data, errors)
Deployment Phase
  • Review workflow settings (execution order, timeout, error handling)
  • Activate workflow using activateWorkflow operation
  • Monitor first executions
  • Document workflow purpose and data flow

Data Flow Patterns

Linear Flow
Trigger → Transform → Action → End

Use when: Simple workflows with single path

Branching Flow
Trigger → IF → [True Path]
             └→ [False Path]

Use when: Different actions based on conditions

Parallel Processing
Trigger → [Branch 1] → Merge
       └→ [Branch 2] ↗

Use when: Independent operations that can run simultaneously

Loop Pattern
Trigger → Split in Batches → Process → Loop (until done)

Use when: Processing large datasets in chunks

Error Handler Pattern
Main Flow → [Success Path]
         └→ [Error Trigger → Error Handler]

Use when: Need separate error handling workflow


Common Gotchas

1. Webhook Data Structure

Problem: Can't access webhook payload data

Solution: Data is nested under $json.body

javascript
❌ {{$json.email}}
✅ {{$json.body.email}}

See: n8n Expression Syntax skill

2. Multiple Input Items

Problem: Node processes all input items, but I only want one

Solution: Use "Execute Once" mode or process first item only

javascript
{{$json[0].field}}  // First item only
3. Authentication Issues

Problem: API calls failing with 401/403

Solution:

  • Configure credentials properly
  • Use the "Credentials" section, not parameters
  • Test credentials before workflow activation
4. Node Execution Order

Problem: Nodes executing in unexpected order

Solution: Check workflow settings → Execution Order

  • v0: Top-to-bottom (legacy)
  • v1: Connection-based (recommended)
5. Expression Errors

Problem: Expressions showing as literal text

Solution: Use {{}} around expressions

  • See n8n Expression Syntax skill for details

Integration with Other Skills

These skills work together with Workflow Patterns:

n8n MCP Tools Expert - Use to:

  • Find nodes for your pattern (search_nodes)
  • Understand node operations (get_node)
  • Create workflows (n8n_create_workflow)
  • Deploy templates (n8n_deploy_template)
  • Use ai_agents_guide for AI pattern guidance

n8n Expression Syntax - Use to:

  • Write expressions in transformation nodes
  • Access webhook data correctly ({{$json.body.field}})
  • Reference previous nodes ({{$node["Node Name"].json.field}})

n8n Node Configuration - Use to:

  • Configure specific operations for pattern nodes
  • Understand node-specific requirements

n8n Validation Expert - Use to:

  • Validate workflow structure
  • Fix validation errors
  • Ensure workflow correctness before deployment

Show full SKILL.md (435 more words)Show less

Pattern Statistics

Common workflow patterns:

Most Common Triggers:

  1. Webhook - 35%
  2. Schedule (periodic tasks) - 28%
  3. Manual (testing/admin) - 22%
  4. Service triggers (Slack, email, etc.) - 15%

Most Common Transformations:

  1. Set (field mapping) - 68%
  2. Code (custom logic) - 42%
  3. IF (conditional routing) - 38%
  4. Switch (multi-condition) - 18%

Most Common Outputs:

  1. HTTP Request (APIs) - 45%
  2. Slack - 32%
  3. Database writes - 28%
  4. Email - 24%

Average Workflow Complexity:

  • Simple (3-5 nodes): 42%
  • Medium (6-10 nodes): 38%
  • Complex (11+ nodes): 20%

Quick Start Examples

Example 1: Simple Webhook → Slack
1. Webhook (path: "form-submit", POST)
2. Set (map form fields)
3. Slack (post message to #notifications)
Example 2: Scheduled Report
1. Schedule (daily at 9 AM)
2. HTTP Request (fetch analytics)
3. Code (aggregate data)
4. Email (send formatted report)
5. Error Trigger → Slack (notify on failure)
Example 3: Database Sync
1. Schedule (every 15 minutes)
2. Postgres (query new records)
3. IF (check if records exist)
4. MySQL (insert records)
5. Postgres (update sync timestamp)
Example 4: AI Assistant
1. Webhook (receive chat message)
2. AI Agent
   ├─ OpenAI Chat Model (ai_languageModel)
   ├─ HTTP Request Tool (ai_tool)
   ├─ Database Tool (ai_tool)
   └─ Window Buffer Memory (ai_memory)
3. Webhook Response (send AI reply)
Example 5: API Integration
1. Manual Trigger (for testing)
2. HTTP Request (GET /api/users)
3. Split In Batches (process 100 at a time)
4. Set (transform user data)
5. Postgres (upsert users)
6. Loop (back to step 3 until done)

Detailed Pattern Files

For comprehensive guidance on each pattern:

  • webhook_processing.md - Webhook patterns, data structure, response handling
  • http_api_integration - REST APIs, authentication, pagination, retries
  • database_operations.md - Queries, sync, transactions, batch processing
  • ai_agent_workflow.md - AI agents, tools, memory, langchain nodes
  • scheduled_tasks.md - Cron schedules, reports, maintenance tasks

Real Template Examples

From n8n template library:

Template #2947: Weather to Slack

  • Pattern: Scheduled Task
  • Nodes: Schedule → HTTP Request (weather API) → Set → Slack
  • Complexity: Simple (4 nodes)

Webhook Processing: Most common pattern

  • Most common: Form submissions, payment webhooks, chat integrations

HTTP API: Common pattern

  • Most common: Data fetching, third-party integrations

Database Operations: Common pattern

  • Most common: ETL, data sync, backup workflows

AI Agents: Growing in usage

  • Most common: Chatbots, content generation, data analysis

Use search_templates and get_template from n8n-mcp tools to find examples!


Best Practices

✅ Do
  • Start with the simplest pattern that solves your problem
  • Plan your workflow structure before building
  • Use error handling on all workflows
  • Test with sample data before activation
  • Follow the workflow creation checklist
  • Use descriptive node names
  • Document complex workflows (notes field)
  • Monitor workflow executions after deployment
❌ Don't
  • Build workflows in one shot (iterate! avg 56s between edits)
  • Skip validation before activation
  • Ignore error scenarios
  • Use complex patterns when simple ones suffice
  • Hardcode credentials in parameters
  • Forget to handle empty data cases
  • Mix multiple patterns without clear boundaries
  • Deploy without testing

Summary

Key Points:

  1. 5 core patterns cover 90%+ of workflow use cases
  2. Webhook processing is the most common pattern
  3. Use the workflow creation checklist for every workflow
  4. Plan pattern → Select nodes → Build → Validate → Deploy
  5. Integrate with other skills for complete workflow development

Next Steps:

  1. Identify your use case pattern
  2. Read the detailed pattern file
  3. Use n8n MCP Tools Expert to find nodes
  4. Follow the workflow creation checklist
  5. Use n8n Validation Expert to validate

Related Skills:

  • n8n MCP Tools Expert - Find and configure nodes
  • n8n Expression Syntax - Write expressions correctly
  • n8n Validation Expert - Validate and fix errors
  • n8n Node Configuration - Configure specific operations

© davila7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in cli-tool/components/skills/workflow-automation/n8n-workflow-patterns of davila7/claude-code-templates.

Open the folder on GitHubat commit 4c82aba

Used in 3 other repositories

We found 14 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in davila7/claude-code-templates, which our catalogue first saw on October 7, 2026.

Compare with similar skills

N8n Workflow Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

N8n Workflow Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
N8n Workflow Patterns this skilldavila7/claude-code-templates32k3 repos~2.7kAutomated safety check: PassMIT
N8n Add Workflowkhanhduyvt0101/workflows110—~1.3kAutomated safety check: PassNone
Airtable Automationclaude-office-skills/skills498—~2.7kAutomated safety check: PassMIT
Automation InstructionsdeusXmachina-dev/memorylane121—~1.1kAutomated safety check: PassGPL-3.0
n8n Expression Syntaxczlonkowski/n8n-skills6.4k—~5.2kAutomated safety check: PassMIT
GTM Engineeringtech-leads-club/agent-skills7k—~4.8kAutomated safety check: PassCustom licence

Similar skills

  • N8n Add Workflow

    khanhduyvt0101/workflows

    Add a new n8n workflow template to the repository. An agent skill from khanhduyvt0101/workflows.

    110 GitHub stars~1.3k tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check passed
  • Airtable Automation

    claude-office-skills/skills

    Airtable database automation - views, automations, integrations, and workflow triggers

    498 GitHub stars~2.7k tokensUpdated 8 mo ago
    Productivity & AutomationAuto-check passed
  • Automation Instructions

    deusXmachina-dev/memorylane

    Write step-by-step automation instructions for a workflow, tailored to your tool (Claude, n8n or Zapier).

    121 GitHub stars~1.1k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • n8n Expression Syntax

    czlonkowski/n8n-skills

    Validates and fixes n8n's double-curly-brace expressions, covering $json, $node, and the webhook body-wrapping mistake.

    6.4k GitHub stars~5.2k tokensUpdated 21 days ago
    Productivity & AutomationAuto-check passed
  • GTM Engineering

    tech-leads-club/agent-skills

    Designs go-to-market automation and AI agent workflows for revenue teams, built on the idea that architecture and context matter more than any single tool.

    7k GitHub stars~4.8k tokensUpdated 17 days ago
    Productivity & AutomationAuto-check passed
  • Using N8n MCP Skills

    czlonkowski/n8n-skills

    A skill your agent uses when building, editing, validating, testing, or debugging an n8n workflow through the n8n-mcp MCP server — designing a flow, configuring a node, writing an expression or Code…

    6.4k GitHub stars~4.3k tokensUpdated 21 days ago
    Productivity & AutomationAuto-check passed

More from davila7/claude-code-templates

All 477 skills in this repo
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    32k GitHub starsUsed in 12 repos~3.5k tokens
    Auto-check: notes
  • Neuropixels Data Analysis

    davila7/claude-code-templates

    Analyzes Neuropixels recordings from SpikeGLX or Open Ephys through preprocessing, drift correction, Kilosort4 spike sorting, quality metrics and curation.

    32k GitHub starsUsed in 10 repos~2.8k tokens
    Auto-check passed
  • Scientific Venue Templates

    davila7/claude-code-templates

    Supplies LaTeX templates and formatting rules for journals, conferences, posters, and grant proposals, then can check a draft against them.

    32k GitHub starsUsed in 9 repos~5.1k tokens
    Auto-check: notes
  • Brand Voice Content Creator

    davila7/claude-code-templates

    Analyzes a brand's existing writing to lock in a consistent voice, then builds SEO blog posts and platform-specific social content around it.

    32k GitHub starsUsed in 2 repos~1.9k tokens
    Auto-check passed
  • CAPA Officer

    davila7/claude-code-templates

    Guides corrective and preventive action (CAPA) work in a quality management system, from initiation and root cause analysis through effectiveness verification.

    32k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Fda Consultant Specialist

    davila7/claude-code-templates

    Senior FDA consultant and specialist for medical device companies including HIPAA compliance and requirement management.

    32k GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed

Works with

Questions about N8n Workflow Patterns

What does N8n Workflow Patterns do?

Proven architectural patterns for building n8n workflows. An agent skill from davila7/claude-code-templates. N8n Workflow Patterns is an agent skill from davila7/claude-code-templates. Proven architectural patterns for building n8n workflows.

When should I use N8n Workflow Patterns?

N8n Workflow Patterns fits situations like: tasks that involve Workflow automation.

How do I install N8n Workflow Patterns in Claude Code?

Run `npx skills add davila7/claude-code-templates --skill n8n-workflow-patterns -a claude-code`. Or copy the skill folder (cli-tool/components/skills/workflow-automation/n8n-workflow-patterns in davila7/claude-code-templates) into .claude/skills/n8n-workflow-patterns in your project. Claude Code loads it when a task matches its description.

How do I install N8n Workflow Patterns in Codex?

Run `npx skills add davila7/claude-code-templates --skill n8n-workflow-patterns -a codex`. Or copy the skill folder (cli-tool/components/skills/workflow-automation/n8n-workflow-patterns in davila7/claude-code-templates) into .agents/skills/n8n-workflow-patterns in your project. Codex loads it when a task matches its description.

Can I use N8n Workflow Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davila7/claude-code-templates --skill n8n-workflow-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/n8n-workflow-patterns, .gemini/skills/n8n-workflow-patterns, .github/skills/n8n-workflow-patterns and .opencode/skills/n8n-workflow-patterns in your project.

What does N8n Workflow Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: N8n Workflow Patterns is instructions for the agent only. Our summary lists: Python 3.

Does N8n Workflow Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is N8n Workflow Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does N8n Workflow Patterns use?

N8n Workflow Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does N8n Workflow Patterns use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to N8n Workflow Patterns?

Skills that share tags, products or a category with N8n Workflow Patterns: N8n Add Workflow (khanhduyvt0101/workflows, 110 stars), Airtable Automation (claude-office-skills/skills, 498 stars), Automation Instructions (deusXmachina-dev/memorylane, 121 stars) and n8n Expression Syntax (czlonkowski/n8n-skills, 6.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains N8n Workflow Patterns?

davila7 (a GitHub user) maintains it in davila7/claude-code-templates, which has 32,432 GitHub stars. The repository holds 477 skills in this directory. The repository was last updated on October 7, 2026.

Source: davila7/claude-code-templates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.