create-custom-widget

create-custom-widget is a skill for Claude Code from mendixlabs/mxcli. It costs 50 tokens per session (3,710 once invoked), scanned A, original, Apache-2.0.

A workflow for building a Mendix pluggable widget, which is a custom user-interface component for Mendix applications, with React and TypeScript, then packaging it as an .mpk file.

In plain words
What is it for?
It is for scaffolding widget source files, developing and building the React component, running lint checks, and producing a package for Mendix Studio Pro.
Why use it?
It provides a repeatable structure for creating a widget when an existing built-in or marketplace widget does not meet the need.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">.

Good fit It is for scaffolding widget source files, developing and building the React component, running lint checks, and producing a package for Mendix Studio Pro.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mendixlabs/mxcli
agentmods
npx agentmods add skills/mendixlabs/mxcli/create-custom-widget

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 create-custom-widget

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/create-custom-widget"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/create-custom-widget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,710 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 116
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
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.00050 $0.03710
Opus 5.5 $0.00020 $0.01484
Sonnet 5.5 $0.00010 $0.00742
Haiku 4.5 $0.00005 $0.00371

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

Security

Grade A, and why

create-custom-widget 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 6d 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/create-custom-widget/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.

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
31-35 Prerequisites
36-117 Step 1: Scaffold the Project
118-252 Step 2: Define Widget Properties (widget.xml)
253-313 Step 3: Write the Entry Component
314-339 Step 4: Write the React Component
340-377 Step 5: Editor Config (optional but recommended)
378-389 Step 6: CSS Styles
390-399 Step 7: Build
400-407 Step 8: Install to Mendix Project
408-431 Common Widget Patterns
432-444 Checklist Before Build
445-452 Troubleshooting

Create Custom Pluggable Widget

Build a Mendix pluggable widget from scratch using React + TypeScript. Produces a .mpk file ready for Studio Pro.

Prerequisites

  • Node.js >= 16
  • npm

Step 1: Scaffold the Project

Create a directory and generate all source files. Use PascalCase for the widget name.

mkdir -p <WidgetName>/src/components <WidgetName>/src/ui

package.json

{
  "name": "<widget-name>",
  "widgetName": "<WidgetName>",
  "version": "1.0.0",
  "description": "<description>",
  "license": "Apache-2.0",
  "config": {
    "projectPath": "./tests/testProject",
    "mendixHost": "http://localhost:8080",
    "developmentPort": 3000
  },
  "packagePath": "com.example.widgets",
  "scripts": {
    "dev": "pluggable-widgets-tools start:web",
    "build": "pluggable-widgets-tools build:web",
    "lint": "pluggable-widgets-tools lint",
    "lint:fix": "pluggable-widgets-tools lint:fix"
  },
  "devDependencies": {
    "@mendix/pluggable-widgets-tools": "^11.6.0",
    "@types/big.js": "^6.0.2"
  },
  "dependencies": {
    "classnames": "^2.2.6"
  },
  "resolutions": {
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "@types/react": "^19.0.0",
    "@types/react-dom": "^19.0.0"
  },
  "overrides": {
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "@types/react": "^19.0.0",
    "@types/react-dom": "^19.0.0"
  }
}

Read the full file on GitHub · 453 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. 6d ago Changed · +9 lines 3fa41749f671
  2. 1mo ago Changed · +21 lines 309c3b0e3031
  3. 3mo ago First seen · 423 lines · 50 tokens per session scan A be0a0b5fc2e3

Subscribe to this mod's changes

create-custom-widget is a skill published in the GitHub repository mendixlabs/mxcli (146 stars, last pushed yesterday), licensed Apache-2.0. It adds 50 tokens to every session and 3,710 once invoked, about $0.0002 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.

Related

create-custom-widget compared with skills from other repositories

create-custom-widget next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-custom-widgetmendixlabs/mxcliSkill146yesterdayApache-2.0A50Claude Code
react-component-designsoulcodex/agenticSkill1011d agoMITA56Claude Code, Codex
authoring-typescriptNVIDIA/elementsSkill122todayApache-2.0A104Claude Code, Codex
code-review-typescriptsoulcodex/agenticSkill1011d agoMITA71Claude Code, Codex
react-application-structuresoulcodex/agenticSkill1011d agoMITA63Claude Code, Codex
next-application-structuresoulcodex/agenticSkill1011d agoMITA64Claude Code, Codex
create-modus-wrapper-componentjulianoczkowski/create-trimble-appSkill34mo agoMITA28Cursor