N8n Workflow Lifecycle Official
n8nOfficialPublished by n8n
- Skill
- Workflow
- Automation and integrations
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured six-stage methodology for managing n8n workflows from initial planning to production handoff. It emphasizes rigorous validation, proper documentation, and clear communication to ensure workflows are maintainable, reliable, and correctly configured. The framework covers technical best practices like node grouping, naming conventions, and folder management, while also addressing the human-in-the-loop requirements for credential verification and production readiness.
What it does
- Guides users through a six-stage lifecycle: Plan, Build, Validate, Test, Publish, and Handoff.
- Provides strict protocols for node naming, workflow descriptions, and visual organization using sticky notes and node groups.
- Enforces validation checks using both automated tools and manual verification steps before publishing.
- Manages folder organization and MCP access settings for workflow discoverability.
- Defines clear handoff procedures to ensure users can operate and monitor workflows in production.
- Outlines specific anti-patterns to avoid, such as incorrect assumptions about parallel execution or skipping testing.
When to use it
- When starting a new n8n workflow project from scratch.
- When organizing or refactoring existing workflows to improve readability and maintainability.
- Before deploying any workflow to a production environment.
- When troubleshooting workflows that are failing or behaving unexpectedly.
- When coordinating with users to ensure they have the necessary context to operate a finished workflow.
Advantages
- Reduces the likelihood of production failures by enforcing a mandatory testing and validation sequence.
- Improves long-term maintainability through standardized naming and documentation practices.
- Ensures workflows are properly organized and discoverable within the n8n instance.
- Clarifies the division of responsibility between the agent and the user, particularly regarding credentials and MCP access.
- Prevents common pitfalls like silent connection drops or incorrect assumptions about workflow execution order.
Usage examples
- “Design a new workflow to sync customer data from Postgres to Slack.”
- The agent initiates the 'Plan' stage, asking for specific requirements and checking for existing sub-workflows before drafting the structure.
- “I need to ship this workflow to production, is it ready?”
- The agent runs the validation checklist, verifies connections, asks the user to confirm credentials, and performs a test run before proceeding to publish.
- “Organize my messy workflow into something readable.”
- The agent applies node groups to logical steps, adds descriptive sticky notes, and updates the workflow description to capture the 'why' behind the design.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/n8n-io/n8n-workflow-lifecycle-official/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip n8n-workflow-lifecycle-official.zip -d .agents/skills
Documentation by n8n
n8n Workflow Lifecycle
The six stages
PLAN. Gather requirements, ask clarifying questions, search for existing workflows / sub-workflows that already do this.
BUILD. Write SDK code (with skills: subworkflows, node-config, expressions, code-nodes; readability section below). Use
validate_node_configas a side-channel for iteration, debugging, or small single-node edits: clean per-parameter errors without full-graph noise. Not a replacement forvalidate_workflowin VALIDATE.VALIDATE.
validate_workflow+get_workflow_detailsfor connections, then have the user verify per-node credentials and create anything you couldn't (missing credentials, folders, etc).TEST.
test_workflowwithprepare_workflow_pin_data; iterate until output matches intent.PUBLISH.
publish_workflowonly after stages 3 and 4 are clean.HANDOFF. Production handoff: how to trigger it, what it returns, what to watch, what they should know to use it well.
Skipping a stage produces workflows that look done but break in production, or solve the wrong problem entirely. Three most common skips:
Build before plan. "User asked for X, I'll start coding" without confirming what X means, whether the same logic already exists as a sub-workflow, or which folder/project it belongs in. Cheaper to ask one clarifying question than to rebuild after.
Test before user-side wire-up. Running
test_workflowbefore the user has verified credentials per node hits the wrong service or 401s. Get the user-side setup done as part of VALIDATE.Publish without test. Validation passing means the SDK is well-formed; it does NOT mean the workflow is correct.
Non-negotiables
Validate AND verify before publish. Run
validate_workflowon the SDK code, thenget_workflow_detailsafter every create/update to check theconnectionsobject. Validation alone misses silently dropped wires.validate_node_configis a separate per-node iteration tool, not a replacement for this step.Surface known limitations to the user. If folders, MCP access, or any other limitation blocks the request, say so explicitly and propose a path. Don't silently dump workflows at the wrong location or report success on a request you couldn't fully fulfill.
Ask before testing when not-auto-pinned downstreams have side effects.
test_workflowauto-pins triggers, credentialed nodes, and HTTP Request nodes. Everything else (Code, Edit Fields, If, Wait, Execute Command, file ops, sub-workflow calls, Data Tables) runs for real. Ask the user before running if any of those would fire user-visible side effects. Seereferences/TESTING.md.
Strong defaults
Test before publish with
test_workflow+prepare_workflow_pin_data. Seereferences/TESTING.mdfor mocking by trigger type, pinning individual nodes, and the side-effect surface. Looser for internal one-off scripts you watch run.Always include a
descriptiononcreate_workflow_from_code. 1-2 sentences capturing what and why. See "Readability" below.
Validation isn't enough
validate_workflow runs schema and shape checks: missing parameters, type errors, references to non-existent nodes. It does not catch:
The
.to()-inside-.add()connection trap (silent dropped wires)Fan-outs collapsed to a single connection
Merge index off-by-one
Error outputs wired without
onError: 'continueErrorOutput'Parameters that are syntactically valid but semantically wrong (e.g., wrong sheet ID, wrong column name)
Validation is necessary but not sufficient. The real gate is:
validate_workflowpasses.get_workflow_detailsreturns aconnectionsobject that matches your intent.test_workflowproduces the right output on representative pinned data.
Only then call publish_workflow.
For the full pre-publish checklist, see references/VALIDATION_CHECKLIST.md.
Execution model
n8n workflows execute sequentially, left-to-right, top-to-bottom. Branches that visually appear parallel on the canvas (fan-out from one source to multiple downstreams) run one after the other, ordered by the target nodes' Y-position on the canvas. There is no automatic concurrency.
Practical consequences:
A fan-out to three slow HTTP calls runs in series; total latency is the sum, not the max.
"Parallel" branches share workflow state in execution order; downstream consumers see whatever the last branch left.
For real concurrency, dispatch sub-workflows with
mode: 'each'andwaitForSubWorkflow: false. Seen8n-loops-officialandn8n-subworkflows-official.
This is platform behavior, not an SDK quirk. Don't design fan-outs around assumed parallelism.
Naming conventions
Bad names compound: a workflow that's hard to find six months from now gets duplicated.
For full conventions (verb-noun patterns, capitalization, prefixes), read references/NAMING_CONVENTIONS.md. Short version:
Workflows: verb-first, scoped.
Send weekly customer reportnotCustomer report sender.Nodes: describe what they do in this workflow, not the node type.
Fetch active customersnotPostgres1.Sub-workflows: plain descriptive name (
Parse RFC2822 date); carry the category in tags (subworkflow, a domain tag,tool), not a name prefix.search_workflows({ tags })filters on them. Seen8n-subworkflows-officialreferences/NAMING_AND_DISCOVERY.md.Tags: the AI-side discovery mechanism (n8n 2.27.0+). The MCP lists (
list_workflow_tags), filters (search_workflows({ tags })), and attaches them (update_workflowaddTags/removeTags, auto-creating unknown names). Lowercase, 2-4 per workflow. Seereferences/NAMING_CONVENTIONS.md.
Readability: descriptions, node groups, sticky notes, conventions
Four levers carry the readability load, grouping from 7 boxes on and the other three from about 5 nodes on:
Workflow
description: capture the why, including AI-derived context. Two sentences: what it does and why it exists. Most importantly, capture context you had during conversation that won't otherwise survive into the file (the constraint that drove the design, why this approach over the alternative, the user's reason for asking). Otherwise it dies with the chat.Node groups: the only way to group nodes. Named frames, one per logical step (
Validate input,Enrich order,Notify). Organization only, members run inline (reuse/isolation is a sub-workflow's job). Readreferences/NODE_GROUPS.mdbefore creating or editing any group, and after any save that reported a group problem. The three things to know up front:When: more than 7 boxes with every group collapsed, typically into 3-5 groups. A box is the trigger, each group, and each ungrouped node; sub-nodes and sticky notes don't count.
A group must be a connected, trigger-free section with at most one member facing out in each direction, with an Agent's sub-nodes all in or all out. Members are node names, not ids.
An invalid group op is skipped, not fatal, and unrelated edits can silently delete a valid existing group, so a save that looks clean can have lost one. The exception is a description over 145 characters: that rejects the whole
update_workflowcall. Read the group fields on every create and update, and repair before reporting done.
Sticky notes: annotate, don't group. Grouping is the node group's job (above). Stickies carry what a group name can't: a callout, a TODO, a warning. Read
references/STICKY_NOTES.mdbefore placing one.On create, always anchor.
sticky(content, [nodes], { color })derives the box from the nodes it wraps, after layout. Coordinates guess at a canvas that doesn't exist yet; omitting both is worse, since the fallback centers the note under the whole graph and only dodges other stickies, never nodes. If you can't name the nodes a note is about, it doesn't belong on the canvas.Three roles, and the anchor set follows from the role. A stage zone anchors one stage's nodes; a callout anchors the single node it warns about; a gray title band anchors the whole flow and is rare, only for a canvas you're deliberately leaving ungrouped.
Scale: under ~5 nodes, none. From 5 to 7 boxes, one zone per stage. Over 7, node groups section and document the canvas via their descriptions, and you anchor nothing to a grouped node: those positions are collapsed-chip slots, so the note draws over the expanded group and matches nothing collapsed.
Zones need room the derived box doesn't give. Declare
height: 272for a one-row zone,464for a branch fan (add 32 for Message an Agent v2+). Never declare a width. Then, once the canvas is final, widen every zone in one batchedupdate_workflow:x = min(node.x) - 56,width = span + 112. Computed from the nodes, so re-running is harmless, but it's a finishing step, not per-edit.update_workflowhas no sticky op. A sticky there is anaddNodeofn8n-nodes-base.stickyNotewithcontent,width,height,colorinparameters; an omittedpositionmeans[0, 0].Content and color:
### Titlecarrying the point, plus one short line. Only the top 64px clears the nodes, so never add height for more text; longer prose goes in nodenotesor the workflowdescription.color1-7 stands for what happens there: green creates or involves a person, red is destructive or irreversible, blue is routing and transformation, gray is documentation. A user preference, then nearby workflows, outrank that.
Node
notesfor non-obvious config. Explain why a workaround exists or a Code node does what it does. Don't annotate obvious nodes.
Plus two notes:
Match existing project conventions before introducing your own. Skim a couple of nearby workflows via
search_workflows+get_workflow_detailsand mirror the sticky palette, naming, and description style.Layout runs on create, never on update.
create_workflow_from_codelays out every node that doesn't carry an explicitposition, so omit them and let it. Setting some and not others is the bad case: yours are honored and the rest are laid out around them, which is how nodes end up stacked.update_workflowruns no layout at all, so anything you add sits exactly where you put it.
Folder management
On a registered instance the MCP creates and organizes folders: create_folder, update_folder (rename/move), move_workflows_to_folder, and a folderId on create_workflow_from_code for create-time placement. search_folders resolves names to IDs.
If the user wants a folder that doesn't exist, create it, don't build at the root and report success. If the folder tools are absent, the instance isn't registered: folders are blocked in the UI too, so ask the user to register (free, in Settings) rather than create the folder by hand. No tool deletes a folder, and projects are read-only.
For the full protocol, read references/FOLDER_LIMITATIONS.md.
Per-workflow MCP access
Each workflow has an availableInMCP flag. The default depends on who created it:
Workflows created via the MCP (
create_workflow_from_code) default to MCP-accessible. No toggle step needed: you can find them viasearch_workflowsand operate on them right away.Workflows created in the n8n UI can default to off. Until the user flips the toggle, the workflow is invisible to you.
The #1 case where this bites: the user built a workflow manually in the UI and now wants you to inspect or edit it, but you can't see it. Before assuming it doesn't exist or you're searching the wrong project, ask the user to confirm MCP access is enabled.
Sub-workflows called via MCP: the caller can use them as code-level sub-workflows without the toggle. To invoke as MCP-exposed tools, the toggle is required (and is on by default for MCP-created sub-workflows).
For the full case-by-case guide and user-facing message, read references/MCP_ACCESS_PER_WORKFLOW.md.
User-side wire-up (part of stage 3)
There are things the user has to do that you can't, and they need to be done before testing, otherwise the test fires against the wrong credential, hits a missing folder, or 401s. Surface these as a short list during VALIDATE, before TEST:
Verify credentials per node.
newCredential('Label')is cosmetic. n8n auto-assigns the most recently edited credential of the right type, which silently picks the wrong one when the user has multiples (prod vs staging Gmail, two API keys). Tell them: "open every node that uses a credential and confirm the right one is selected." Seen8n-credentials-and-security-officialnon-negotiable #2.Create missing credentials. If the user pasted a secret in chat or the workflow needs an account that doesn't exist yet, name the credential type and have them create it in the UI.
Register for folders (only if the tools are missing). Folder tools need a registered instance. If they're absent, the user registers (free, in Settings) before you can create or place folders; otherwise you handle folders yourself. See
references/FOLDER_LIMITATIONS.md.MCP access toggle for user created workflows. Workflows you create via the MCP are MCP-accessible by default. The toggle only matters when the test depends on a UI-created workflow being callable from the MCP. See
references/MCP_ACCESS_PER_WORKFLOW.md.
Don't proceed to TEST until these are confirmed done.
Handoff: production handoff (stage 6)
After publish_workflow and a clean test, the workflow is technically live, but the user still needs enough context to actually use it in production. Treat this like the freelancer-to-customer handoff: short, structured, and oriented toward how they'll operate it from here.
What to include:
How it triggers. Webhook URL (live now that it's published), schedule cadence + timezone, manual trigger button, sub-workflow caller, whichever applies. For webhooks, hand them the URL.
What it returns / where the data goes. One sentence. "Writes new rows to the
customerstable," "responds JSON to the caller," "fires the on-call Slack channel."How to invoke it for real, with an example. "Hit the webhook with
curl -X POST <url> -d '{...}'," "trigger manually from the UI," "wait until 09:00 UTC for the first scheduled run."What to watch. Failure modes that surface as alerts/errors, rate-limit ceilings on upstream services, and where to look first when something breaks (executions tab, error workflow, audit log, etc.).
MCP access status. If you created the workflow via the MCP, it's already MCP-accessible. Let the user know they can revoke access in Settings if they want to lock it down. If they hand-built it in the UI, they need to flip MCP access on for any other agent to call it.
Anything still pending on their side. Secret rotation if a token was pasted in chat, follow-up wiring you couldn't reach, known TODOs left in stickies.
Keep it tight: half a dozen bullets, not a wall of text. The user shouldn't have to ask "ok, what now?"
Reference files
| File | Read when |
|---|---|
references/NAMING_CONVENTIONS.md | Naming a new workflow, sub-workflow, or node |
references/NODE_GROUPS.md | Before creating or editing any node group, or after a save reported a skipped or removed group |
references/STICKY_NOTES.md | About to add, move, or resize a sticky note on either tool |
references/FOLDER_LIMITATIONS.md | User mentions a folder, project structure, or wants workflows organized |
references/MCP_ACCESS_PER_WORKFLOW.md | Building a workflow that you or another agent will call via MCP |
references/VALIDATION_CHECKLIST.md | Just finished a workflow and about to call publish_workflow |
references/REVIEW_CHECKLIST.md | Reviewing or auditing an existing workflow (any age, any author). Severity-tiered findings, distinct from the pre-publish validation checklist |
references/TESTING.md | About to run test_workflow or execute_workflow, mocking trigger input, side-effect protocol |
Anti-patterns
| Anti-pattern | What goes wrong | Fix |
|---|---|---|
Calling publish_workflow without validating | Broken workflows reach production | Validate, verify connections, then test |
| Creating workflows at root because the requested folder doesn't exist | Workflows get lost, and the user has to drag them manually | Surface the limitation before building |
Generic node names (HTTP Request1, Set2) | Workflows are unreadable a month later | Rename to describe the action |
Missing description on create_workflow_from_code | Workflow invisible in search, no context for maintainers | Always include 1-2 sentences |
| Asking the user to flip the MCP access toggle on a workflow you created via the MCP | Wastes their time, agent-created workflows default to MCP-accessible | Only mention the toggle for UI-created workflows, or when the user wants to revoke MCP access on an agent-created one |
Running test_workflow on a workflow with side-effecty non-pinned downstreams without asking | Real Data Table write, real sub-workflow side effects, real Execute Command output, etc. Triggers + credentialed nodes + HTTP get pinned, nothing else does | Ask first. See references/TESTING.md. |
| No node groups on a canvas over 7 top-level boxes | Reader has to read every node to find what they want | Group each logical step. See references/NODE_GROUPS.md |
Reporting a create or update as done without reading its group fields (skippedGroups on create; skippedOperations / removedGroups on update) | A group op was silently skipped, or an existing group was deleted by an unrelated edit, and the save still looked successful | Check them on every call and repair. See references/NODE_GROUPS.md |
| Sticky note used to fake a group, or sticky-of-every-color | Grouping is the node group's job / color becomes pure noise | Group with a node group; reserve stickies for callouts, one color per category |
Hand-positioned stickies on create_workflow_from_code | Coordinates are chosen before layout runs, so the note lands away from the nodes it describes | Pass the nodes to sticky(content, [nodes]) and let the box be derived. See references/STICKY_NOTES.md |
description: "Sends Slack." | Adds nothing visible from the trigger and Slack node | Include why + AI-derived context: "Sends weekly summary to founders. Replaces manual report that kept getting skipped." |
| Designing fan-out branches as if they execute concurrently | n8n runs fan-out branches sequentially, top-to-bottom by Y-position. Total runtime is the sum of branches, not the max | For real concurrency, dispatch via Execute Workflow with mode: 'each' + waitForSubWorkflow: false. See n8n-subworkflows-official "Fire-and-forget parallelization" |
Files
- ATTRIBUTION.mdAdded by AutoGineer868 B
- LICENSELicence file added by AutoGineer11.0 KiB
- SKILL.md19.1 KiB
- references/FOLDER_LIMITATIONS.md1.7 KiB
- references/MCP_ACCESS_PER_WORKFLOW.md1.6 KiB
- references/NAMING_CONVENTIONS.md5.6 KiB
- references/NODE_GROUPS.md5.3 KiB
- references/REVIEW_CHECKLIST.md38.5 KiB
- references/STICKY_NOTES.md9.4 KiB
- references/TESTING.md8.0 KiB
- references/VALIDATION_CHECKLIST.md10.7 KiB
references/STICKY_NOTES.md
Sticky notes
Read before placing or editing one. The two entry points take different shapes, and only the create path computes geometry for you.
| Tool | Shape | Geometry |
|---|---|---|
create_workflow_from_code | SDK sticky(content, nodes?, config?) | Derived from the anchors, after layout |
update_workflow | addNode with type: 'n8n-nodes-base.stickyNote' | Yours to compute, in full |
On create: anchor, never position
const note = sticky('### Enrich order\nCustomer lookup feeds the tier multiplier used by pricing.', [lookup, price], { color: 5 });
workflow('id', 'name').add(lookup.to(price)).add(note);The anchor list only sizes and places the note. Listing a node does not add it, and wrapping nodes does not add the sticky: all of it still needs .add(...).
Anchored, the note is a background zone. Layout runs first, then the box wraps wherever the anchors landed:
x = anchors.x - 32 # STICKY_PADDING
y = anchors.y - 96 # STICKY_PADDING + STICKY_HEADER_HEIGHT
width = anchors.width + 64 # STICKY_PADDING both sides
height = anchors.height + 128 # both sides, plus the headersnapped to the 16px grid. The 64px of headroom is where the title renders clear of the nodes, which then draw on top of the note. That is the intended look, not an overlap bug. Anchors are recorded by node id, so renaming a member is safe.
Every sticky gets anchors. A hand-written position is guessing: coordinates are fixed before layout runs. Omitting both is worse, because the fallback centers the note under the whole graph (pre-layout every node sits at the origin, so it counts as covering all of them) then pushes it down past any sticky it hits. That is how notes end up floating below the flow, related to nothing. If you cannot name the nodes a note is about, it does not belong on the canvas.
Where a note goes: pick the role, the role picks the anchors
The anchor set is the placement decision, so picking it at random is what makes a canvas look randomly annotated. Three roles, each fixing its own anchors:
| Role | Anchors | Color | Title |
|---|---|---|---|
| Stage zone | every node of one stage | what the stage does, below | ### Stage name |
| Callout | the single node it is about | 3 red for a warning, else 1 yellow | ### Point, and nothing else: over a plain node the box is only 160px wide |
| Title band | every node in the flow | 7 gray | ## What this workflow is |
The band is rare: it only earns its place on a large canvas you are deliberately leaving ungrouped, since a grouped canvas gets its heading from the group names and a small one already has the workflow name in the breadcrumb. Nesting needs no care, because n8n z-orders stickies by area, largest behind.
A color is a symbol, not decoration. It stands for what happens where it sits, so a reader can decode a workflow from color alone. Decide each meaning once and hold it:
| 4 green | something is created, or a person is in the loop: form intake, approval gate, manual review |
| 3 red | destructive or irreversible: deletes, error paths, anything that pages a human, critical config |
| 5 blue | routing and data transformation, the neutral middle of a pipeline |
| 7 gray | the documentation layer: title band, reference panel |
| 2 gold | an outer frame |
| 6 purple | domain accents, sparingly |
| 1 yellow | the default, a note with no particular role |
Precedence: what the user asked for, then the palette in nearby workflows (search_workflows plus get_workflow_details), then the table. A convention the reader already knows beats a better one they do not.
How many, and at what scale
Count boxes the way the grouping rule does: the trigger, each group, and each ungrouped node.
Under about 5 nodes. None. The canvas reads in one glance; annotating it is noise.
5 to 7 boxes. One zone per stage, 2 to 4 of them.
Over 7 boxes. Node groups section it (
NODE_GROUPS.md) and document it through their owndescription. Anchor nothing to a grouped node: with groups present, layout places collapsed chips and packs members into chip-sized slots, so member positions are cramped (adjacent members can overlap) and are not what the reader sees. A note anchored to them draws over the expanded group and matches nothing collapsed. Stickies have almost nothing to do on a grouped canvas, which is correct.
Giving the zone room
The derived 32px measures the node box only. A node's name renders below it, and a URL subtitle below that, so both hang off the edge. Two fixes, one at each step.
At create, declare a height (this keeps the derived width and position). Node boxes are 96 tall, rows 192 apart:
| Anchors | Derived | Declare |
|---|---|---|
| one row | 224 | height: 272 |
| branch fan, two rows | 416 | height: 464 |
Each extra row adds 192 to both; Message an Agent v2 and up is 128 tall, so add 32.
Once the canvas is final, widen the zones. A declared width can't do this: it holds the left edge and grows right, eating the gutter. So read the node positions with get_workflow_details and set each zone absolutely, in one batched update_workflow:
zone.x = min(node.x) - 56
zone.width = max(node.x + node.width) - min(node.x) + 112Computing from the nodes rather than nudging the current box makes this idempotent, so a re-run is harmless. Still, run it once, at the end: it is a finishing step, not something to repeat after every edit.
That gives 56px sides and a 16px gutter. 56 is the ceiling. The subtitle overhangs its node by about 45px, and the 128px between node boxes splits as padding + gutter + padding. It also puts zone edges 8px off the 16px grid, which is deliberate: on-grid leaves only 48px sides (subtitle on the border) or a zero gutter (adjacent same-color zones merge). Nothing re-snaps on save; dragging one zone shifts it 8px.
The rules that still produce a mess
Declared size wins dimension by dimension.
{ width: 400 }keeps your width and takes the derived height. Give both and anchoring only positions it.A pinned note never moves, including out of another note's way. Pinned means an explicit
positionor anchors. Only free-floating notes are de-overlapped, and that pass walks them down past other stickies only, never past nodes. So a free note can land on nodes, and two anchored notes over interleaved runs overlap forever. Anchor each to a disjoint run.Stickies are invisible to layout. Nodes are never spread apart to make room.
Two zones cannot sit on vertically adjacent rows. A zone always reaches 96px above its anchors. Below them it reaches 32px at the derived height, or 80px once you declare the
height: 272above, so stacked zones need 128px of clear space between the node boxes, or 176px with the declared height. Dagre stacks sibling branchesNODE_Y_SPACINGapart, which is 96. Both numbers are larger than 96, so giving each branch of an If or Switch its own zone overlaps every time (by 32px, or 80px with the declared height) and both are pinned, so neither yields. Anchor the whole fan as one zone, or zone one branch and leave the other bare.Anchor whole stages, not single nodes. A note per node reprints the node names in a second typeface and buries the one callout that mattered.
On update: there is no sticky operation
update_workflow offers addNode, setNodePosition, and updateNodeParameters, and runs no layout pass. A sticky is an ordinary node:
{ "type": "addNode", "node": {
"name": "Note: retry policy", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1,
"position": [-320, 160],
"parameters": { "content": "### Retry policy\nThe API 429s above 10 rps.", "width": 480, "height": 240, "color": 3 }
}}content, width, height, and color live in parameters, not at the top level. An omitted position becomes [0, 0], dropping a 240x160 note at the origin on top of whatever is there.
To frame a run of nodes, build the box by hand. get_workflow_details gives positions but not sizes, and a position is the node's top-left, so you need dimensions too: a plain node is 96x96, one with configurable inputs 256x96, Message an Agent v2 and up 320x128.
left = min(x) top = min(y)
right = max(x + width) bottom = max(y + height)
sticky.x = left - 32 sticky.width = right - left + 64
sticky.y = top - 96 sticky.height = bottom - top + 128Round every value to a multiple of 16.
Content, and where the overflow goes
### for a zone or callout, ## for a title band, carrying the point rather than the node names under it: a reader can already see Set, If, Set. Then one short line.
One line is the budget, and it is a budget at the zone's width. Text renders from the top-left and only the top 64px clears the anchors, so more renders behind the nodes. A taller box just extends further behind them. A zone over one plain node is 96 + 64 = 160px wide, where even a short sentence wraps three ways, so single-node zones get a title and nothing else.
Prose that does not fit goes to node notes (why this node is configured this way: a retry policy, a rate limit, a workaround) or the workflow description (why the workflow exists). Neither competes for canvas space.
Constants
GRID_SIZE 16, DEFAULT_STICKY_SIZE 240x160, STICKY_PADDING 32, STICKY_HEADER_HEIGHT 64, NODE_Y_SPACING 96.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs an API key, Needs Node.js
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- n8n
- Publisher
- n8n (Official)
- Source
- n8n-io/skills · skills/n8n-workflow-lifecycle-official · commit 27b6b9f
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by n8n.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download n8n-workflow-lifecycle-official.zip