choose-edit-mode

choose-edit-mode is a skill for Claude Code from mendixlabs/mxcli. It costs 97 tokens per session (1,623 once invoked), scanned A, original, Apache-2.0.

A decision guide for choosing how to change an existing MDL document, based on whether scripts or Studio Pro owns it. MDL is the language used to define these application documents.

In plain words
What is it for?
Use it before editing an existing app, reusing output from a document description, or changing a document created in Studio Pro.
Why use it?
It helps prevent an edit from replacing or losing parts of a document that someone changed elsewhere. It also clarifies when to use a targeted change versus rewriting the full definition.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it before editing an existing app, reusing output from a document description, or changing a document created in Studio Pro.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/choose-edit-mode"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/choose-edit-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,623 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.
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.00097 $0.01623
Opus 5.5 $0.00039 $0.00649
Sonnet 5.5 $0.00019 $0.00325
Haiku 4.5 $0.00010 $0.00162

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

Security

Grade A, and why

choose-edit-mode 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/choose-edit-mode/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 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
30-49 The rule
50-78 Scripts are mdl 1 — upgrade a headerless file before you edit it
79-95 Which document types have alter
96-113 Types with no alter: microflows, nanoflows, menus, Java actions

Choose the Edit Mode by Who Owns the Document

MDL has two ways to change a document, and each is safe in a different situation.

Declarative Patch
Statement create or modify <type> X ( … ) { … }, the whole definition alter <type> X …, only the change
Source of truth your .mdl scripts the stored model
Use for new apps and modules; documents your scripts created and nobody has edited since documents made or edited in Studio Pro; marketplace modules
Risk drops whatever the statement does not say, including content MDL cannot express none for what it does not mention

The rule

  1. New app, new module, new document: write declarative MDL. There is nothing to read and nothing to preserve.
  2. Existing Studio Pro document: change it with alter. An alter leaves every element it does not name untouched. Measured: alter page … set Caption changed one string and byte-preserved every other translation on the page.
  3. describe → edit → create or modify only for documents mxcli created and whose stored state is still what your script produced (nobody has changed them in Studio Pro since). On a Studio Pro-authored document this path is lossy even when you change nothing. On real projects it has flipped association storage from table to column, dropped page translations, dropped nanoflow annotation links, changed export levels, and dropped a snippet's type. mxcli diff runs the script on a scratch copy and lists every unit it would write, so run it first and expect "exec would write nothing" for a document you did not mean to change.
  4. Never drop and re-create an existing document to change it. The new document gets new identities. For an entity, the runtime then drops its table and its rows.

Read the full file on GitHub · 114 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 · +1 lines c9926f8da00c
  2. 1mo ago Changed · +13 lines 1bd061f91272
  3. 1mo ago Changed · +2 lines d9b4e5c946ec
  4. 2mo ago Changed · +29 lines · +16 tokens per session 9bae03b5f5b7
  5. 2mo ago First seen · 69 lines · 81 tokens per session scan A 384a3491d772

Subscribe to this mod's changes

choose-edit-mode is a skill published in the GitHub repository mendixlabs/mxcli (146 stars, last pushed yesterday), licensed Apache-2.0. It adds 97 tokens to every session and 1,623 once invoked, about $0.0004 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-10-01.

Related

choose-edit-mode compared with skills from other repositories

choose-edit-mode next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
choose-edit-modemendixlabs/mxcliSkill146yesterdayApache-2.0A97Claude 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