n8n-workflow-automation
Skill56 starsChanged 9 months agoMITView on GitHub
设计并输出 n8n 工作流 JSON,具备健壮的触发器、幂等性、错误处理、日志记录、重试机制和人机协作审核队列。当您需要可审计且不会静默失败的自动化时使用。
2 other projects use a version of this.
Adopted by
Most recently taken up by
- AlekseiUL/heisenberg-teamtheir own version, first seen Jun 6, 2026
- AlekseiUL/heisenberg-team-GPTtheir own version, first seen May 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- AlekseiUL/heisenberg-team★ 17same name
- AlekseiUL/heisenberg-team-GPT★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository89 other files it gives its agents.
- skills/proactive-agent-zh/assets/AGENTS.mdAGENTS.md
- skills/ai-persona-os-zh/CLAUDE.mdCLAUDE.md
- skills/ui-ux-pro-max-zh/CLAUDE.mdCLAUDE.md
- admapix-zhSkill
- agent-autonomy-kit-zhSkill
- agent-browser-zhSkill
- ai-business-search-zhSkill
- personaSkill
- answer-overflow-zhSkill
- api-gateway-zhSkill
- automation-workflows-zhSkill
- auto-updater-zhSkill
- baidu-search-zhSkill
- brave-search-zhSkill
- brave-web-search-zhSkill
- browser-use-zh-cloudSkill
- browser-use-zh-open-sourceSkill
- browser-use-zh-remote-browserSkill
- browser-use-zhSkill
- byteroverSkill
- caldav-calendar-zhSkill
- capability-evolverSkill
- clawddocs-zhSkill
- clawhub-zhSkill
- content-ideas-generator-zhSkill
- desktop-control-zhSkill
- edgeone-clawscan-zhSkill
- elite-longterm-memory-zhSkill
- evolver-zhSkill
- Excel / XLSXSkill
- filesystem-management-zhSkill
- find-skills-zhSkill
- freeride-zhSkill
- frontend-design-zhSkill
- githubSkill
- gmail-zhSkill
- gog-zhSkill
- gongwen-writingSkill
- gongwen-writing-zhSkill
- gongwenSkill
- humanize-ai-text-zhSkill
- humanizer-zhSkill
- imap-smtp-email-zhSkill
- markdown-converter-zhSkill
- marketing-mode-zhSkill
- marketing-skillsSkill
- mcporterSkill
- memory-setupSkill
- minara-zhSkill
- model-usageSkill
- moltguardSkill
- moltguard-zhSkill
- multi-search-engineSkill
- nano-banana-pro-prompts-recommend-skillSkill
- nano-banana-pro-zhSkill
- nano-pdf-zhSkill
- news-summary-zhSkill
- notionSkill
- obsidianSkill
- ontologySkill
- The first 60 shown.
The file
Files
n8n 工作流自动化 - 重试、日志记录和审核队列
目的
设计并输出 n8n 工作流 JSON,具备健壮的触发器、幂等性、错误处理、日志记录、重试机制和人机协作审核队列。
使用场景
- 触发条件:
- 构建一个每周一运行并发送合规摘要的 n8n 工作流
- 为此工作流添加错误处理和重试机制,以及失败审核队列
- 创建一个记录每次运行并向跟踪器写入状态行的 webhook 工作流
- 使此 n8n 流程具有幂等性,以便重新运行时不会重复记录
- 为此工作流配备审计日志和人工审批步骤
- 不适用场景:
- 您需要不使用 n8n 的纯代码自动化(请使用脚本/CI 技能)
- 您需要绕过安全控制或隐藏审计轨迹
- 您需要购买或推荐违禁物品/服务
输入
- 必需:
- 工作流意图:触发器类型 + 计划/时区 + 成功标准
- 目标:结果写入位置(email/Drive/Sheet/DB)和必需字段
- 可选:
- 要修改的现有 n8n 工作流 JSON
- 示例负载 / 示例记录
- 去重键定义(什么使记录唯一)
- 示例:
- Cron:周一 08:00 Europe/London;发送摘要邮件 + Drive 上传
- Webhook:接收 JSON;路由到文件夹
输出
- 默认(只读):工作流设计规范(节点、数据契约、失败模式)
- 如果明确请求:
workflow.json(n8n 可导入 JSON)+runbook.md(来自模板) 成功 = 工作流具有幂等性、记录每次运行、安全重试,并将失败路由到审核队列
工作流程
- 明确触发器:
- Cron/webhook/手动;计划/时区;并发预期
- 定义数据契约:
- 输入模式、必需字段和验证规则
- 设计幂等性:
- 选择去重键和存储(DB/Sheet)以防止重试时重复
- 添加可观察性:
- 生成
run_id,记录开始/结束,存储状态行和错误详情
- 生成
- 实现错误处理:
- 每节点错误分支、带退避的重试和最终失败通知
- 添加人机协作(HITL)审核队列:
- 将失败项目写入队列(Sheet/DB)并需要审批才能重新处理
- "无静默失败"关卡:
- 如果计数/阈值失败,停止工作流并告警
- 输出:
- 如果请求 JSON:生成可导入的 n8n 工作流 JSON + 运行手册
- 停止并询问用户,如果:
- 目标系统未知
- 不存在去重键
- 凭证策略(环境变量)未指定
- 工作流需要尚未批准的特权访问
输出格式
如果输出 n8n 工作流 JSON,需符合:
{
"name": "<workflow name>",
"nodes": [ { "name": "Trigger", "type": "n8n-nodes-base.cron", "parameters": {}, "position": [0,0] } ],
"connections": {},
"settings": {},
"active": false
}同时使用 assets/runbook-template.md 输出 runbook.md。
安全与边界情况
- 默认只读;仅在明确请求时输出工作流 JSON
- 不要在 JSON 中包含密钥;仅引用环境变量/凭证名称
- 包含审计日志 + 失败通知;避免可能静默丢失数据的工作流
- 优先最小权限:仅调用所需的 API 并最小化范围
示例
- 输入:"每周一 cron,发送合规摘要,重试失败。"
输出:节点图 +
workflow.json(包含 Cron → Fetch → Aggregate → Email),加上错误分支到审核队列 - 输入:"记录运行并写入状态行的 Webhook。" 输出:Webhook → Validate → Process → Append status row;错误时 → log + notify + queue
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

