Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/n8n workflow lifecycle official/VALIDATION_CHECKLIST
Reference · n8n workflow lifecycle official

VALIDATION_CHECKLIST

Part of n8n workflow lifecycle official. Install the skill and your agent reads this page when it needs the depth.

Pre-publish validation checklist

Run before every publish_workflow. The whole list. Skipping items is how broken workflows ship.

The checklist

1. validate_workflow passed

Run validate_workflow. Schema and shape errors must be zero. If validation fails, fix and re-validate.

If a failure points at a single node's params, validate_node_config on that node alone returns per-parameter errors without full-graph noise. For tool subnodes, set isToolNode: true. Best used as a per-node spot-check during BUILD.

2. Antipattern scan (the build-time discipline check)

Walk the workflow with these questions in mind. These are patterns that recur across builds even when relevant skills are loaded, so making this explicit catches them.

Set nodes:

Code nodes:

Merge nodes:

Fan-out branches:

DateTime nodes:

Sub-workflow triggers:

Message an Agent nodes (calling a first-class n8n Agent):

Data references:

Skipping it is how build-time slips slip past validation.

3. Error handling is wired

For workflows that are webhook-triggered, production-bound, or otherwise user-facing, every fallible node should have its error path handled. This isn't about catching bugs. It's about returning a clean response when an upstream is down.

Invoke n8n-error-handling-official if any of these are true:

For internal one-off scripts (manual trigger), error handling can be looser.

4. Credentials, not tokens in text fields

Walk every node config for tokens, API keys, or auth values pasted into text parameters. They should be referenced via the credential system.

If you find any, invoke n8n-credentials-and-security-official and migrate before publishing.

5. test_workflow produced expected output

Use prepare_workflow_pin_data, then test_workflow. Inspect outputs via get_workflow_execution.

Before running: test_workflow auto-pins triggers, credentialed nodes, and HTTP Request. Code, Edit Fields, If, Data Tables, Execute Command, file ops, and sub-workflow calls run for real. If any of those have user-visible side effects, ask the user before running. See TESTING.md for the side-effect protocol, mocking by trigger type, pinning individual nodes, and the post-run announce-what-was-pinned protocol.

Check:

Fix and re-test if anything's off.

6. Naming, descriptions, structure

Quick pass:

These don't block publish technically, but workflows without them rot faster.

7. Folder placement

If the user requested a specific folder, confirm via search_folders that the workflow ended up there. If the folder didn't exist, you should have surfaced that before building (FOLDER_LIMITATIONS.md). Don't silently dump at root.

8. MCP access (if applicable)

Workflows created via create_workflow_from_code default to MCP-accessible. No toggle step needed. Only ask the user to flip the toggle when:

See MCP_ACCESS_PER_WORKFLOW.md.

Order matters

Top-to-bottom. Items 1-4 are gates: failing any means the workflow shouldn't publish. Items 5-8 are quality checks: failing means the workflow ships and rots, but won't break immediately.

The most common skip is item 2 (the antipattern scan). It feels like polish, but it catches things validate_workflow doesn't.

What to do if something fails after publish

Post-publish is high-stakes: run every operation through the user. Once a workflow is published, it may be receiving real traffic, holding state, or being depended on by other systems. Do not take autonomous action: no publish_workflow, no unpublish_workflow, no update_workflow, no archive_workflow, no triggering executions to "see what happens." Surface the problem, propose the fix, and wait for explicit approval before each step. The guidance below is what to recommend to the user, not what to do without asking.

n8n keeps versions: get_workflow_details returns both versionId (the current draft) and activeVersionId (the version that's live). They diverge when you save changes via update_workflow. Those changes only go live on the next publish_workflow call. Saving is not publishing.

  1. Consider rolling back first. get_workflow_history lists saved versions (newest first); get_workflow_version fetches a known-good one, and restore_workflow_version re-applies it as the draft (or pass its versionId to publish_workflow to go straight live). (n8n 2.29.0+.) Rollback no longer needs the user to copy a versionId from the UI, but per the guardrail above, recommend it and let the user approve before you restore.
  2. Recommend unpublish_workflow only if no rollback target exists and the workflow is actively running and broken. A scheduled or webhook workflow with broken connections shouldn't keep firing. Surface the problem and the recommendation, let the user pull the trigger.
  3. Fix-forward path: update_workflow saves the draft, then publish_workflow makes it live. Two separate steps: update_workflow does NOT auto-publish, the change sits as an unpublished draft until publish_workflow runs against it. Re-run this checklist before the publish step. Don't trust that "just one fix" doesn't ripple.

A note on speed

The cost of skipping is higher than the cost of checking. Debugging a broken production workflow is much more time consuming, stressful, and can cause damage.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.