n8n-workflow-automation
Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you need an auditable automation that won’t silently fail.
About this skill
This AI agent skill specializes in generating n8n workflow definitions in JSON format, focusing on creating highly resilient and auditable automations. It ensures that generated workflows include critical features like robust triggers, idempotency to prevent duplicate actions, comprehensive error handling, detailed logging, automated retries for transient failures, and human-in-the-loop review queues for exception management. Users can leverage this skill to automate a wide range of tasks, from scheduled compliance reports to real-time webhook processing. It's particularly valuable when designing workflows that must operate reliably without silent failures, such as those impacting data integrity or critical business processes. The skill ensures that every automation can be traced, failures are managed proactively, and human oversight is integrated where necessary. By using this skill, developers and automation specialists can save significant time in designing complex n8n workflows. It standardizes best practices for reliability and auditing, reducing the risk of automation failures and ensuring that even in complex scenarios, processes remain transparent and manageable. The explicit output of `workflow.json` and a `runbook.md` facilitates quick deployment and clear documentation.
Best use case
The primary use case is designing and implementing robust, auditable workflow automations using n8n, ensuring reliability, data integrity, and human oversight for critical business processes. It benefits automation engineers, developers, and operations teams who need to build dependable backend automations without extensive manual configuration of resilience features.
Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you need an auditable automation that won’t silently fail.
Users should expect a well-structured n8n `workflow.json` and a `runbook.md` that defines an automation which is idempotent, logs every run, safely retries, and routes failures to a review queue.
Practical example
Example input
Design an n8n workflow that runs every Monday at 8 AM London time. It should fetch sales data from a Google Sheet, generate a summary report, upload it to Google Drive, and email the report to 'sales@example.com'. Ensure it's idempotent, logs all runs, has retries, and routes any failures to a 'finance-review' queue.
Example output
```json
{
"nodes": [
{
"parameters": {
"mode": "everyWeekday",
"weekday": "monday",
"hour": "8",
"minute": "0",
"timezone": "Europe/London"
},
"name": "Cron Trigger",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"id": "trigger"
},
// ... other n8n nodes for Google Sheet read, data processing, Drive upload, email send ...
],
"connections": {},
"settings": {
"errorWorkflowId": "finance-review-queue-workflow-id",
"logAllRuns": true,
"retryOnFail": true,
"maxRetries": 5
},
"version": 1
}
```
```markdown
# Runbook for Sales Summary Workflow
## Overview
This workflow runs weekly to generate and distribute sales summaries. It includes error handling, retries, and human review for failures.
## Trigger
Cron: Every Monday at 08:00 Europe/London
## Data Flow
1. Fetch data from 'Sales Data' Google Sheet.
2. Process and summarize data.
3. Upload 'Sales Summary.pdf' to Google Drive folder 'Sales Reports'.
4. Email report to sales@example.com.
## Idempotency
Ensured by a unique report ID, preventing duplicate uploads/emails on rerun.
## Error Handling & Review
Failed runs are logged and directed to the 'finance-review-queue' n8n workflow for human intervention. Automated notifications are sent to the finance team upon review queue entry.
## Failure Modes & Recovery
* Google Sheet API failure: Workflow includes 3 retries with exponential backoff. Persistent failures trigger a review queue entry.
* Google Drive API failure: Similar retry logic, leading to review queue on prolonged failure.
```When to use this skill
- Build a scheduled n8n workflow for tasks like emailing compliance summaries or report generation.
- Add advanced error handling, retries, and a human review queue to an existing workflow.
- Create idempotent webhook workflows that log every run and prevent data duplication.
- Instrument workflows with audit logs and approval steps for regulated processes.
When not to use this skill
- When your automation needs are strictly code-based (e.g., Python scripts) without n8n.
- If the goal is to bypass security controls or obscure audit trails.
- For tasks involving the purchase or recommendation of prohibited items/services.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/n8n-workflow-automation-local-backup/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How n8n-workflow-automation Compares
| Feature / Agent | n8n-workflow-automation | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | easy | N/A |
Frequently Asked Questions
What does this skill do?
Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you need an auditable automation that won’t silently fail.
How difficult is it to install?
The installation complexity is rated as easy. You can find the installation instructions above.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Top AI Agents for Productivity
See the top AI agent skills for productivity, workflow automation, operational systems, documentation, and everyday task execution.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
SKILL.md Source
# 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.
## OUTPUT FORMAT
If outputting **n8n workflow JSON**, conform to:
```json
{
"name": "<workflow name>",
"nodes": [ { "name": "Trigger", "type": "n8n-nodes-base.cron", "parameters": {}, "position": [0,0] } ],
"connections": {},
"settings": {},
"active": false
}
```
Also output `runbook.md` using `assets/runbook-template.md`.
## SAFETY & EDGE CASES
- Read-only by default; only emit workflow JSON when explicitly requested.
- Do not include secrets in JSON; reference env vars/credential names only.
- Include audit logging + failure notifications; avoid workflows that can silently drop data.
- Prefer least privilege: call only required APIs and minimize scopes.
## EXAMPLES
- Input: “Cron every Monday, email compliance summary, retry failures.”
Output: Node map + `workflow.json` with Cron → Fetch → Aggregate → Email, plus error branches to review queue.
- Input: “Webhook that logs runs and writes status row.”
Output: Webhook → Validate → Process → Append status row; on error → log + notify + queue.Related Skills
n8n Workflow Mastery — Complete Automation Engineering System
You are an expert n8n workflow architect. You design, build, debug, optimize, and scale n8n automations following production-grade methodology. Every workflow you create is complete, functional, and follows the patterns in this guide.
Insurance Operations Automation
Comprehensive insurance operations framework for AI agents. Covers the full insurance lifecycle — underwriting, claims, policy management, renewals, compliance, and broker operations.
afrexai-business-automation
Turn your AI agent into a business automation architect. Design, document, implement, and monitor automated workflows across sales, ops, finance, HR, and support — no n8n or Zapier required.
Accounts Payable Automation Framework
You are an AP process optimizer. When the user describes their payable workflows, vendor relationships, or payment processes, generate a complete accounts payable management framework.
swarm-workflow-protocol
Multi-agent orchestration protocol for the 0x-wzw swarm. Defines spawn logic, relay communication, task routing, and information flow. Agents drive decisions; humans spar.
google-workspace-automation
Design Gmail, Drive, Sheets, and Calendar automations with scope-aware plans. Use for repeatable daily task automation with explicit OAuth scopes and audit-ready outputs.
docs-pipeline-automation
Build repeatable data-to-Docs pipelines from Sheets and Drive sources. Use for automated status reports, template-based document assembly, and scheduled publishing workflows.
agentic-workflow-automation
Generate reusable multi-step agent workflow blueprints. Use for trigger/action orchestration, deterministic workflow definitions, and automation handoff artifacts.
agent-autonomy-kit
Stop waiting for prompts. Keep working.
Meeting Prep
Never walk into a meeting unprepared again. Your agent researches all attendees before calendar events—pulling LinkedIn profiles, recent company news, mutual connections, and conversation starters. Generates a briefing doc with talking points, icebreakers, and context so you show up informed and confident. Triggered automatically before meetings or on-demand. Configure research depth, advance timing, and output format. Walking into meetings blind is amateur hour—missed connections, generic small talk, zero leverage. Use when setting up meeting intelligence, researching specific attendees, generating pre-meeting briefs, or automating your prep workflow.
obsidian
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli. And also 50+ models for image generation, video generation, text-to-speech, speech-to-text, music, chat, web search, document parsing, email, and SMS.
Obsidian CLI 探索记录
Skill for the official Obsidian CLI (v1.12+). Complete vault automation including files, daily notes, search, tasks, tags, properties, links, bookmarks, bases, templates, themes, plugins, sync, publish, workspaces, and developer tools.