javascript-actions

javascript-actions is a skill for Claude Code from mendixlabs/mxcli. It costs 53 tokens per session (2,046 once invoked), scanned A, original, Apache-2.0.

A guide for creating and using Mendix JavaScript actions, which are custom functions that run in a browser or on a device. They are called from nanoflows, Mendix's client-side workflows, rather than microflows, which run on the server.

In plain words
What is it for?
Use it to add browser APIs, network requests, geolocation, DOM behavior, or existing marketplace capabilities to a Mendix app through JavaScript actions.
Why use it?
It clarifies where client-side code belongs and keeps browser or device behavior separate from server-side Java actions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to add browser APIs, network requests, geolocation, DOM behavior, or existing marketplace capabilities to a Mendix app through JavaScript actions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mendixlabs/mxcli/javascript-actions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mendixlabs/mxcli --skill javascript-actions
Clone the repo
git clone --depth 1 https://github.com/mendixlabs/mxcli

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for javascript-actions

README.md
[![agentmods](https://agentmods.dev/badge/skills/mendixlabs/mxcli/javascript-actions/github.svg)](https://agentmods.dev/skills/mendixlabs/mxcli/javascript-actions)
Your own site
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/javascript-actions"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/javascript-actions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for javascript-actions

Your own site · 80×15
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/javascript-actions"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/javascript-actions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,046 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.02046
Opus 5.5 $0.00021 $0.00818
Sonnet 5.5 $0.00011 $0.00409
Haiku 4.5 $0.00005 $0.00205

Measured 1mo ago against content hash 24881c1dbc0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

javascript-actions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/mendix/javascript-actions/SKILL.md · 236 lines

How it starts

The opening of the file, as written. The whole thing — 236 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Find it fast

sed -n '<from>,<to>p' SKILL.md one section rather than reading the file; ./mxcli syntax <topic> answers how do I write this for a fraction of either.

lines section
31-39 When to Use This Skill
40-57 Overview
58-103 Syntax
104-165 Examples
166-177 Calling from a nanoflow
178-202 The generated .js file
203-211 Inspecting
212-220 Validation Checklist
221-230 Common Errors
231-235 Related Documentation

Mendix JavaScript Actions Skill

Guidance for creating, calling, and dropping JavaScript actions in Mendix projects with MDL. JavaScript actions hold custom client-side logic and are called from nanoflows (not microflows — those use Java actions).

When to Use This Skill

  • Adding client-side behaviour (browser/native APIs, DOM, fetch, geolocation, …)
  • Logic that must run on the device rather than the server
  • Calling an existing JavaScript action from a nanoflow
  • Wrapping a marketplace/native capability exposed as a JS action

For server-side custom code, use Java actions instead (see java-actions).

Overview

A JavaScript action is two things on disk:

  1. The model unit (JavaScriptActions$JavaScriptAction).
  2. A source file javascriptsource/<Module>/actions/<Name>.js containing an exported async function.

CREATE JAVASCRIPT ACTION writes both. The MDL body you provide becomes the function body (between the BEGIN USER CODE / END USER CODE markers), so it normally returns a Promise.

The body lives only in the .js file, so commit javascriptsource/ with the .mpr and mprcontents/; a commit of the model alone gives a clone an action with no logic. exec names each file it writes there (Wrote javascriptsource/<module>/actions/<Name>.js (JavaScript action body; commit it with the model)) and ends with Files changed outside the model: N (…).

Read the full file on GitHub · 236 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +6 lines 24881c1dbc0f
  2. 1mo ago Changed · +3 lines 3fdd70ab76db
  3. 1mo ago Changed · +10 lines 3bddb1d0de9e
  4. 1mo ago Changed · +19 lines 5d09625a437b
  5. 2mo ago Changed · +5 lines 84fa3bb1ac38
  6. 2mo ago Changed 66f64e705778
  7. 3mo ago First seen · 193 lines · 53 tokens per session scan A c3a059a56cf3

Subscribe to this mod's changes

javascript-actions is a skill published in the GitHub repository mendixlabs/mxcli (146 stars, last pushed yesterday), licensed Apache-2.0. It adds 53 tokens to every session and 2,046 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

javascript-actions compared with skills from other repositories

javascript-actions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
javascript-actionsmendixlabs/mxcliSkill146yesterdayApache-2.0A53Claude Code
stuckQwenLM/qwen-codeSkill31ktodayApache-2.0A57Claude Code
e2e-testingQwenLM/qwen-codeSkill31ktodayApache-2.0A94Claude Code, Codex
structured-debuggingQwenLM/qwen-codeSkill31ktodayApache-2.0A85Claude Code, Codex
desktop-brand-builderQwenLM/qwen-codeSkill31ktodayApache-2.0A68Claude Code, Codex
batch-apiQwenLM/qwen-codeSkill31ktodayApache-2.0A51Claude Code
workflow-creatorQwenLM/qwen-codeSkill31ktodayApache-2.0A49Claude Code, Codex