Safety and contract checks for AI-generated n8n workflows
Find a file
2026-07-22 11:43:41 -03:00
.agents/plugins Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
.github Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
bin Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
docs Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
examples Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
plugins/vibeflow Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
schemas Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
src Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
test Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
.gitignore Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
.vibeflow.json Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
action.yml Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
CHANGELOG.md Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
CODE_OF_CONDUCT.md Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
CONTRIBUTING.md Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
LICENSE Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
package-lock.json Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
package.json Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
README.md Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00
SECURITY.md Rebuild Vibeflow as an n8n safety gate 2026-07-22 11:43:41 -03:00

Vibeflow

CI License: MIT

Safety and contract checks for AI-generated n8n workflows.

Vibeflow answers one question before deployment: does this workflow deserve to reach production?

It inspects exported n8n JSON for embedded secrets, dangerous nodes, exposed webhooks, missing failure paths, absent idempotency, unsafe AI paths, unbounded execution, and risky retries.

Vibeflow is not another workflow builder or MCP server. It is a deterministic quality gate for workflows built by people or agents.

Quick start

npx --yes github:domfelipe/vibeflow-n8n#v0.8.0 check workflow.json

Or from a checkout:

node bin/vibeflow.mjs check workflow.json

A safe workflow exits 0. Blocking findings exit 1; invalid usage exits 2.

✖ examples/unsafe-support-agent.workflow.json (Unsafe support agent)
  ERROR VF001 [Send response] Literal secret-like value
  ERROR VF002 [Run Shell] Host-level node is blocked
  ERROR VF006 [AI Agent] No upstream kill switch

Checked 1 workflow(s): 3 error(s), 8 warning(s)

Run the reproducible fixtures:

node bin/vibeflow.mjs check examples/safe-support-agent.workflow.json
node bin/vibeflow.mjs check examples/unsafe-support-agent.workflow.json --fail-on never

Policies

ID Default Check
VF000 error Valid n8n workflow JSON
VF001 error Literal credentials in node parameters
VF002 error Host-level command, SSH, and local-file nodes
VF003 warning Webhooks without supported auth and a credential reference
VF004 warning External actions without a connected failure path
VF005 warning Inbound side effects without an atomic idempotency claim
VF006 error AI entry paths that bypass a structural kill switch
VF007 warning AI paths without a reachable external human handoff
VF008 warning Workflows without a 1-3600 second execution timeout
VF009 warning Retries without idempotency, bounds, or backoff

Static analysis cannot prove runtime correctness. Configure severity and domain vocabulary in .vibeflow.json; document every waiver.

Use --locked in untrusted CI. It rejects disabled or downgraded rules, changed vocabulary, and removal of default banned node types. The bundled GitHub Action always enables it.

Automation

vibeflow check workflow.json --format json
vibeflow check workflow.json --format sarif --output vibeflow.sarif
vibeflow check workflows/ --fail-on warning

Directories are searched recursively for *.workflow.json files.

GitHub Action

- uses: actions/checkout@v4
- uses: domfelipe/vibeflow-n8n@v0.8.0
  with:
    path: workflows/
    output: vibeflow.sarif

Codex plugin

codex plugin marketplace add domfelipe/vibeflow-n8n

Install Vibeflow from the Plugins Directory, then ask:

Use $vibeflow to audit this n8n workflow and fix blocking findings.

Boundaries

No hosted service, new MCP server, workflow generation, telemetry, secret collection, or live n8n mutation. The CLI uses only the Node.js 20+ standard library.

Documentation

v0.8.0 is the first executable release. The original documentation prototype is preserved at legacy-v0.7.0.

MIT licensed.