Agent skill

Patterns Crud

by mendixlabs in mendixlabs/mxcli

Standard Create/Read/Update/Delete microflow patterns with the naming conventions that go with them.

Apache-2.0Auto-check passed

Install Patterns Crud

skills CLI
$ npx skills add mendixlabs/mxcli --skill patterns-crud -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mendixlabs/mxcli patterns-crud --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mendixlabs/mxcli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/mendix/patterns-crud .claude/skills/patterns-crud && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
patterns-crud
GitHub stars
128
Token cost
~1.3k tokens
SKILL.md length
212 words
Files
1
Skills in repo
75
Repo updated
First seen
Licence
Apache-2.0

At a glance

Standard Create/Read/Update/Delete microflow patterns with the naming conventions that go with them.

  • Works in 6 steps: Always validate before commit: Call VAL_… → Events are on by default: a bare commit… → Close page on success: Use close page… → …
  • Writing the action microflows behind page buttons rather than looking up individual syntax
  • SKILL.md covers Naming Conventions, Save Pattern (Create/Update), Validation Pattern and Delete Pattern, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Patterns Crud is an agent skill from mendixlabs/mxcli. Standard Create/Read/Update/Delete microflow patterns with the naming conventions that go with them. Use when writing the action microflows behind page buttons rather than looking up individual syntax.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Mendix cli tool, a headless way to work with Mendix projects. Enables Mendix projects for use with 3rd party agentic coding tools like Claude Code and Copilot. Includes a… The licence is Apache-2.0.

When your agent uses it

  • Writing the action microflows behind page buttons rather than looking up individual syntax

Example prompts

  • “/patterns-crud”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Always validate before commit: Call VAL_ microflow in ACT_Save
  2. Events are on by default: a bare commit $entity triggers the event handlers; write commit $entity without events only to skip them
  3. Close page on success: Use close page after successful save/delete
  4. Rollback on cancel: Use rollback $entity to discard changes
  5. Initialize defaults: Set default values in ACT_New microflow
  6. Return Boolean: All action microflows should return success status

What it can do on your machine

Read from SKILL.md and the folder at commit a924d11. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are mdl).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Patterns Crud loads about 1.3k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 212 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mendixlabs/mxcli at commit a924d11, republished under its Apache-2.0 licence (© mendixlabs). 212 words, ~1,264 tokens.

Download SKILL.mdSave it as .claude/skills/patterns-crud/SKILL.md (or your agent's skills folder).
name
patterns-crud
description
Standard Create/Read/Update/Delete microflow patterns with the naming conventions that go with them. Use when writing the action microflows behind page buttons rather than looking up individual syntax.

CRUD Action Patterns

Standard patterns for Create, Read, Update, Delete operations on entities.

Naming Conventions

PrefixPurposeExample
ACT_Action microflow (page button)ACT_Customer_Save
VAL_Validation microflowVAL_Customer_Save
DS_Data source microflowDS_Customer_GetAll
SUB_Sub-microflow (internal)SUB_Customer_SendEmail

Save Pattern (Create/Update)

Used for Save buttons on NewEdit pages.

mdl
mdl 1;
/**
 * Save action for Customer NewEdit page
 * Validates, commits, and closes the page
 *
 * @param $Customer The customer to save
 * @returns true if saved successfully
 */
create microflow Module.ACT_Customer_Save (
  $Customer: Module.Customer
)
returns boolean
begin
  -- Validate first
  $IsValid = call microflow Module.VAL_Customer_Save(Customer = $Customer);

  if $IsValid then
    commit $Customer;
    close page;
  end if;

  return $IsValid;
end;

Validation Pattern

Companion validation microflow for Save actions.

mdl
mdl 1;
/**
 * Validate Customer before save
 *
 * @param $Customer The customer to validate
 * @returns true if valid
 */
create microflow Module.VAL_Customer_Save (
  $Customer: Module.Customer
)
returns boolean
begin
  declare $IsValid boolean = true;

  -- Required field validation
  if $Customer/Name = empty then
    validation feedback $Customer/Name message 'Name is required';
    set $IsValid = false;
  end if;

  if $Customer/Email = empty then
    validation feedback $Customer/Email message 'Email is required';
    set $IsValid = false;
  end if;

  -- Business rule validation
  if $Customer/CreditLimit < 0 then
    validation feedback $Customer/CreditLimit message 'Credit limit cannot be negative';
    set $IsValid = false;
  end if;

  return $IsValid;
end;

Delete Pattern

Used for Delete buttons with confirmation.

mdl
mdl 1;
/**
 * Delete a customer
 * Called after user confirms deletion
 *
 * @param $Customer The customer to delete
 * @returns true if deleted
 */
create microflow Module.ACT_Customer_Delete (
  $Customer: Module.Customer
)
returns boolean
begin
  delete $Customer;
  close page;
  return true;
end;

Cancel Pattern

Used for Cancel buttons (discard changes).

mdl
mdl 1;
/**
 * Cancel editing and close page
 * Discards uncommitted changes
 *
 * @param $Customer The customer being edited
 * @returns true
 */
create microflow Module.ACT_Customer_Cancel (
  $Customer: Module.Customer
)
returns boolean
begin
  rollback $Customer;
  close page;
  return true;
end;

Create New Pattern

Used for New/Add buttons on overview pages.

mdl
mdl 1;
/**
 * Create new customer and open edit page
 *
 * @returns true
 */
create microflow Module.ACT_Customer_New ()
returns boolean
begin
  $NewCustomer = create Module.Customer (
    IsActive = true,
    CreatedDate = [%CurrentDateTime%]
  );

  show page Module.Customer_NewEdit (Customer = $NewCustomer);
  return true;
end;

Data Source Pattern

Used for data grid/list view sources.

mdl
mdl 1;
/**
 * Get all active customers
 * Used as data source for Customer overview
 *
 * @returns List of active customers
 */
create microflow Module.DS_Customer_GetActive ()
returns list of Module.Customer
begin
  -- retrieve creates the list variable directly — never declare a list first
  retrieve $Customers from Module.Customer
    where IsActive = true;

  return $Customers;
end;

Edit Pattern

Open existing entity for editing.

mdl
mdl 1;
/**
 * Open customer for editing
 *
 * @param $Customer The customer to edit
 * @returns true
 */
create microflow Module.ACT_Customer_Edit (
  $Customer: Module.Customer
)
returns boolean
begin
  show page Module.Customer_NewEdit (Customer = $Customer);
  return true;
end;

Complete CRUD Set

For a typical entity, create these microflows:

MicroflowPurposeParameters
ACT_Entity_NewCreate newNone
ACT_Entity_EditOpen for edit$entity
ACT_Entity_SaveSave changes$entity
VAL_Entity_SaveValidate$entity
ACT_Entity_DeleteDelete$entity
ACT_Entity_CancelCancel edit$entity
DS_Entity_GetAllList allNone

Best Practices

  1. Always validate before commit: Call VAL_ microflow in ACT_Save
  2. Events are on by default: a bare commit $entity triggers the event handlers; write commit $entity without events only to skip them
  3. Close page on success: Use close page after successful save/delete
  4. Rollback on cancel: Use rollback $entity to discard changes
  5. Initialize defaults: Set default values in ACT_New microflow
  6. Return Boolean: All action microflows should return success status

© mendixlabs, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/mendix/patterns-crud of mendixlabs/mxcli.

Open the folder on GitHubat commit a924d11

Compare with similar skills

Patterns Crud next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Patterns Crud compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Patterns Crud this skillmendixlabs/mxcli128—~1.3kAutomated safety check: PassApache-2.0
Java Coding Standardsaffaan-m/ECC274k1 repos~2.9kAutomated safety check: PassMIT
Standardize Naming Conventionsdata-goblin/power-bi-agentic-development1k—~1.8kAutomated safety check: PassGPL-3.0
Cpp Coding Standardsaffaan-m/ECC274k4 repos~5.6kAutomated safety check: PassMIT
Git Branch Namingmakeplane/plane60k—~594Automated safety check: PassAGPL-3.0
Naming Conventionsthedaviddias/Front-End-Checklist74k—~481Automated safety check: PassMIT

Similar skills

  • Java coding standards for Spring Boot and Quarkus services: naming, immutability, Optional usage, streams, exceptions, generics, CDI, reactive patterns, and project layout.

    274k GitHub starsUsed in 1 repo~2.9k tokens
    DevelopmentAuto-check passed
  • Standardize Naming Conventions

    data-goblin/power-bi-agentic-development

    Interactive naming convention standardization for TMDL-based Power BI semantic models.

    1k GitHub stars~1.8k tokensUpdated 2 days ago
    Data & AnalyticsAuto-check passed
  • C++ coding standards based on the C++ Core Guidelines (isocpp.github.io).

    274k GitHub starsUsed in 4 repos~5.6k tokens
    DevelopmentAuto-check passed
  • Git Branch Naming

    makeplane/plane

    Names a new Git branch with a type prefix, the lowercased work item ID and a short kebab-case description, so the ID can be extracted later from the branch name.

    60k GitHub stars~594 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Naming Conventions

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Use consistent CSS naming conventions.

    74k GitHub stars~481 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Button Name

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Provide accessible names for buttons.

    74k GitHub stars~488 tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from mendixlabs/mxcli

All 75 skills in this repo
  • Mendix Odata Pushdown

    mendixlabs/mxcli

    Push OData query options into the SQL of a Mendix resource served by a read microflow, so $filter, $orderby, $top, $skip, $count and the key lookup reach the database instead of being silently…

    128 GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Mendix Vega Charts

    mendixlabs/mxcli

    Chart a Mendix app with Vega-Lite through a pluggable widget that takes the specification and the data as separate properties, so the model emits rows and never assembles a chart payload.

    128 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Agents

    mendixlabs/mxcli

    Author Mendix AI agent documents in MDL — Model, Knowledge Base, Consumed MCP Service and Agent, with variables, tools and multi-line prompts.

    128 GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Mendix Bulk Oql Dml

    mendixlabs/mxcli

    Run set-based INSERT, UPDATE and DELETE against Mendix entities through OQL statements, which the runtime supports and Studio Pro cannot author.

    128 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Mock REST APIs

    mendixlabs/mxcli

    Stand up an HTTP endpoint you control instead of a live third-party API, and point the Mendix app at it — Prism from an OpenAPI contract, a constant swap, or a forward proxy.

    128 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • REST Client

    mendixlabs/mxcli

    Call external REST APIs from Mendix — the three approaches (inline REST CALL, consumed REST client document, generated from OpenAPI) and how to choose.

    128 GitHub starsUsed in 1 repo~3.9k tokens
    Auto-check passed

Questions about Patterns Crud

What does Patterns Crud do?

Standard Create/Read/Update/Delete microflow patterns with the naming conventions that go with them. Patterns Crud is an agent skill from mendixlabs/mxcli. Standard Create/Read/Update/Delete microflow patterns with the naming conventions that go with them.

When should I use Patterns Crud?

Patterns Crud fits situations like: writing the action microflows behind page buttons rather than looking up individual syntax.

How do I install Patterns Crud in Claude Code?

Run `npx skills add mendixlabs/mxcli --skill patterns-crud -a claude-code`. Or copy the skill folder (.claude/skills/mendix/patterns-crud in mendixlabs/mxcli) into .claude/skills/patterns-crud in your project. Claude Code loads it when a task matches its description.

How do I install Patterns Crud in Codex?

Run `npx skills add mendixlabs/mxcli --skill patterns-crud -a codex`. Or copy the skill folder (.claude/skills/mendix/patterns-crud in mendixlabs/mxcli) into .agents/skills/patterns-crud in your project. Codex loads it when a task matches its description.

Can I use Patterns Crud in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mendixlabs/mxcli --skill patterns-crud -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/patterns-crud, .gemini/skills/patterns-crud, .github/skills/patterns-crud and .opencode/skills/patterns-crud in your project.

What does Patterns Crud need to run?

SKILL.md names no scripts, command-line tools or credentials: Patterns Crud is instructions for the agent only.

Does Patterns Crud access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Patterns Crud safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Patterns Crud use?

Patterns Crud is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Patterns Crud use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Patterns Crud?

Skills that share tags, products or a category with Patterns Crud: Java Coding Standards (affaan-m/ECC, 274k stars), Standardize Naming Conventions (data-goblin/power-bi-agentic-development, 1k stars), Cpp Coding Standards (affaan-m/ECC, 274k stars) and Git Branch Naming (makeplane/plane, 60k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Patterns Crud?

mendixlabs (a GitHub organization) maintains it in mendixlabs/mxcli, which has 128 GitHub stars. The repository holds 75 skills in this directory. The repository was last updated on October 7, 2026.

Source: mendixlabs/mxcli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.