write-microflows

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

A reference for writing Mendix microflows, which are server-side workflows that can control logic, change data, call services, and handle files.

In plain words
What is it for?
Use it when creating microflows or debugging errors involving activities, conditions, data operations, integrations, or control flow.
Why use it?
It explains the syntax and common mistakes that can make mxcli reject a microflow.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it when creating microflows or debugging errors involving activities, conditions, data operations, integrations, or control flow.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/write-microflows"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/write-microflows.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,009 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.00049 $0.06009
Opus 5 $0.00024 $0.03004
Sonnet 5 $0.00010 $0.01202
Haiku 4.5 $0.00005 $0.00601

Measured 5d ago against content hash aab119606fbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

write-microflows 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 5d 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-microflows/SKILL.md · 637 lines

How it starts

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

Mendix Microflow Skill

This skill provides comprehensive guidance for writing Mendix microflows in MDL (Mendix Definition Language) syntax.

Reference files

SKILL.md covers the shape of a microflow and the decisions. The detail lives beside it, and is worth opening when you hit one of these:

  • reference/control-flow.md — every form of if, case, split type, loop and while, plus error handling (try/custom handlers) and the @position / @merge / @anchor activity annotations.
  • reference/data-operations.md — create, change, commit, delete; list operations and aggregates; retrieve from database, association and list; XPath navigation.
  • reference/integration.mdrest call and send rest request, legacy SOAP, calling Java actions (including the empty argument and microflow-typed parameters), and file downloads.
  • reference/pitfalls.mdread this when mxcli check rejects something you believe is correct. The anti-patterns, the CE0111 duplicate-variable trap, the syntax that looks plausible and does not parse, and the Studio Pro errors each one produces.

When to Use This Skill

Use this skill when:

  • Writing CREATE MICROFLOW statements
  • Debugging microflow syntax errors
  • Converting Studio Pro microflows to MDL
  • Understanding microflow control flow and structure

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

When to Use a Microflow vs a Nanoflow

Scenario Use
Querying the database Microflow
Calling REST services or external actions Microflow
Running Java actions Microflow
File generation or download Microflow
Transactional commits (rollback on error) Microflow
Background scheduled logic Microflow
Client-side form validation before save Nanoflow
UI navigation and page routing Nanoflow
Calling device features (GPS, phone, camera) Nanoflow
Offline data access and local storage Nanoflow
Calling JavaScript actions (NanoflowCommons) Nanoflow
Showing progress indicators / confirmation dialogs Nanoflow

Read the full file on GitHub · 637 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 637 lines · 49 tokens per session scan A aab119606fbf

Subscribe to this mod's changes

write-microflows is a skill published in the GitHub repository mendixlabs/mxcli (117 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 6,009 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

hatch3r-api-spec

Generates and validates OpenAPI specifications from codebase. Covers endpoint design, schema validation, and documentation generation.

hatch3r/hatch3r · 29 tokens

golang-manual-di

Guides manual dependency injection wiring for Go services: three-tier naming taxonomy (Provide/MustProvide/Must), Must-pattern entrypoints, OS-signal-driven context lifecycle, common provider structs, infrastructure must-builders, interface-segregated bus registration, decorator/tracing wrappers, and…

soulcodex/agentic · 97 tokens

terraform-infrastructure

Structures, writes, and reviews Terraform infrastructure code. Covers module layout, remote state, workspace strategy, variable and secrets handling, CI plan/apply pipeline, naming conventions, and multi-region deployment patterns (provider aliases, per-region state, failover strategies), while delegating shared risk…

soulcodex/agentic · 96 tokens

microservices-architecture

Guides service boundary analysis, communication pattern selection, data consistency design, API contract strategy, and resilience checklist for microservices systems. Complements the microservices fragment. Invoked when the user asks to design a microservices system, split a monolith, or review service boundaries.

soulcodex/agentic · 61 tokens

nosql-database-design

Designs a NoSQL data model by leading with access pattern analysis. Covers DynamoDB single-table design (PK/SK/GSI) and MongoDB embedding vs referencing, consistency models, and capacity planning. Invoked when the user asks to design a DynamoDB schema, MongoDB data model, or NoSQL data model.

soulcodex/agentic · 71 tokens

hatch3r-scalability-verify

Scalability verification gate before commit/release — stateless-handler ratio, back-pressure patterns, idempotency-key adoption, queue-based offloading, pool sizing, bulkheads, load-test pass at target scale.

hatch3r/hatch3r · 51 tokens