write-layouts

write-layouts is a skill for Claude Code from mendixlabs/mxcli. It costs 72 tokens per session (5,285 once invoked), scanned A, original, Apache-2.0.

A guide to creating Mendix layouts, the shared page frames that contain navigation, top bars, sidebars, and content areas.

In plain words
What is it for?
Use it to create or copy layouts, change navigation frames, or add a custom layout to a module you own.
Why use it?
It explains how to change a page frame safely without editing built-in Marketplace modules that updates may replace.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to create or copy layouts, change navigation frames, or add a custom layout to a module you own.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/write-layouts"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/write-layouts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,285 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00072 $0.05285
Opus 5.5 $0.00029 $0.02114
Sonnet 5.5 $0.00014 $0.01057
Haiku 4.5 $0.00007 $0.00528

Measured 9d ago against content hash 4c889f684d5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-layouts 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 9d 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/write-layouts/SKILL.md · 369 lines

How it starts

The opening of the file, as written. The whole thing — 369 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-134 Do not edit Atlas_Core
135-194 Syntax
195-234 The four things only a layout has
235-246 Layout type, and why there is no native: flag
247-268 The layout class is load-bearing
269-339 Gotchas
340-352 Validate
353-365 What mxcli new scaffolds
366-368 Layouts (SHOW/DESCRIBE/CREATE [OR REPLACE] LAYOUT)

CREATE LAYOUT — the frame a page is built on

A layout is the frame every page renders inside: the topbar, the navigation sidebar, and the hole the page's own content drops into. Until now it was the one document mxcli could not author, which put the topbar out of reach of MDL.

Do not edit Atlas_Core

Mendix's own documentation says it plainly: "Do not change the supplied layouts. Either create a separate module with the custom layouts, page templates, and building blocks or create your own." An Atlas layout lives in a Marketplace module, and a Marketplace update replaces the module wholesale — every local edit is gone, silently.

CREATE LAYOUT refuses a Marketplace module for that reason. Put your layout in a module you own.

The usual starting point is a copy of an Atlas layout, and describe already gives you one:

mxcli -p app.mpr -c "describe layout Atlas_Core.Atlas_Default" > mine.mdl
# edit the qualified name to your own module, then:
mxcli exec mine.mdl -p app.mpr

DESCRIBE LAYOUT emits re-executable MDL, so describe → rename → exec is the copy operation. There is no COPY DOCUMENT verb and none is needed.

A copy is only as good as what MDL can spell. A widget describe cannot render comes out as a comment ending -- NOT re-executable, and re-running the script drops it. Measured: an image widget copied this way loses its image reference (CE0463 until mxcli fix widgets, then "No image selected"). Read the describe output before running it — the comments name exactly what will be lost. To change a layout without that risk, use ALTER LAYOUT, which edits the stored document in place and leaves everything it was not asked to touch alone.

Read the full file on GitHub · 369 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. 9d ago Changed · +11 lines 4c889f684d5f
  2. 1mo ago Changed abeaccd01fa2
  3. 1mo ago Changed · +12 lines aa7b6ff332de
  4. 1mo ago Changed · +31 lines · +14 tokens per session fc9c543473d3
  5. 1mo ago Changed · +18 lines fa47b12cc154
  6. 2mo ago Changed · +7 lines 5f4125b1d5f6
  7. 2mo ago Changed 8e457c9b40b2
  8. 2mo ago Changed · +26 lines d203d9f08438
  9. 2mo ago Changed · +4 lines a4d9f9f34447
  10. 2mo ago First seen · 260 lines · 58 tokens per session scan A 31d683562a7a

Subscribe to this mod's changes

write-layouts is a skill published in the GitHub repository mendixlabs/mxcli (146 stars, last pushed yesterday), licensed Apache-2.0. It adds 72 tokens to every session and 5,285 once invoked, about $0.0003 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-09-03.

Related

write-layouts compared with skills from other repositories

write-layouts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-layoutsmendixlabs/mxcliSkill146yesterdayApache-2.0A72Claude 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