Skip to content
Back to skills

Assess Quality

ASecurity

Write a full quality assessment of a Mendix project: the mxcli reports for what can be measured, plus a manual review of what no rule can judge (naming that says what a flow does, folder structure, error-handling design, connector conventions, UI styling, complexity hotspots). Use when asked for a quality assessment, a pre-go-live health check or an audit, or to get oriented in an unfamiliar app.

  • 143 stars
  • 0 votes
  • 1 copy
  • 2 views
  • Added September 26, 2026
ai-agentsjavascriptrustgojavasqldockersecurityperformancedocumentation

Works with

  • cli

Security analysis

A100/100

Scanned November 22, 2026

npx -y skills add mendixlabs/mxcli --skill assess-quality --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Assess Quality?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Assess Quality
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mendixlabs-assess-quality/badge)](https://www.skillsdirectory.com/skills/mendixlabs-assess-quality)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: assess-quality
description: "Write a full quality assessment of a Mendix project: the mxcli reports for what can be measured, plus a manual review of what no rule can judge (naming that says what a flow does, folder structure, error-handling design, connector conventions, UI styling, complexity hotspots). Use when asked for a quality assessment, a pre-go-live health check or an audit, or to get oriented in an unfamiliar app."
---
<!-- skill-index: generated by scripts/skill-index.py; make check-skill-index -->
## 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-115 | Step 1: Run the reports |
| 116-270 | Step 2: Manual review |
| 271-277 | Step 3: Write the assessment |
| 278-280 | Summary |
| 281-292 | Measured |
| 293-295 | Reviewed by hand |
| 296-298 | Recommendations |
| 299-303 | Not assessed |
| 304-310 | Sources |

<!-- /skill-index -->
# Assess Mendix Project Quality

An assessment has two halves. **What can be measured** comes from the mxcli reports —
run them, do not re-derive their findings by hand. **What needs judgement** is the
manual review below: whether names say what a flow does, whether the folder and module
structure make sense, whether error handling is designed or accidental.

## Step 1: Run the reports

`mxcli report all -p app.mpr -o docs/reports` runs every report below into one folder
with an overview page. Give it the evidence, each to the reports it is for:
`--journeys`/`--spans` (the functional journeys) and `--junit` or `--run` (microflow
test results) feed tests and traceability; `--perf-journeys`/`--perf-spans` (a
performance run, one record per step) feed performance; `--against <deployed>` feeds
release. Without test results the readiness verdict stays "not assessed in full".
Or run them one by one:

| Question | Report | Skill |
|---|---|---|
| How does it score against the lint rules? | `mxcli report` | `report-quality` |
| How is it layered; cycles, coupling, dead code? | `mxcli report architecture` | `report-architecture` |
| Who can read what; which flows trust the caller? | `mxcli report security` | `report-security` |
| Do the tests pass, and what do they reach? | `mxcli report tests` | `report-tests` |
| Is it fast enough at production volume? | `mxcli report performance` | `report-performance` |
| Was the specification built? | `mxcli report traceability` | `report-traceability` |
| What is in it, for someone new? | `mxcli report map` | `report-map` |
| What does the next deploy do to production data? | `mxcli report release --against <deployed>` | `report-release` |
| Are its dependencies current and safe? | `mxcli report dependencies` | `report-dependencies` |
| What must each environment supply? | `mxcli report configuration` | `report-configuration` |
| Taken together: go or no-go? | `mxcli report readiness` (also written by `report all`) | `report-readiness` |
| Does it build? | `mxcli report` (its **Builds** line), or `mxcli docker check` | `report-quality`, `/validate-project` |

Read each report's skill before interpreting it — every one has traps (the quality
score counts Marketplace modules unless scoped; the security report treats intended
row-level rules differently from real exposure). Findings that are intended belong in
the project brain as accepted lint findings (`report-quality`), so the next run does
not report them again.

The rules behind these reports are listed by `mxcli lint -p app.mpr --list-rules`.
This skill does not repeat them: the guidelines below are the ones no rule checks.

### Questions across reports (DuckDB, optional)

Each page answers its own question; some questions cross two reports. Every report's
data is in the folder as `<kind>.json` (`{kind, …, data: {…}}`), so an external DuckDB
session can join them — and the catalog — with no export. mxcli does not embed DuckDB;
this is a reviewer's tool, run from the reports folder, everything read-only:

```duckdb
-- duckdb, in docs/reports (after `mxcli report all`)
ATTACH '../../.mxcli/catalog.db' AS cat (TYPE sqlite, READ_ONLY);   -- optional: the model
CREATE VIEW security     AS SELECT data FROM read_json_auto('security.json');
CREATE VIEW traceability AS SELECT data FROM read_json_auto('traceability.json');
CREATE VIEW performance  AS SELECT data FROM read_json_auto('performance.json', maximum_object_size = 256000000);
-- tests.reach is an object keyed by microflow name: read it as JSON
CREATE VIEW reach AS
  SELECT k AS microflow, json_extract_string(j, '$.data.reach."' || k || '"') AS reach
  FROM (SELECT json AS j FROM read_json_objects('tests.json')), unnest(json_keys(j, '$.data.reach')) AS t(k);
```

Three questions no single page answers:

```duckdb
-- callable flows at medium or high risk that no test or journey reaches
SELECT f.name, f.risk
FROM (SELECT unnest(data.flows) AS f FROM security) JOIN reach r ON r.microflow = f.name
WHERE f.risk IN ('high', 'medium') AND r.reach = 'neither' ORDER BY f.risk, f.name;

-- the slowest microflows of the performance run: tested? how big?
SELECT m.name, round(sum(m.ms)) AS ms, any_value(r.reach) AS reach,
       (SELECT count(*) FROM cat.activities a WHERE a.MicroflowQualifiedName = m.name) AS activities
FROM (SELECT unnest(s.topMicroflows) AS m FROM (SELECT unnest(data.steps) AS s FROM performance))
LEFT JOIN reach r ON r.microflow = m.name
GROUP BY m.name ORDER BY ms DESC LIMIT 10;

-- requirements built but proven by nothing, and how much of their footprint runs at all
SELECT r.id, r.title, len(r.footprint) AS footprint,
       count(x.microflow) FILTER (WHERE x.reach <> 'neither') AS reached
FROM (SELECT unnest(m.requirements) AS r FROM (SELECT unnest(data.milestones) AS m FROM traceability))
LEFT JOIN reach x ON list_contains(r.footprint, x.microflow)
WHERE r.status = 'built' AND coalesce(len(r.tests), 0) + coalesce(len(r.journeys), 0) = 0
GROUP BY ALL ORDER BY footprint DESC;
```

On ako/PizzaV1 the second query showed that activity count does not predict cost: a
7-activity data source cost 159 ms, a 223-activity sub-microflow 188 ms — and the
slowest four had no test. Traps: an empty list is `null` in the JSON (use
`coalesce(len(…), 0)`, not `len(…) = 0`); the performance file is large (raise
`maximum_object_size`); `ATTACH … TYPE sqlite` downloads DuckDB's sqlite extension once.
A finding from such a query belongs in the assessment with the query that produced it,
so the next reviewer can re-run it.

## Step 2: Manual review

### A. Naming

The rules check form (prefixes, suffixes, Boolean names). Judge meaning:

- A flow's name says what it does beyond its prefix: `ACT_Customer_Save`, not
  `ACT_Save`.
- Entities are singular and name a business concept, not a screen.
- One module uses one naming style; a mix shows a module with several authors and no
  convention.

Prefix reference for microflows:

| Prefix | Purpose | Layer |
|--------|---------|-------|
| `ACT_` | UI action (button click handler) | UI |
| `DS_` | Data source for pages/widgets | UI |
| `NAV_` | Navigation microflow | UI |
| `LOGIN_` | Login/authentication flow | UI |
| `SUB_` | Reusable submicroflow | Logic |
| `VAL_` | Validation logic | Logic |
| `BCO_` / `ACO_` | Before / after commit handler | Event |
| `BCR_` / `ACR_` | Before / after create handler | Event |
| `BDE_` / `ADE_` | Before / after delete handler | Event |
| `BRO_` / `ARO_` | Before / after rollback handler | Event |
| `OCH_` | On-change handler | Event |
| `SCH_` / `SE_` | Scheduled event | Integration |
| `IVK_` | Invocable (called by external systems) | Integration |
| `DL_` | Deep link handler | Integration |
| `PWS_` | Published web service | Integration |
| `ASU_` | After startup microflow | System |

### B. Folder structure

Not in the catalog in enough detail to check automatically.

| Convention | What to check |
|-----------|---------------|
| Each module has `[objects]` and `[UI]` top-level folders | Folder data, or Studio Pro |
| `ACT_` and `DS_` microflows live in `[UI]` | They belong to pages |
| Entity-specific microflows grouped per entity under `[objects]` | e.g. `[objects]/Customer/BCO_Customer_Validate` |
| Pages organised by entity or feature | Not scattered |

### C. Security beyond the rules

`report security` gives the access grid, the client-callable flows that trust the
caller, unsafe defaults and a verdict per security rule. On top of it, check:

- Anonymous and newly registered users get no business data. The DIVD (Dutch
  Institute for Vulnerability Disclosure) found this misconfigured in many Mendix
  apps.
- Every published REST and OData service requires authentication.
- User input shown as HTML is sanitised (`HTMLSanitize()` from Community Commons).
- Values in REST URLs are checked for empty and `urlEncode()`d.
- Nanoflows hold no logic that must be enforced: they run on the client.
- External integrations use HTTPS.

### D. Maintainability

- Marketplace modules are not modified (fork or extend instead); a changed one cannot
  be upgraded without losing the change.
- A layout repeated three or more times is a snippet.
- Activity captions keep their defaults, so a flow reads the same in every module.
- Java and JavaScript are limited to what Mendix cannot do.
- Studio Pro warnings are cleared, not ignored (`mxcli docker check` lists them).

### E. Performance

`report performance` measures journeys at volume; the rules catch commits in loops and
calculated attributes. Review by reading:

- XPath avoids negation (`not()`, `!=`), which cannot use an index, and filters on
  indexed attributes.
- Filtering happens in XPath (`[Assoc/Entity/Attribute = value]`), not by retrieving
  everything and filtering in the flow.
- Operations on 100+ objects are batched (retrieve 1000, process, commit the batch).
- List operations (`find`, `filter`, `head`) replace loops where they can.
- Large exports use CSV, not the Export to Excel widget.
- Few objects are kept in the session.

### F. Architecture

`report architecture` shows layers, coupling, bounded contexts and cycles. Judge:

- Each module is one bounded context with a responsibility you can say in a sentence
  (and its domain-model documentation says it: `report-map`).
- Non-persistent entities are used for view models and DTOs.
- Page data sources stay simple; complex retrieval is a `DS_` microflow.

### G. Error handling

The rules flag service calls without custom error handling and "Continue" handling.
Check the design:

- The default is Stop + log + roll back + show the user a message.
- A REST call's error handler checks `$latestHttpResponse`: if present, log status
  code, reason and response body, then rethrow; if absent (timeout, connection
  refused), the default is enough.
- Logs carry context: the inputs and the response, not only "it failed".
- Errors are rethrown after logging, so the caller can handle them.

### H. Connectors (consumed services)

| Guideline | Details |
|-----------|---------|
| Simplify mappings | Remove empty and optional entities from import mappings |
| Domain model as a tree | Parents above children, generalisation where it fits, comments between sections |
| String attributes unlimited | Connector strings should not be length-limited |
| No default 0 on numbers | Leave connector numbers empty |
| Document the model | Each entity and attribute's purpose |
| One place for connection details | Endpoint, credentials and timeout in constants with empty defaults, or a ConnectionDetails entity |
| Operation naming | `METHOD_VERSION_OPERATION` |
| Folders | `Connection Details`, `Operations`, `Private` |

### I. UI

- Styling is in the theme's SCSS, not inline `style` attributes (`theme-styling` says
  which file compiles).
- SCSS rules are kept flat.
- Layout uses layout grids, not absolute positioning.

### J. Complexity hotspots (SIG/Sigrid model)

The catalog has McCabe complexity per microflow, aligned with the ISO 25010
maintainability model Sigrid uses:

```sql
select
  case
    when cyclomatic_complexity <= 5 then 'Low (1-5)'
    when cyclomatic_complexity <= 10 then 'Moderate (6-10)'
    when cyclomatic_complexity <= 20 then 'High (11-20)'
    else 'Very High (>20)'
  end as complexity_band,
  count(*) as microflow_count
from CATALOG.microflows
GROUP by complexity_band;

select qualified_name, cyclomatic_complexity, activity_count
from CATALOG.microflows
where cyclomatic_complexity > 10
ORDER by cyclomatic_complexity desc
limit 20;
```

Sigrid benchmarks: 5 stars when 90%+ of microflows are at complexity ≤ 5; 4 stars at
80%+ ≤ 10; 3 stars at 70%+ ≤ 15; below that is a maintainability risk.

### K. View entities

Use one where a microflow data source is too slow, where OQL replaces loops and
filters, or to flatten data for reports. They add OQL to the skills the team needs, so
only where the benefit is clear.

## Step 3: Write the assessment

```markdown
# Quality assessment: [project]

**Date:** [date] · **Mendix:** [version] · **Assessed with:** mxcli [version]

## Summary
[Three sentences: is it in good shape, what are the biggest risks, what to do first.]

## Measured
| Area | Result | Source |
|---|---|---|
| Builds | [yes / no: N errors by code / not checked] | mxcli report (Builds line) |
| Quality score | [X/100; lowest category and why] | mxcli report |
| Architecture | [cycles, coupling hotspots, dead code] | report architecture |
| Security | [open high findings; flows that trust the caller] | report security |
| Tests | [pass/fail; coverage of the app's modules] | report tests |
| Performance | [slowest step at volume] | report performance |
| Requirements | [built / partial / not built] | report traceability |
| Accepted findings | [count, with the brain decision ids] | mxcli lint --show-accepted |

## Reviewed by hand
[One short section per area from Step 2 with something to say; skip the rest.]

## Recommendations
1. [Highest impact first; each one specific and actionable]

## Not assessed
[What this assessment did not look at: anything a report was not run for, and what
the model cannot show — infrastructure, hosting, backups, licences, a penetration test.]
```

## Sources

- **Conventions.pdf** — Squad Apps internal best practices; the CONV lint rules
  automate part of it.
- **Mendix performance and security best practices** — official Mendix documentation.
- **DIVD Mendix findings** — entity access misconfigurations found in the wild.
- **SIG/Sigrid quality model** — ISO 25010 maintainability, McCabe benchmarks.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.