Claude Code n8n JavaScript Skill for Filtering Code Node Items
Choose an execution mode, read one item or the whole input batch, and package filtered data as n8n output items.
中文Install in Claude Code
Use Claude Code with the pinned skill and an n8n test workflow containing a Code node. Bring fictional inputs.
- Get the complete `cli-tool/components/skills/workflow-automation/n8n/n8n-code-javascript` directory from the pinned GitHub checkout.
- Copy it under the target project's `.claude/skills/`. Confirm `.claude/skills/n8n-code-javascript/SKILL.md`, open Claude Code at the project root, and call `/n8n-code-javascript`.
Example task
Supply three fictional registration items numbered 1, 2, and 3. Only 1 and 3 have confirmed set to true. Use all-items mode and return the matching IDs.What to check
Expect two output items with `json` objects for IDs 1 and 3. If nothing matches, expect an empty array.
Original SKILL.md on GitHub · Updated
Frequently asked question
Why does a plain string fail as a return value?
Workflow nodes exchange structured items. In all-items mode, return an array and place each record inside its item's `json` object.