write-nanoflows

write-nanoflows is a skill for Claude Code from mendixlabs/mxcli. It costs 58 tokens per session (6,607 once invoked), scanned A, original, Apache-2.0.

A guide to writing Mendix nanoflows, which are client-side workflows for tasks such as navigation, form checks, device features, and offline data.

In plain words
What is it for?
Use it when creating nanoflows, explaining validation errors, or choosing between a nanoflow and a microflow.
Why use it?
It explains nanoflow restrictions and helps distinguish client-side work from microflows, which run on the server.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when creating nanoflows, explaining validation errors, or choosing between a nanoflow and a microflow.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mendixlabs/mxcli/write-nanoflows
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 write-nanoflows
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 write-nanoflows

README.md
[![agentmods](https://agentmods.dev/badge/skills/mendixlabs/mxcli/write-nanoflows/github.svg)](https://agentmods.dev/skills/mendixlabs/mxcli/write-nanoflows)
Your own site
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/write-nanoflows"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/write-nanoflows/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 write-nanoflows

Your own site · 80×15
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/write-nanoflows"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/write-nanoflows.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,607 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.00058 $0.06607
Opus 5.5 $0.00023 $0.02643
Sonnet 5.5 $0.00012 $0.01321
Haiku 4.5 $0.00006 $0.00661

Measured 17d ago against content hash 776bbfed804f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-nanoflows 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 17d 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/write-nanoflows/SKILL.md · 696 lines

How it starts

The opening of the file, as written. The whole thing — 696 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
35-44 When to Use This Skill
45-83 Changing an Existing Nanoflow
84-102 When to Use a Nanoflow vs a Microflow
103-117 Key Differences from Microflows
118-141 Nanoflow Structure
142-150 Naming Convention
151-219 Supported Activities
220-489 Real-World Patterns
490-560 NanoflowCommons JavaScript Actions Reference
561-599 Disallowed Activities
600-603 Return Type Restrictions
604-648 Error Handling in Nanoflows
649-656 Security (GRANT/REVOKE)
657-669 Management Commands
670-680 Common Mistakes
681-695 Validation Checklist

Mendix Nanoflow Skill

This skill provides guidance for writing Mendix nanoflows in MDL syntax. Nanoflows share syntax with microflows but execute client-side with restricted capabilities.

When to Use This Skill

Use this skill when:

  • Writing CREATE NANOFLOW statements
  • Debugging nanoflow validation errors
  • Understanding nanoflow restrictions vs microflows
  • Building mobile or offline-capable features

If you're not sure whether the logic belongs in a nanoflow or a microflow, read the next section first. The mirror lives in write-microflows — keep both copies in sync.

Changing an Existing Nanoflow

Choose the mode by who owns the nanoflow (choose-edit-mode):

  • Created by your MDL scripts, and not edited in Studio Pro since: edit the script (or fresh describe output) and re-run create or modify.
  • Authored in Studio Pro: prefer alter nanoflow X { insert/replace/drop … } (targets by output variable, caption or statement pattern). create or modify of describe output also works as a patch: an unchanged definition writes nothing, and an inserted, replaced or dropped statement (at the top level or in an if branch) is spliced in, leaving every other node, merge and curve as stored — a statement changed into one of the same kind (an expression, a where, a member value, an argument) edits the stored activity, which keeps its $ID and its action's (reported edited in place); a guard clause (if … then return; end if;) too, its return a new end event, and so is the return ending a new activity's error handler; a changed return value or if condition is set on the stored end event or decision, and a body without a trailing return means the stored end. The header (documentation, return type, parameters added, retyped or — when unused — removed) is set on the stored document, and a stated @position or @start moves the stored node, keeping its flows. Under mdl 1; a node at a stated position is never moved to make room: a statement inserted without @position where the gap is too small is refused, naming the node in the way — give the new statements an @position, or leave @position and @merge off the statements after them. A change it cannot patch — anything inside a loop body or error handler, a redrawn @anchor/@curve, any other return added or taken away — rebuilds the whole nanoflow under mdl 0 (warning MDL-V1-REBUILD: element IDs renumbered, merges removed, curves reset) and is refused under mdl 1;.
  • Rebuilding deliberately: drop nanoflow X; and create nanoflow X … in ONE script. The drop's module-role grants (and the unit's ID and folder) carry only to a create later in the same script or REPL session; a drop in one run and a create in the next loses every grant execute. drop prints the roles it removed and the grant to restore them.
  • Changing something inside a loop body (either owner) : an activity replaced by one of the same kind (new values, same statements in the same order) is spliced in place by both create or modify and alter. Anything else — a statement added, removed, reordered or moved — neither can make: replace the whole loop, addressed by its handle, with the body as it should be (replace loop $Item in $Items with begin loop $Item in $Items begin … end loop; end;). Everything outside the loop keeps its $IDs, positions and curves; the loop and its body are rebuilt. For a nested loop, replace the outer one.

Read the full file on GitHub · 696 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. 17d ago Changed · +3 lines 776bbfed804f
  2. 1mo ago Changed · +2 lines 35e2d970e866
  3. 1mo ago Changed · +3 lines c60da9cbb987
  4. 1mo ago Changed · +1 lines 53d8bddbd715
  5. 1mo ago Changed · +26 lines 4810f548e53a
  6. 1mo ago Changed · +11 lines 4065df00c89b
  7. 1mo ago Changed · +5 lines cdb889ecea97
  8. 2mo ago Changed · +10 lines 98798e03c1f9
  9. 2mo ago Changed · +20 lines c84e7c5da07d
  10. 2mo ago First seen · 615 lines · 58 tokens per session scan A b2d2048ac0fd

Subscribe to this mod's changes

write-nanoflows is a skill published in the GitHub repository mendixlabs/mxcli (146 stars, last pushed yesterday), licensed Apache-2.0. It adds 58 tokens to every session and 6,607 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-09-03.

Related

write-nanoflows compared with skills from other repositories

write-nanoflows next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-nanoflowsmendixlabs/mxcliSkill146yesterdayApache-2.0A58Claude 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