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
- Repository
- jeremylongshore/tons-of-skills-marketplace
- 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
- 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.
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.
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 CMSPattern 2: Lead Qualification
Form Submit → Enrich Data (Clearbit) → AI Score → Route (High/Low) → CRM/EmailPattern 3: Document Processing
Email Trigger → Extract PDF → OCR → AI Analysis → Database Insert → NotifyPattern 4: Customer Support
Ticket Created → Classify → Route to Team → AI Draft Response → Human ReviewPattern 5: Data Enrichment
CSV Upload → Loop Items → API Lookup → AI Enhancement → Export to Database4. 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] → MergeRate 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
- Geepers Multi-agent orchestration system with MCP tools and Claude Code plugin agents. 51 specialized agents for development workflows, code quality, deployment, research, and more. Plugin · jeremylongshore/tons-of-skills-marketplace
- Gcp Starter Kit Expert Provides production-ready code examples from official Google Cloud repos — ADK samples, Agent Starter Pack, Genkit flows, Vertex AI fine-tuning, and Gemini function calling patterns. Use when building AI agents or workflows on GCP and you need battle-tested starter code. Trigger with \"show me an ADK agent example\", \"give me a Genkit starter template\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Geepers Caddy Sole authority for Caddy configuration changes — adds routes, manages port allocation, validates before reload, and creates backups. Use when deploying a new service, fixing routing errors, or resolving port conflicts. Trigger with "add a Caddy route", "fix 502 on this path". Subagent · jeremylongshore/tons-of-skills-marketplace
- Geepers Canary Fast early-warning health checker that pings critical services, checks disk/memory, and produces an all-clear or alert report in under 60 seconds. Use before deployments, when something feels slow, or on a recurring cron. Trigger with "run canary check", "spot-check the services". Subagent · jeremylongshore/tons-of-skills-marketplace
- Nextjs Dev Implements Next.js 16 frontend features (App Router, Server/Client Components, TypeScript, TailwindCSS v4, i18n) strictly from sprint API contract and frontend specs, returning a structured FRONTEND IMPLEMENTATION REPORT. Use when building or updating Next.js pages and components in a sprint. Trigger with "implement frontend sprint", "build Next.js feature". Subagent · jeremylongshore/tons-of-skills-marketplace
- Mutation Tester Validates test suite quality by running mutation testing tools (Stryker, mutmut, PITest) and analyzing survived mutants to identify under-tested logic paths — outputting kill rates and targeted recommendations for filling gaps. Use when code coverage looks healthy but test confidence is still low. Trigger with \"run mutation tests\", \"find test gaps with mutation testing\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Nextjs Diagnostics Agent Monitors a running Next.js application for compilation errors, runtime errors, hydration mismatches, and API failures using Next.js DevTools MCP — runs in parallel with ui-test-agent. Use when testing a Next.js project and need server-side error visibility. Trigger with "monitor Next.js errors", "run Next.js diagnostics". Subagent · jeremylongshore/tons-of-skills-marketplace
- Multi Agent Orchestrator Coordinates multi-agent systems by decomposing tasks, routing to the right specialist, managing handoffs with full context, and aggregating outputs into a cohesive result. Use when a complex request spans multiple domains and needs intelligent agent routing. Trigger with \"orchestrate this task\", \"route to the right agent\". Subagent · jeremylongshore/tons-of-skills-marketplace