patterns-crud

patterns-crud is a skill for Claude Code from mendixlabs/mxcli. It costs 40 tokens per session (1,426 once invoked), scanned A, original, Apache-2.0.

A set of standard Mendix microflow patterns for creating, reading, updating, and deleting records, with naming rules for the related actions.

In plain words
What is it for?
Use it to build save, validate, load, and delete actions behind application pages.
Why use it?
It gives page buttons and validation steps a consistent structure instead of requiring each operation to be designed from scratch.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to build save, validate, load, and delete actions behind application pages.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/patterns-crud"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/patterns-crud.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,426 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.00040 $0.01426
Opus 5.5 $0.00016 $0.00570
Sonnet 5.5 $0.00008 $0.00285
Haiku 4.5 $0.00004 $0.00143

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

Security

Grade A, and why

patterns-crud 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 5d 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/patterns-crud/SKILL.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 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
29-37 Naming Conventions
38-67 Save Pattern (Create/Update)
68-107 Validation Pattern
108-131 Delete Pattern
132-155 Cancel Pattern
156-179 Create New Pattern
180-202 Data Source Pattern
203-224 Edit Pattern
225-238 Complete CRUD Set
239-246 Best Practices

CRUD Action Patterns

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

Naming Conventions

Prefix Purpose Example
ACT_ Action microflow (page button) ACT_Customer_Save
VAL_ Validation microflow VAL_Customer_Save
DS_ Data source microflow DS_Customer_GetAll
SUB_ Sub-microflow (internal) SUB_Customer_SendEmail

Save Pattern (Create/Update)

Used for Save buttons on NewEdit pages.

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 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;

Read the full file on GitHub · 247 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. 5d ago Changed · +19 lines 905c9be0faaa
  2. 15d ago Changed · -1 lines 15c41da1e53a
  3. 16d ago Changed f60a7d784317
  4. 1mo ago First seen · 229 lines · 40 tokens per session scan A 5da61ab42103

Subscribe to this mod's changes

patterns-crud is a skill published in the GitHub repository mendixlabs/mxcli (131 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 1,426 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-09-03.

Related

Other skills, from other repositories

hatch3r-api-spec

Generates and validates OpenAPI specifications from codebase. Covers endpoint design, schema validation, and documentation generation.

hatch3r/hatch3r · 29 tokens

hatch3r-scalability-verify

Scalability verification gate before commit/release — stateless-handler ratio, back-pressure patterns, idempotency-key adoption, queue-based offloading, pool sizing, bulkheads, load-test pass at target scale.

hatch3r/hatch3r · 51 tokens

golang-manual-di

Guides manual dependency injection wiring for Go services: three-tier naming taxonomy (Provide/MustProvide/Must), Must-pattern entrypoints, OS-signal-driven context lifecycle, common provider structs, infrastructure must-builders, interface-segregated bus registration, decorator/tracing wrappers, and…

soulcodex/agentic · 97 tokens

terraform-infrastructure

Structures, writes, and reviews Terraform infrastructure code. Covers module layout, remote state, workspace strategy, variable and secrets handling, CI plan/apply pipeline, naming conventions, and multi-region deployment patterns (provider aliases, per-region state, failover strategies), while delegating shared risk…

soulcodex/agentic · 96 tokens

microservices-architecture

Guides service boundary analysis, communication pattern selection, data consistency design, API contract strategy, and resilience checklist for microservices systems. Complements the microservices fragment. Invoked when the user asks to design a microservices system, split a monolith, or review service boundaries.

soulcodex/agentic · 61 tokens

nosql-database-design

Designs a NoSQL data model by leading with access pattern analysis. Covers DynamoDB single-table design (PK/SK/GSI) and MongoDB embedding vs referencing, consistency models, and capacity planning. Invoked when the user asks to design a DynamoDB schema, MongoDB data model, or NoSQL data model.

soulcodex/agentic · 71 tokens