agentleFS
runxhqrunxhq/runx/skills/n8n-handoff/SKILL.md

n8n-handoff

Skill97 starsChanged 34 days agoApache-2.0View on GitHub

Validate a runx execution context and deliver a governed payload to an n8n Cloud workflow webhook once, with exact approval and the workflow's acknowledgement receipted.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use preflight for reviews, CI, and local harnesses.

    line 21
  2. Distinctive:

    When present, these fields must match the top-level inputs:

    line 40
  3. Distinctive:

    Only n8n Cloud hosts are reachable.

    line 55
  4. Very specific:

    Do not put raw provider credentials into payload or execution_context.

    line 59
  5. Very specific:

    If the workflow slug changes, update handoff_audience to the matching n8n:workflow:<slug> value.

    line 61

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

n8n Handoff

Hand off governed runx work to an n8n workflow without turning n8n into the authority holder.

This skill is for the outbound side of the n8n integration story. runx owns the policy decision, execution context, and receipt. n8n owns its workflow webhook, canvas, branching, fan-out, and downstream notifications.

Runners

  • preflight: validates and normalizes the handoff context without network.
  • send: validates the context and delivers it to the selected n8n workflow.

Use preflight for reviews, CI, and local harnesses; it never needs approval. The send runner first calls native control.prepare_handoff, which validates the execution identity and produces the canonical delivery envelope. It then runs n8n/workflow.invoke, which posts that envelope to https://<workspace>.app.n8n.cloud/webhook/<slug> after exact approval. The webhook takes no credential and n8n offers no way to read a delivery back, so the receipt records the workflow's answer with finality acknowledged, not a confirmed readback.

Execution context

execution_context must identify where the handoff came from. Include at least one of:

  • caller or caller_id
  • principal or principal_id
  • workflow, workflow_id, workflow_ref, or source_workflow
  • upstream_execution_id or upstream_run_id

When present, these fields must match the top-level inputs:

  • platform
  • event_id
  • idempotency_key (bound to event_id)
  • handoff_scope
  • handoff_audience

The receiver gets the normalized delivery object, not an independently reassembled copy of these fields. That object carries the business payload, source context, exact handoff scope and audience, and idempotency binding the receiver must validate before starting its workflow.

Edge cases

  • Only n8n Cloud hosts are reachable. A self-hosted instance needs its own connector that declares its host.
  • Anyone who knows the webhook path can post to it, so have the workflow check handoff_scope and handoff_audience before acting.
  • Do not put raw provider credentials into payload or execution_context. Pass credential references or let runx hold the provider secret.
  • If the workflow slug changes, update handoff_audience to the matching n8n:workflow:<slug> value.
  • The receiver must dedupe by event_id before branching or sending downstream notifications.

Inputs

  • event_id (required): stable id for receiver-side dedupe.
  • execution_context (required): explicit caller/workflow context.
  • payload (required): business payload delivered to n8n.
  • handoff_audience (optional): defaults to n8n:workflow:runx-governed-effect.
  • webhook_host and workflow_slug (send runner): the n8n Cloud host and the webhook path segment that selects the workflow.

event_id is also the Runx mutation idempotency key and the value delivered as idempotency_key; there is no second retry identity that can drift from it.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.