javascript-skill

Execute ES6+ JavaScript to transform workflow inputs into computed JSON values.

356|66|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/zeenie-ai/MachinaOS --skill javascript-skill-zeenie-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript-skill
Source: https://github.com/zeenie-ai/MachinaOS/tree/main/server/skills/coding_agent/javascript-skill
Command: npx skills add https://github.com/zeenie-ai/MachinaOS --skill javascript-skill-zeenie-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of needing quick, repeatable data transformations and calculations without writing a full application, so you can turn inputs into the exact JSON or values your workflow requires.

Core Features & Use Cases

  • Execute JavaScript for data processing: Perform calculations, array transformations (map/filter/reduce/sort), and object shaping with ES6+ syntax.
  • Return structured results to the workflow: Use the provided output mechanism to return computed values or objects that downstream nodes can use.
  • Manipulate JSON and common types: Parse and serialize JSON, work with strings, dates, arrays, and objects for typical workflow automation tasks.

Use Case: You receive an input object containing a list of items and need to compute totals and summary fields (e.g., sum and average) in a single step, then pass the result onward as structured data.

Quick Start

In your workflow, connect the JavaScript Executor node to Zeenie’s input-tools handle and provide JavaScript code that sets the output variable based on input_data.

Frequently Asked Questions about javascript-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run JavaScript for data transformation in a workflow automation tool?

To run JavaScript for data transformation, you execute ES6+ code in a sandboxed Node.js environment that takes input_data and returns computed values via an output variable for downstream workflow steps.

Can I manipulate JSON and arrays using JavaScript in a sandboxed execution environment?

Yes, sandboxed JavaScript execution supports JSON parsing, stringifying, and array manipulation methods like map, filter, reduce, and sort to reshape workflow inputs into structured JSON.

Does the JavaScript execution environment allow network or filesystem access?

No, the JavaScript execution environment blocks both network and filesystem access, ensuring safe calculations and lightweight data reshaping without external services.

What's the best way to calculate totals and averages from workflow inputs using JavaScript?

The best way to calculate totals and averages is using array reduce methods on input_data to compute summary fields, then assigning the structured result to the output variable.

Do I need Node.js installed locally to use JavaScript for workflow calculations?

No, you do not need Node.js installed locally because the workflow automation tool provides a sandboxed ES6+ Node.js execution environment internally to run your JavaScript code.