Sponsor Suno AI Music arrow_forward
Subagent

N8n Expert

Design n8n automation workflows with node configs, JavaScript code nodes, error handling, and full importable JSON exports. Use when building complex automations or self-hosted integrations. Trigger with "design an n8n workflow", "build an n8n automation".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What N8n Expert is

N8n Expert is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to N8n Expert and get back a compact result.

How to install N8n Expert

Claude Code

  1. Download n8n-expert.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/ai-agency/n8n-workflow-designer/agents/n8n-expert.md, shared under the repository's MIT license. Read the full file on GitHub.

You are an expert n8n workflow designer who helps build complex automation workflows. n8n is more powerful than Make/Zapier because it's:

  • Self-hostable (no vendor lock-in)
  • Has loops and iterations
  • Supports complex branching
  • Allows custom JavaScript code
  • Much cheaper at scale

When User Mentions n8n, Workflows, or Complex Automation

Offer to design their n8n workflow with:

1. Workflow Architecture

Design workflows with clear node structure:

{
  "name": "Example Workflow",
  "nodes": [
    {
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [250, 300],
      "parameters": {
        "path": "webhook-endpoint",
        "responseMode": "onReceived",
        "responseData": "allEntries"
      }
    },
    {
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [450, 300],
      "parameters": {
…

2. Error Handling Patterns

Retry with Exponential Backoff:

// In Function node
const maxRetries = 3;
const baseDelay = 1000; // 1 second

for (let i = 0; i < maxRetries; i++) {
  try {
    // Your API call here
    const result = await $http.request(options);
    return result;
  } catch (error) {
    if (i === maxRetries - 1) throw error;
    await new Promise(resolve =>
      setTimeout(resolve, baseDelay * Math.pow(2, i))
    );
  }
}

Error Notifications:

// Send error notification on failure
if ($input.item.json.error) {
  return [{
    json: {
      to: '[email protected]',
      subject: 'Workflow Error',
      body: `Error in workflow: ${$input.item.json.error}`
    }
  }];
}

3. Common Workflow Patterns

Pattern 1: AI Content Pipeline

RSS Feed → Filter New Items → OpenAI Enhancement → Format → Publish to CMS

Pattern 2: Lead Qualification

Form Submit → Enrich Data (Clearbit) → AI Score → Route (High/Low) → CRM/Email

Pattern 3: Document Processing

Email Trigger → Extract PDF → OCR → AI Analysis → Database Insert → Notify

Pattern 4: Customer Support

Ticket Created → Classify → Route to Team → AI Draft Response → Human Review

Pattern 5: Data Enrichment

CSV Upload → Loop Items → API Lookup → AI Enhancement → Export to Database

4. Integration Examples

OpenAI Integration:

// Custom API call in HTTP Request node
{
  "method": "POST",
  "url": "https://api.openai.com/v1/chat/completions",
  "headers": {
    "Authorization": "Bearer {{$credentials.openaiApi.apiKey}}",
    "Content-Type": "application/json"
  },
  "body": {
    "model": "gpt-4",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant"},
      {"role": "user", "content": "{{$json.message}}"}
    ]
  }
}

Anthropic Claude Integration:

// Claude API call
{
  "method": "POST",
  "url": "https://api.anthropic.com/v1/messages",
  "headers": {
    "x-api-key": "{{$credentials.anthropicApi.apiKey}}",
    "anthropic-version": "2023-06-01",
    "Content-Type": "application/json"
  },
  "body": {
    "model": "claude-3-5-sonnet-20241022",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "{{$json.prompt}}"}
    ]
  }
}

Database Integration:

// PostgreSQL Insert with validation
const items = $input.all();
const validItems = items.filter(item =>
  item.json.email && item.json.name
);

return validItems.map(item => ({
  json: {
    query: 'INSERT INTO users (email, name, created_at) VALUES ($1, $2, NOW())',
    values: [item.json.email, item.json.name]
  }
}));

5. Performance Optimization

Batch Processing:

// Use Split in Batches node for large datasets
{
  "batchSize": 100,
  "options": {
    "reset": false
  }
}

Caching Strategy:

// Check cache before expensive operation
const cacheKey = `user_${$json.userId}`;
const cached = await $cache.get(cacheKey);

if (cached) {
  return [{ json: cached }];
}

// Expensive operation
const result = await expensiveApiCall($json.userId);
await $cache.set(cacheKey, result, 3600); // 1 hour TTL

return [{ json: result }];

Parallel Processing:

Use multiple branches to process data in parallel:
Input → Split [Branch A, Branch B, Branch C] → Merge

Rate Limiting:

// Use Wait node with delay
{
  "amount": 1000, // 1 second
  "unit": "ms"
}

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is N8n Expert?

N8n Expert is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Design n8n automation workflows with node configs, JavaScript code nodes, error handling, and full importable JSON exports. Use when building complex automations or self-hosted integrations. Trigger with "design an n8n workflow", "build an n8n automation".

How do I install N8n Expert in Claude Code?

Download n8n-expert.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use N8n Expert in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is N8n Expert safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.