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.
npx skills add mendixlabs/mxcli --skill fragmentsgit clone --depth 1 https://github.com/mendixlabs/mxcliWrote 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.
[](https://agentmods.dev/skills/mendixlabs/mxcli/fragments)<a href="https://agentmods.dev/skills/mendixlabs/mxcli/fragments"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/fragments/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.
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/fragments"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/fragments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.02488 |
| Opus 5.5 | $0.00014 | $0.00995 |
| Sonnet 5.5 | $0.00007 | $0.00498 |
| Haiku 4.5 | $0.00003 | $0.00249 |
Grade A, and why
fragments 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 18d 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.
How it starts
The opening of the file, as written. The whole thing — 328 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 |
|---|---|
| 24-32 | When to Use This Skill |
| 33-40 | What Are Fragments? |
| 41-194 | Syntax Reference |
| 195-264 | Common Patterns |
| 265-311 | Common Mistakes |
| 312-321 | Validation Checklist |
| 322-327 | Related Documentation |
Mendix Fragments Skill
When to Use This Skill
Use this skill when:
- Defining reusable widget groups with
create fragment - Inserting fragments into pages or snippets with
use fragment - Listing or inspecting fragments with
list fragments/describe fragment - Building multiple pages that share common widget patterns (footers, form fields, buttons)
- Avoiding copy-paste of repeated widget structures across pages
What Are Fragments?
Fragments are script-scoped, transient widget groups:
- Defined once, reused in multiple pages/snippets within the same script
- Not persisted in the MPR file — they exist only during script execution
- Widgets are deep-cloned on expansion (each USE gets independent copies)
- Optional prefix support to avoid name conflicts when using the same fragment multiple times
Syntax Reference
CREATE FRAGMENT
mdl 1;
create fragment SaveCancelFooter as {
footer footer1 {
actionbutton btnSave (caption: 'Save', action: save changes, buttonstyle: primary)
actionbutton btnCancel (caption: 'Cancel', action: cancel changes)
}
};
Multiple top-level widgets:
mdl 1;
create fragment CustomerFields as {
textbox txtName (label: 'Name', attribute: Name)
textbox txtEmail (label: 'Email', attribute: Email)
textbox txtPhone (label: 'Phone', attribute: Phone)
};
USE FRAGMENT
Inside a page or snippet body:
mdl 1;
create page Module.CustomerEdit
(
params: ( $Customer: Module.Customer ),
title: 'Edit Customer',
layout: Atlas_Core.PopupLayout
)
{
dataview dvCustomer (datasource: $Customer) {
use fragment CustomerFields
use fragment SaveCancelFooter
}
};
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.
- 18d ago Changed · +5 lines e6989f94de83
- 1mo ago Changed · +16 lines e9b60ce18b08
- 2mo ago Changed · +5 lines fbbfad3b7796
- 2mo ago Changed 831d0710b074
- 3mo ago First seen · 302 lines · 34 tokens per session scan A 1d862fb57b7f
fragments is a skill published in the GitHub repository mendixlabs/mxcli (146 stars, last pushed yesterday), licensed Apache-2.0. It adds 34 tokens to every session and 2,488 once invoked, about $0.0001 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-08-30.
fragments compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fragmentsmendixlabs/mxcli | Skill | 146 | yesterday | Apache-2.0 | A | 34 | Claude Code |
| stuckQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 57 | Claude Code |
| e2e-testingQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 94 | Claude Code, Codex |
| structured-debuggingQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| desktop-brand-builderQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 68 | Claude Code, Codex |
| batch-apiQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 51 | Claude Code |
| workflow-creatorQwenLM/qwen-code | Skill | 31k | today | Apache-2.0 | A | 49 | Claude Code, Codex |