create-page

A syntax reference for creating pages in Mendix, a platform for building business applications. It explains page structure, parameters, layouts, variables, and supported widgets.

In plain words
What is it for?
Use it when writing or checking a CREATE PAGE statement, choosing widget properties, or building a complete Mendix page.
Why use it?
It reduces errors caused by guessing the exact spelling or format required for a page definition. Examples and widget details provide patterns to adapt.

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/create-page
Any agent
npx skills add mendixlabs/mxcli --skill create-page
Clone the repo
git clone --depth 1 https://github.com/mendixlabs/mxcli

Made for: Claude Code, Codex.

Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,648 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.00038 $0.04648
Opus 5 $0.00019 $0.02324
Sonnet 5 $0.00008 $0.00930
Haiku 4.5 $0.00004 $0.00465

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

Security

Grade A, and why

create-page 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/create-page/SKILL.md · 453 lines

How it starts

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

CREATE PAGE - MDL Syntax Guide

Reference files

SKILL.md covers page structure, the syntax, and what does not work. The bulk is next door:

  • reference/widgets.md — the widget catalogue: every supported widget with its properties and the exact MDL spelling. Look a widget up here before writing it; guessing a property name is the most common way a page fails to build.
  • reference/examples.md — complete pages, end to end, to copy and adapt rather than assemble from parts.

For the widgets this project actually has — including any marketplace or custom ones — read the generated widgets skill instead (.ai-context/skills/widgets/SKILL.md).

Overview

Guide for writing CREATE PAGE statements in Mendix Definition Language (MDL).

Syntax

create [or replace] page Module.PageName
(
  [params: { $ParamName: Module.EntityType | PrimitiveType, ... },]
  [variables: { $varName: DataType = 'defaultExpression', ... },]
  title: 'Page Title',
  layout: Module.LayoutName,
  [url: 'page-url',]
  [folder: 'FolderPath',]
  [PopupWidth: 800, PopupHeight: 480, PopupResizable: true,]
  [Class: 'css-class', Style: 'css: rule']
)
{
  -- Widget definitions using explicit properties
}

Pop-up dimensions (PopupWidth / PopupHeight / PopupResizable) apply when the page is opened in a pop-up. They are optional — omitting them uses the Mendix defaults (600 × 600, not resizable). Unlike the other header keywords, these property names are case-sensitive and must be written exactly as shown. They can also be changed later with alter page … { set PopupWidth = …; } (see the alter-page skill).

Page CSS class / style (Class / Style) set the page's Appearance — a CSS class and inline style applied to the whole page (e.g. Class: 'container-fluid bg-light'). Both are optional and can be changed later with alter page … { set Class = '…'; }.

Page Variables: Local variables at the page level for use in expressions (e.g., column visibility).

  • DataType: boolean, string, integer, decimal, datetime
  • Default value: Mendix expression in single quotes
  • Referenced in expressions as $varName
  • Use for DataGrid2 column visible: (which hides/shows entire column, NOT per-row)

Read the full file on GitHub · 453 lines

Files

What ships with it

2 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. yesterday First seen · 453 lines · 38 tokens per session scan A 1c781d32c886

Subscribe to this mod's changes

create-page is a skill published in the GitHub repository mendixlabs/mxcli (115 stars, last pushed 2d ago), licensed Apache-2.0. It adds 38 tokens to every session and 4,648 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-08-30.