write-rules skillA
write-rules is agent-read markdown (skill) from mendixlabs/mxcli: Write Mendix rules — a special kind of microflow returning a Boolean or enumeration, callable only from a decision. Use when writing CREATE RULE, or deciding whether logic belongs in a rule or a microflow..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Mendix Rule Skill Guidance for writing Mendix **rules** in MDL. Mendix's own reference calls a rule ["a special kind of microflow"](https://docs.mendix.com/refguide/rules/): it returns a Boolean or an enumeration, and it can only be used from a decision. ## When to Use This Skill - Writing `CREATE RULE` statements - Deciding whether logic belongs in a rule or a microflow - Understanding what `mxcli check` refuses in a rule body and why The mirrors are [write-microflows](../write-microflows/SKILL.md) and [write-nanoflows](../write-nanoflows/SKILL.md) — a rule is the third flavour and shares their body syntax exactly. ## When to Use a Rule vs a Microflow | Scenario | Use | |----------|-----| | One condition, evaluated from several decisions | Rule | | A named business condition the model should show by name | Rule | | Choosing one of several enumerated outcomes from input | Rule | | Anything that changes data | Microflow | | Anything the user sees (page, message, download) | Microflow | | Anything that talks to another system | Microflow | **Rule of thumb:** a rule *answers a question*. The moment it needs to *do* something, it is a microflow. …
Read the whole file at its exact version.
How to install
mdr add mendixlabs/mxcli/write-rules@git:20260922.4954f84mdr add mendixlabs/mxcli/write-rules@sha256:1cf707837e59cfe1Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_rbaf7wakcoqb4hme)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260922.4954f84 latest | 2026-09-22 | 4954f84 | 6,066 B | A | view · diff |
| git:20260821.ff81a24 | 2026-08-21 | ff81a24 | 4,743 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6066 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mendixlabs/mxcli · 124 stars · license Apache-2.0 · pushed 2026-09-24 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_rbaf7wakcoqb4hme GET https://markdownregistry.com/api/v1/resolve?ref=mendixlabs/mxcli/write-rules GET https://markdownregistry.com/api/v1/blob/1cf707837e59cfe1230ae5205671c7faed8c4b633f8f21ab2d4e8a483454b7ce
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.