Mendix Fragments Skill

Define and inject reusable widget fragments within Mendix MDL scripts.

1|Updated Jun 5, 2026
One-click install
npx skills add https://github.com/engalar/mxcli-taskdemo --skill mendix-fragments-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Mendix Fragments Skill
Source: https://github.com/engalar/mxcli-taskdemo/tree/main/TaskDemo/.claude/skills/fragments
Command: npx skills add https://github.com/engalar/mxcli-taskdemo --skill mendix-fragments-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the problem of repetitive widget configuration and code duplication in Mendix Definition Language (MDL) scripts by enabling the creation and reuse of modular widget groups.

Core Features & Use Cases

  • Modular UI Composition: Define complex widget structures once and reuse them across multiple pages or snippets.
  • Namespace Management: Use prefixes to prevent naming conflicts when reusing the same fragment multiple times in a single view.
  • Use Case: Standardize your application's CRUD operations by defining a single SaveCancelFooter fragment and applying it consistently across all entity edit pages.

Quick Start

Use the fragments skill to define a reusable footer and apply it to your current page definition.

Frequently Asked Questions about Mendix Fragments Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reuse UI components in Mendix Definition Language scripts?

You can reuse UI components in Mendix Definition Language by defining modular widget fragments once and injecting them across multiple pages or snippets. This mechanism prevents repetitive widget configuration and ensures consistency throughout your project modules.

What is the best way to standardize CRUD action button sets in Mendix?

The best way to standardize CRUD action button sets in Mendix is to define a single reusable fragment, such as a SaveCancelFooter, and apply it consistently across all entity edit pages. This ensures uniform UI composition.

Can I use the same Mendix widget fragment multiple times in a single view?

Yes, you can use the same Mendix widget fragment multiple times in a single view by utilizing namespace prefixes. This namespace management technique prevents naming conflicts and maintains widget naming integrity during UI composition.

Why does my Mendix MDL script fail when injecting reusable fragments?

Mendix MDL scripts fail during fragment injection when script-scoped definition and usage patterns are not followed. Adhering to these patterns is required to maintain widget naming integrity and prevent compilation errors in your project modules.