manage-security

A guide for changing a Mendix app’s data model while Mendix Studio Pro has the same project open.

In plain words
What is it for?
Making live changes through mxcli when Studio Pro is running on the same computer, including updates to modules, pages, entities, and other model elements.
Why use it?
It lets model changes appear in the open Studio Pro project without saving, closing, and reopening the project. Mendix is a tool for building applications with visual models and limited hand-written code.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/mendixlabs/mxcli/manage-security
Any agent
npx skills add mendixlabs/mxcli --skill manage-security
Clone the repo
git clone --depth 1 https://github.com/mendixlabs/mxcli

Made for: Claude Code, Codex.

Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,824 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00052 $0.03824
Opus 5 $0.00026 $0.01912
Sonnet 5 $0.00010 $0.00765
Haiku 4.5 $0.00005 $0.00382

Measured yesterday against content hash eb10c2526613, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

manage-security 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 yesterday.

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/manage-security/SKILL.md · 438 lines

How it starts

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

Security Management Skill

This skill covers Mendix security configuration via MDL: module roles, user roles, access control (microflows, pages, entities), project security settings, and demo users.

When to Use This Skill

Use when the user asks to:

  • Set up security for a module or project
  • Create or manage module roles / user roles
  • Grant or revoke access to microflows, pages, or entities
  • Configure project security level or demo users
  • Review existing security configuration

Security Concepts

  • Module Roles define permissions within a single module (e.g., Shop.Admin, Shop.Viewer)
  • User Roles aggregate module roles from multiple modules (e.g., Administrator includes Shop.Admin + System.Administrator)
  • Access Rules control CRUD rights on entities per module role
  • Microflow/Page Access controls which module roles can execute/view specific elements
  • Project Security Level determines enforcement: off, prototype, or production

The System-module ceiling — decide the role model around this FIRST

No project module can widen access to System.User, System.Workflow or System.WorkflowUserTask. Access to System entities comes from the System module's own roles, and a grant in your module cannot raise it. This is a design constraint, not a detail: it decides what your screens can be, and finding it late means rebuilding them (ako/mxcli-maintenance-2 designed a technician picker, built it, tested it, and tore it out).

Both consequences are silent — the page renders, the data is simply missing, and mx check and mxcli lint both pass:

What you build What a non-Administrator sees
A combo box over System.User (e.g. "pick a technician") The current user only
A grid over System.Workflow / System.WorkflowUserTask Empty

Three ways around it, in order of preference:

  1. Record, don't pick. Target the task at a role, let whoever opens it do the work, and stamp who acted on completion — a plain association plus a denormalised name your own module owns, which every role can then read.
  2. A microflow data source. Microflows bypass entity access by default, so a page can show data the role cannot read directly.
  3. Split the page by role. Keep raw System grids on an Administrator-only page. Mendix hides a button to a page the user may not view, so the link simply does not appear.

Read the full file on GitHub · 438 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. yesterday First seen · 438 lines · 52 tokens per session scan A eb10c2526613

Subscribe to this mod's changes

manage-security is a skill published in the GitHub repository mendixlabs/mxcli (115 stars, last pushed 2d ago), licensed Apache-2.0. It adds 52 tokens to every session and 3,824 once invoked, about $0.0003 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-08-30.