demo-data

Instructions for inserting test or demo records directly into a Mendix application's PostgreSQL database. Mendix is a low-code platform, and PostgreSQL is a database system.

In plain words
What is it for?
Use it to read database settings, inspect schemas or row counts, insert bulk demo data, and create correct Mendix IDs and relationships.
Why use it?
It lets you prepare data before the app's screens exist and handle imports that would be impractical through the Mendix interface.

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

Made for: Claude Code, Codex.

Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,404 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.00066 $0.04404
Opus 5 $0.00033 $0.02202
Sonnet 5 $0.00013 $0.00881
Haiku 4.5 $0.00007 $0.00440

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

Security

Grade A, and why

demo-data 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/demo-data/SKILL.md · 477 lines

How it starts

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

Skill: Connect to Application Database and Generate Demo Data

Purpose

Connect directly to the Mendix application's PostgreSQL database from a devcontainer and insert demo data — bypassing the runtime. Covers reading DB settings, understanding Mendix's internal ID system, and safely inserting rows with correct IDs and association links.

When to Use This Skill

  • User asks to seed or populate the database with test/demo data
  • User needs data in the app before the UI is built
  • User wants to inspect the database directly (schema, row counts, etc.)
  • Bulk data import that is impractical through the Mendix UI

Step 1: Get Database Settings

Use mxcli to read the project's configured database connection:

./mxcli -p <project>.mpr -c "show settings;"

Example output:

| configuration 'Default' | PostgreSql, localhost:5434, db=mxcli2-dev, http=8080 |

For full credentials (username, password):

./mxcli -p <project>.mpr -c "describe settings;"

Example output:

alter settings configuration 'Default'
  DatabaseType = 'PostgreSql',
  DatabaseUrl = 'localhost:5434',
  DatabaseName = 'mxcli2-dev',
  DatabaseUserName = 'mendix',
  DatabasePassword = 'mendix',
  HttpPortNumber = 8080;

Step 2: Connect to the Database

From a devcontainer on macOS

The Mendix app's localhost in the project settings refers to the Mac host, not the devcontainer. Use host.docker.internal to reach it:

PGPASSWORD=mendix psql -h host.docker.internal -p 5434 -U mendix -d mxcli2-dev

Useful psql commands

# list all tables
\dt

# describe a table
\d tasklist$task

# run a query and exit
PGPASSWORD=mendix psql -h host.docker.internal -p 5434 -U mendix -d mxcli2-dev \
  -c "select * from \"tasklist\$task\" limit 5;"

Step 3: Understand the Mendix ID System

Every Mendix object has a bigint ID composed of three parts:

| bits 63–48  | bits 47–7            | bits 6–0       |
|  entity ID  |  sequence number     |  random         |
| (16 bits)   |  (41 bits)           |  (7 bits)       |

Read the full file on GitHub · 477 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 · 477 lines · 66 tokens per session scan A 479fbf4ff63e

Subscribe to this mod's changes

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