cheatsheet-variables

cheatsheet-variables is a skill for Claude Code from mendixlabs/mxcli. It costs 50 tokens per session (1,384 once invoked), scanned A, original, Apache-2.0.

A one-page syntax reference for declaring and assigning variables in MDL microflows, including basic values, dates, enumerations, entities, and lists.

In plain words
What is it for?
Use it while writing MDL microflows to check declaration syntax and examples for each supported variable type.
Why use it?
It helps avoid spelling and type mistakes when creating variables or fixing declaration errors.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it while writing MDL microflows to check declaration syntax and examples for each supported variable type.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/cheatsheet-variables"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/cheatsheet-variables.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,384 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.00050 $0.01384
Opus 5.5 $0.00020 $0.00554
Sonnet 5.5 $0.00010 $0.00277
Haiku 4.5 $0.00005 $0.00138

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

Security

Grade A, and why

cheatsheet-variables 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/cheatsheet-variables/SKILL.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 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
25-37 Declaration Syntax
38-45 Key Rules
46-88 Common Mistakes
89-97 Special Values
98-117 Parameter vs Variable
118-131 Variable Scope

MDL Variable Cheatsheet

Quick reference for variable declarations in MDL microflows.

Declaration Syntax

Type Syntax Example
String declare $name string = 'value'; declare $message string = '';
Integer declare $name integer = 0; declare $count integer = 0;
Boolean declare $name boolean = true; declare $IsValid boolean = true;
Decimal declare $name decimal = 0.0; declare $Amount decimal = 0;
DateTime declare $name datetime = [%CurrentDateTime%]; declare $Now datetime = [%CurrentDateTime%];
Enumeration declare $name Enumeration(Module.Enum) = Module.Enum.Value; declare $s Enumeration(Sales.Status) = Sales.Status.Open;
Object (Entity) Do not declare — use a parameter, retrieve, create, or loop iterator $Customer = create Sales.Customer (Name = $n);
List Do not declare — use a parameter, retrieve, or create list $Orders = create list of Sales.Order;

Key Rules

  1. Primitives (String/Integer/Long/Decimal/Boolean/DateTime/Enumeration): Use declare $var type = value; — these are the only types declare (a Create Variable activity) accepts.
  2. Objects (entities): Never declare an object. Mendix forbids the Create Variable activity from holding an object (CE0053/CE0038, plus CE7247 on a later set; flagged as MDL043 by mxcli check) — bare or initialized. Get the object from a microflow parameter, a retrieve … first, $var = create Module.Entity(...), or a loop iterator. There is no "empty object variable" and no aliasing activity — reuse the variable you already have.
  3. Lists: Never declare a list — same Create Variable restriction (CE0053/CE0038, flagged as MDL040). Get the list from a microflow parameter, a retrieve, or $var = create list of Module.Entity;
  4. SET requires DECLARE: Always declare primitive variables before using SET.
  5. Parameters are pre-declared: Microflow parameters don't need DECLARE (and a parameter may be an object/list type — that restriction is only on declare).

Read the full file on GitHub · 132 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. 5d ago Changed · +15 lines 33cfd74dd3fe
  2. 14d ago Changed a6dabc9b2a8f
  3. 15d ago Changed 66d40abfd928
  4. 1mo ago First seen · 117 lines · 50 tokens per session scan A e2e8315c8ecd

Subscribe to this mod's changes

cheatsheet-variables is a skill published in the GitHub repository mendixlabs/mxcli (130 stars, last pushed yesterday), licensed Apache-2.0. It adds 50 tokens to every session and 1,384 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.