n8n-workflow-automation

n8n-workflow-automation is a skill for Claude Code, Codex from CraftOS-dev/CraftBot. It costs 54 tokens per session (948 once invoked), scanned A, original, MIT.

A guide for designing n8n workflows, which are automated chains of connected steps, as JSON configuration files.

In plain words
What is it for?
It is for building scheduled or webhook-triggered automations that write to services such as email, drives, spreadsheets, or databases.
Why use it?
It helps workflows handle retries, duplicate runs, failures, logging, and human approval instead of failing silently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/craftos-dev/craftbot/n8n-workflow-automation
Any agent
npx skills add CraftOS-dev/CraftBot --skill n8n-workflow-automation
Clone the repo
git clone --depth 1 https://github.com/CraftOS-dev/CraftBot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for n8n-workflow-automation

README.md
[![agentmods](https://agentmods.dev/badge/skills/craftos-dev/craftbot/n8n-workflow-automation.svg)](https://agentmods.dev/skills/craftos-dev/craftbot/n8n-workflow-automation)
Your own site
<a href="https://agentmods.dev/skills/craftos-dev/craftbot/n8n-workflow-automation"><img src="https://agentmods.dev/badge/skills/craftos-dev/craftbot/n8n-workflow-automation.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 948 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00948
Opus 5 $0.00027 $0.00474
Sonnet 5 $0.00011 $0.00190
Haiku 4.5 $0.00005 $0.00095

Measured 2d ago against content hash b82537f81d72, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

n8n-workflow-automation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/n8n-workflow-automation/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

n8n workflow automation with retries, logging, and review queues

PURPOSE

Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues.

WHEN TO USE

  • TRIGGERS:
    • Build an n8n workflow that runs every Monday and emails the compliance summary.
    • Add error handling and retries to this workflow, plus a review queue for failures.
    • Create a webhook workflow that logs every run and writes a status row to a tracker.
    • Make this n8n flow idempotent so it does not duplicate records when it reruns.
    • Instrument this workflow with audit logs and a human approval step.
  • DO NOT USE WHEN…
    • You need code-only automation without n8n (use a scripting/CI skill).
    • You need to bypass security controls or hide audit trails.
    • You need to purchase or recommend prohibited items/services.

INPUTS

  • REQUIRED:
    • Workflow intent: trigger type + schedule/timezone + success criteria.
    • Targets: where to write results (email/Drive/Sheet/DB) and required fields.
  • OPTIONAL:
    • Existing n8n workflow JSON to modify.
    • Sample payloads / example records.
    • Definition of dedup keys (what makes a record unique).
  • EXAMPLES:
    • Cron: Monday 08:00 Europe/London; send summary email + Drive upload
    • Webhook: receive JSON; route to folders

OUTPUTS

  • Default (read-only): a workflow design spec (nodes, data contracts, failure modes).
  • If explicitly requested: workflow.json (n8n importable JSON) + runbook.md (from template). Success = workflow is idempotent, logs every run, retries safely, and routes failures to a review queue.

WORKFLOW

  1. Clarify trigger:
    • Cron/webhook/manual; schedule/timezone; concurrency expectations.
  2. Define data contract:
    • input schema, required fields, and validation rules.
  3. Design idempotency:
    • choose dedup key(s) and storage (DB/Sheet) to prevent duplicates on retries.
  4. Add observability:
    • generate run_id, log start/end, store status row and error details.
  5. Implement error handling:
    • per-node error branches, retry with backoff, and final failure notification.
  6. Add human-in-the-loop (HITL) review queue:
    • write failed items to a queue (Sheet/DB) and require approval to reprocess.
  7. “No silent failure” gates:
    • if counts/thresholds fail, stop workflow and alert.
  8. Output:
    • If asked for JSON: produce importable n8n workflow JSON + runbook.
  9. STOP AND ASK THE USER if:
    • destination systems are unknown,
    • no dedup key exists,
    • credential strategy (env vars) is not specified,
    • the workflow needs privileged access not yet approved.

Read the full file on GitHub · 95 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 95 lines · 54 tokens per session scan A b82537f81d72

Subscribe to this mod's changes

n8n-workflow-automation is a skill published in the GitHub repository CraftOS-dev/CraftBot (380 stars, last pushed 3d ago), licensed MIT. It adds 54 tokens to every session and 948 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

artifact-storage-policy

管理 Codex 交付物的專案識別、Google Drive/GitHub 路由、檔名、儲存位置與回讀驗證;凡工作報告、外部保存、交付成果或新 repository 選擇涉及遠端儲存時使用。.

a275618631/codex-antigravity-collaboration · 68 tokens

output-contract

任務完成前需要一致交付格式、修改清單、測試結果、待確認事項、或使用者明確要求「完成後列出」時使用。適用於程式碼、設定、文件、skills、同步與多步驟任務收尾;本 Skill 不取代內容 readiness 或風險檢查。.

a275618631/codex-antigravity-collaboration · 79 tokens

save-to-notion

將 Codex 對話、回答、決策、工作流程與可重用知識整理到使用者的 Notion 知識 Hub。當使用者明確說「save to notion」,或要求保存、歸檔、整理、分類、版本化、更新到 Notion 時使用;若只是要求產出一般報告或文件,除非另有指定,不要觸發 Notion 實際寫入。.

a275618631/codex-antigravity-collaboration · 100 tokens

delivery-manifest

每次產生、修改、上傳或寄送檔案後,產生統一的交付物索引 (Delivery Manifest),並嚴格控管 Google Drive 上傳路徑。.

a275618631/codex-antigravity-collaboration · 49 tokens

batch-file-creation

How autonomous coding agents scaffold multi-file features and directories in a single execution turn using local generator scripts, cutting round-trip latency by 90%.

alivirgo/Major-AI-Skills · 33 tokens

productivity-start

Initialize the productivity system and open the dashboard.

frumu-ai/tandem · 12 tokens