N8n Workflow 标志

N8n Workflow

社区
mickpletcher
n8n-workflow

Design, build, or troubleshoot n8n automation workflows. Always trigger immediately when Mick mentions n8n, workflow nodes, automating a pipeline, or connecting services via n8n. Covers node selection, webhook patterns, Claude API integration, credential setup, Cloudflare Tunnel exposure, and Proxmox LXC deployment. Mick runs n8n on Proxmox CT 104 at 192.168.0.81:5678 with Cloudflare Tunnel for HTTPS.

概览

发布者mickpletcher
代码仓库AI-Skills
技能名称n8n-workflow
星标数
21
复刻数
3
附带文件
3
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 mickpletcher 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 N8n Workflow AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/mickpletcher/AI-Skills/tree/main/claude/skills/n8n-workflow
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mickpletcher/AI-Skills.git /tmp/AI-Skills
mkdir -p .claude/skills
cp -r /tmp/AI-Skills/claude/skills/n8n-workflow .claude/skills/n8n-workflow
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 N8n Workflow,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 N8n Workflow。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 N8n Workflow 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

n8n Workflow Builder

Intent

Design, build, and troubleshoot n8n workflows for Mick's self-hosted automation stack with practical node and deployment guidance.

Use When

  • The user explicitly asks for n8n-workflow.
  • The request matches the triggers or workflow described below.
  • The task benefits from a reusable, structured output instead of a one-off answer.

Do Not Use When

  • Do not use for unrelated automation tools, production changes without context, credential handling in plain text, or unsafe destructive workflow edits.
  • Required context is missing and cannot be reasonably inferred.
  • A more specific skill in this repo is a better match.

Constraints

  • Do not fabricate missing facts, measurements, dates, sources, or user context.
  • Keep output aligned with Mick's direct, practical communication style unless the skill says otherwise.
  • Preserve safety, legal, medical, financial, and operational boundaries stated in this file.
  • Prefer concise, usable output over broad explanation.

Design, build, or troubleshoot n8n automation workflows for Mick's self-hosted Proxmox environment.

Mick's n8n Stack

  • Instance: Proxmox LXC CT 104, static IP 192.168.0.81, port 5678
  • External access: Cloudflare Tunnel to an HTTPS subdomain
  • Primary use cases: morning briefing pipeline, trading alerts, RSS processing, Claude API orchestration, webhook receivers
  • Claude API integration: HTTP Request node to https://api.anthropic.com/v1/messages

Workflow Design Principles

  1. One trigger, one purpose: Keep workflows focused. Chain them with webhooks when needed.
  2. Error handling on every external call: Add an Error Trigger or use Continue on Fail with a downstream notification step.
  3. Credentials in the n8n credential store: Never hardcode API keys in nodes. Use named credentials.
  4. Use a Set node to normalize data: Clean up fields before passing data to downstream steps.
  5. Test with static data first: Pin node output during development and unpin for production.

Common Node Patterns

HTTP Request to Claude API

json
{
  "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": "use-your-current-claude-model",
    "max_tokens": 1024,
    "messages": [
      {
        "role": "user",
        "content": "={{ $json.prompt }}"
      }
    ]
  }
}

Extract the response with:

text
{{ $json.content[0].text }}

Webhook Trigger

  • Node: Webhook
  • Method: POST
  • Path: /your-endpoint-name
  • Authentication: Header auth with downstream IF validation of X-Webhook-Secret
  • External URL via Cloudflare: https://n8n.yourdomain.com/webhook/your-endpoint-name

Schedule Trigger

  • Node: Schedule Trigger
  • Common patterns:
    • Daily 6am: 0 6 * * *
    • Every 15 minutes: */15 * * * *
    • Weekdays only at 7am: 0 7 * * 1-5

RSS Feed Processing

text
Schedule Trigger
  -> HTTP Request (GET RSS feed URL)
  -> XML node (parse feed)
  -> SplitInBatches (process items)
  -> IF (filter by date or keyword)
  -> Set (normalize fields: title, link, pubDate, summary)
  -> Merge or Aggregate
  -> HTTP Request (Claude API for summarization)

Error Notification Pattern

text
[Any node with Continue on Fail enabled]
  -> IF (check {{ $json.error }} exists)
    -> True branch: HTTP Request to Slack, Teams, or Discord webhook
       Body: "Workflow failed: {{ $workflow.name }} | Error: {{ $json.error.message }}"

Workflow Review Mode

When the user shares an existing workflow (exported JSON, screenshot, or description) and asks whether it is solid, review it against these questions before suggesting changes:

  • Trigger choice: is the trigger right for the job? Polling schedules where a webhook exists waste runs; webhooks without secret validation are exposed.
  • Idempotency: if the workflow fires twice with the same input, does anything double: duplicate emails, double orders, repeated rows? Add a dedupe key check or upsert pattern where it matters.
  • Retries: do external calls retry transient failures, and is anything retried that must not be (payments, order placement)?
  • Failure visibility: when a node fails at 3am, does anyone find out? Every production workflow needs an error path that notifies.
  • Data normalization: are downstream nodes coupled to raw API shapes that will break on the next API change?

Report findings in priority order with the smallest fix for each, and say plainly when a workflow is fine as-is.

Node-By-Node Build Template

When the user wants exact wiring steps rather than a pattern sketch, deliver the build in this format, one entry per node:

text
Node N: [Node type] - [name to give it]
  Purpose: [one line]
  Key settings: [the non-default fields and their values]
  Connects from: [previous node and output branch]
  Test: [what to pin or run to verify before moving on]

End with the order to activate things: build with pinned data, unpin, run once manually, then enable the trigger.

Self-Hosted Operations

For Mick's CT 104 instance, treat these as part of any deployment-affecting change:

  • Secrets: keep the n8n encryption key (N8N_ENCRYPTION_KEY) backed up separately from the database backup; credentials are unrecoverable without it
  • Backups: back up ~/.n8n/ (SQLite database plus config) before n8n version updates; a vzdump of CT 104 before major upgrades is the cheap rollback
  • Versioning: export workflow JSON for anything important and keep it in a git repo; the n8n database is not a version control system
  • Promotion: test risky changes as a duplicated workflow with a manual trigger before swapping it into the scheduled or webhook slot, since this instance has no separate staging environment

Morning Briefing Pipeline Pattern

text
Schedule Trigger (6am weekdays)
  |- HTTP Request -> CoinGecko API (BTC, ETH prices)
  |- HTTP Request -> RSS feeds (tech news)
  `- HTTP Request -> Reddit API (r/algotrading, r/homelab)

Merge (all three branches)
  -> Set (combine into single prompt string)
  -> HTTP Request -> Claude API
     Prompt: "Summarize this morning's briefing: {combined_data}"
  -> Send Email, Slack, or Discord

Cloudflare Tunnel Config

Append an ingress entry to the existing cloudflared config when external webhook access is needed:

yaml
ingress:
  - hostname: n8n.yourdomain.com
    service: http://192.168.0.81:5678
  - service: http_status:404

Restart the tunnel after config changes:

bash
systemctl restart cloudflared

Proxmox LXC Maintenance

bash
# Check n8n service status
pct exec 104 -- systemctl status n8n

# View logs
pct exec 104 -- journalctl -u n8n -f

# Restart n8n
pct exec 104 -- systemctl restart n8n

# Update n8n
pct exec 104 -- npm update -g n8n

Credential Setup Reference

ServiceCredential TypeKey Fields
Anthropic ClaudeHeader authx-api-key
CoinGeckoNone for the free tierNone
AlpacaHeader authAPCA-API-KEY-ID, APCA-API-SECRET-KEY
RedditOAuth2client_id, client_secret
SMTP or emailSMTPhost, port, user, pass

Quality Checklist

  • Trigger node defined: schedule, webhook, or manual
  • Credentials stored in the n8n credential store
  • Error handling present on external HTTP calls
  • Set node used to normalize data between major steps
  • Claude API node extracts content[0].text
  • Webhook endpoints use secret header validation
  • Cloudflare Tunnel config updated when external access is needed

Help And Examples

If the user is not sure how to use this skill, asks what it needs, or asks for examples:

  • Explain in plain language what this skill can do.
  • Tell the user the minimum input needed for a useful first pass.
  • Show the example prompts below.
  • Offer the fastest next prompt the user can send.

Minimum useful input:

  • The workflow goal, trigger, inputs, and output or failure point.

Example prompts:

  • Use n8n-workflow to design an n8n flow that ingests a JSON file and sends a Teams alert.
  • Help me troubleshoot this n8n workflow that is failing after the HTTP request node.
  • Show me a sample prompt for asking this skill to build a workflow step by step.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

N8n Workflow AI 技能有什么作用?

Design, build, or troubleshoot n8n automation workflows. Always trigger immediately when Mick mentions n8n, workflow nodes, automating a pipeline, or connecting services via n8n. Covers node selection, webhook patterns, Claude API integration, credential setup, Cloudflare Tunnel exposure, and Proxmox LXC deployment. Mick runs n8n on Proxmox CT 104 at 192.168.0.81:5678 with Cloudflare Tunnel for HTTPS.

为什么在 TypingMind 中使用 N8n Workflow?

因为您只需安装一次,就能搭配任何模型使用。N8n Workflow 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 N8n Workflow?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/mickpletcher/AI-Skills/tree/main/claude/skills/n8n-workflow。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 N8n Workflow?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

N8n Workflow 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 N8n Workflow 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

N8n Workflow AI 技能免费吗?

是的。mickpletcher 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇