Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

n8n Output Regression

БесплатноБез исполняемых скриптовНе проверен

Run real n8n output regression tests with complete JSON fixtures and expected item counts, ordered IDs, fields or full JSON. Use when a successful workflow…

bluccaот blucca190 установок в других каталогах

Об этом скилле

n8n output regression

Turn the intended output into a saved contract, run it on real n8n, and keep the same case when fixing the workflow. This uses the free, AI-led n8n-check project.

1. Establish the contract

Read the workflow export and the task's expected behavior. Pick:

  • A fixture boundary: the node whose output is replaced by the complete batch of input JSON objects.
  • An output node: the executed transformation whose result matters.
  • The expected count, ordered IDs/field values, or complete JSON objects. Use the user's requirement or an approved golden result; review exported pins before adopting them as expectations.

Keep every input item in the fixture, including a useful distractor. Request the missing expected behavior when the task leaves it open. For a transformation between external systems, stop after its output; reads and final delivery keep separate integration contracts. Independently reachable sibling branches remain in the slice.

2. Draft and review the case locally

Node 24+ runs the versioned generator. The commands in this section read/write local JSON; n8n execution happens in section 3. Draft a case from the export's pins:

npx --yes @blucca/[email protected] init workflow.json \
  --input "Read invoices" --assert "Prepare notification" \
  --stop-after "Prepare notification" --out workflow.case.json

Replace these node names with the selected names from the actual export. Review the draft's readiness messages, edit the fixture/expectation, and retain version, name, input, mocks, and assertions. input.items contains plain JSON objects; the runner wraps them as n8n items.

For a two-invoice task whose required ordered IDs are INV-42, INV-43, a field-and-count contract is:

{
  "version": 1,
  "name": "Keep both invoice IDs before delivery",
  "input": {
    "node": "Read invoices",
    "items": [
      { "invoiceId": "INV-42", "totalCents": 65000 },
      { "invoiceId": "INV-43", "totalCents": 12050 }
    ]
  },
  "stopAfter": "Prepare notification",
  "mocks": [],
  "assertions": [{
    "node": "Prepare notification",
    "count": 2,
    "pluck": "json.invoiceId",
    "equals": ["INV-42", "INV-43"]
  }]
}

Use full-object equals for notification text/amounts too; the complete invoice case checks both exact messages. Arrays preserve order and duplicates; object-key order is ignored.

3. Execute the reviewed contract

A. Your existing n8n editor — versioned local generation

npx --yes @blucca/[email protected] editor-test workflow.json workflow.case.json \
  --out n8n-editor-test.json

This emits a separate inactive workflow locally using the published generator. Review its fixture, retained nodes and expected-output oracle, import it into your n8n editor, then Execute workflow. The original export stays unchanged.

The generated Check expected output branch returns status: "passed" or throws on a mismatch. Leave it below the tested branch: it runs last, including when zero items skip downstream nodes. Editor tests cover local JSON transforms, v1 execution order, and one incoming connection per node. Five native controls and their actual results.

B. CLI or CI — network-isolated execution

Merge/loops/waits and HTTP mocks use this route for a self-contained slice. Test saved-ID child calls as a self-contained child/downstream export; a complete call graph needs its referenced-workflow setup separately.

Build the pinned runner image, then run from the directory containing your test export and case:

git clone --depth 1 --branch v0.1.9 https://github.com/blucca/n8n-check n8n-check-tool
docker build -t n8n-check:0.1.9 n8n-check-tool
docker run --rm --network none -v "$PWD:/work" n8n-check:0.1.9 \
  workflow.json workflow.case.json --out /work/regression-results --json

On Linux, add --user "$(id -u):$(id -g)" to docker run if your ID differs from the image's default 1000. GitHub Action route.

The runner executes the selected slice with fresh fixture input and cleared output pins. HTTP mocks test the actual Request node's method, body and retry behavior; actual provider state/delivery use separate integration checks.

4. Read the result, fix, and rerun

For test execution (init writes a draft; editor-test writes a test workflow):

  • Exit 0: the contract passed.
  • Exit 1: regression or execution failure; read checks, error, and the first expected/actual mismatch.
  • Exit 2: setup/configuration error; fix the reported setup before evaluating the output.

Keep the case fixed while editing the workflow. Verify the check is active with one controlled wrong expected ID/count, then restore the approved expectati

Полный SKILL.md на ClawHub

Установить n8n Output Regression в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл n8n Output Regression?

Run real n8n output regression tests with complete JSON fixtures and expected item counts, ordered IDs, fields or full JSON. Use when a successful workflow loses rows, changes recipients or text, or when preserving output across a workflow edit or version upgrade.

Как установить скилл n8n Output Regression?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл n8n Output Regression запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить n8n Output Regression с