Skip to content
Back to skills

Report Quality

ASecurity

Produce and read the scored quality report (mxcli report): every lint rule run over the project, six category scores and an overall score out of 100, recommendations and findings. Use when asked for a project's quality score, to compare it with a baseline, or to decide which findings matter, and before accepting a finding as intended.

  • 143 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 22, 2026
ai-agentsrustgobashexpressdockersecurityperformance

Works with

  • cli

Security analysis

A100/100

Scanned November 22, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Report Quality?

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

Security grade badge for Report Quality
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mendixlabs-report-quality/badge)](https://www.skillsdirectory.com/skills/mendixlabs-report-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: report-quality
description: "Produce and read the scored quality report (mxcli report): every lint rule run over the project, six category scores and an overall score out of 100, recommendations and findings. Use when asked for a project's quality score, to compare it with a baseline, or to decide which findings matter, and before accepting a finding as intended."
---
<!-- 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 |
|---|---|
| 29-48 | Run it |
| 49-72 | Before trusting the number |
| 73-98 | Reading the score |
| 99-119 | Accepting a finding |
| 120-126 | Related |

<!-- /skill-index -->
# Quality Report

`mxcli report` with no kind is the **scored** report: it runs every lint rule, groups
the findings into categories (Security, Quality, Architecture, Performance, Naming,
Design, and Other for unmapped rules), scores each, and weighs them into one number
out of 100. The other reports each answer one question
(`report-architecture`, `report-security`, `report-tests`, `report-performance`,
`report-traceability`, `report-map`); this one is the summary across all rules.

## Run it

```bash
mxcli report -p app.mpr -o docs/quality.md
mxcli report -p app.mpr --format html -o docs/quality.html
mxcli report -p app.mpr --format json -o docs/quality.json   # for CI, or to compare runs
# the app's own modules only, without Marketplace and platform modules
mxcli report -p app.mpr --modules Sales,Billing
```

It builds a full catalog first, so the first run on a project takes a while. It also
runs Mendix's own consistency check (`mx check`) on a temporary copy of the project;
the project on disk is not changed.

```bash
mxcli setup mxbuild -p app.mpr                       # once: mx for the project's Mendix version
mxcli report -p app.mpr --mx-check-results check.json  # the file 'mx check <copy>.mpr -j check.json -w -d' wrote
mxcli report -p app.mpr --no-mx-check                # lint only; the report says it did not check
```

## Before trusting the number

- **Are all the rules running?** Without a `.claude/lint-rules/` directory beside the
  project (or above it, up to the repository root), only the built-in rules run and the
  bundled Starlark rules do not. The report warns on stderr, and the score looks
  *better*, because fewer rules can find anything. `mxcli init` installs them.
  `mxcli lint -p app.mpr --list-rules` shows what runs.
- **Which modules?** Without `--modules`, Marketplace and platform modules count too,
  and their findings are not yours to fix. With `--modules`, project-wide findings —
  security level, demo users, user-role mappings — are left out (they are about no
  one module). Use both: the full run for the project's settings, the scoped run
  for the code the team owns.
- **Does it build?** Read the **Builds** line above the score first. `no` means
  `mx check` found consistency errors, and a project with errors cannot be deployed,
  whatever it scores: the check's findings are not in the score, because no
  category weight can express "does not build". `not checked` means there was no mx
  for the project's version (or `--no-mx-check`); it never means clean. `unknown`
  means mx's output could not be read in full. JSON has `builds` (true/false, absent
  when not checked). The check covers the whole project, also under `--modules`.
- **Hundreds of one code** is usually one cause: a theme that lacks a design
  property (CE6083), or widget packages newer than the pages (CE0463, which
  `mxcli docker check` labels and `mxcli fix widgets` clears). The page groups the
  findings by code; `--format json` lists each one.

## Reading the score

Each category starts at 100 and loses a fixed amount **per finding** (an error costs
far more than a warning, a warning more than an info), floored at 0. The overall
score is a weighted average with Security weighted highest. The amounts and weights
live in `mdl/linter/report.go`.

Two consequences:

- **The penalty does not scale with the app.** A large app with many intended
  findings of one rule — row-level access rules, say — can sit at 0 in a category for
  reasons that are all deliberate. Read the findings, not the number.
- **The number is for comparison, not for judgement.** Record it at a known point
  (the template's first build, a release) and compare later runs with it; a score
  that fell is a finding. `bootstrap-app` records this baseline.

The **Detailed Findings** table is what to work through: the rule, its severity, where,
and why. `mxcli lint -p app.mpr` gives the same findings for one module or one
document (`--modules`, `--documents`) while fixing them.

The HTML page (`--format html`) does this arithmetic for you: each category's weight
and what it costs the headline, its penalty against the floor, and per rule the points
fixing it would gain — so "fix the most frequent rule" can be checked before anyone
does it (on one app, 94 findings of one rule gained nothing, because their category
stayed past the floor). `--annotations` with `rule:<ID>` gives a rule a verdict.

## Accepting a finding

When a finding is intended, record that decision once, in the project brain, rather
than ignoring it:

```bash
mxcli brain capture "Beperking has no access rules on purpose" \
  --accepts "SEC001:read only through DS_Beperkingen_Inzien, which logs every view" \
  -a @Dossier.Beperking -p app.mpr
```

The report then counts it apart ("Accepted (brain decisions, not scored)") and does not
score it; `lint` leaves it out of the open findings, and `report security` shows the
rule as accepted. A decision with no anchor accepts a project-wide finding (SEC013,
SEC003). When the rule stops firing there, `mxcli lint` reports the acceptance as
stale. `mxcli lint --show-accepted` lists what is accepted, with the deciding entry.

Accept only what is decided. Code still being written belongs in a lint baseline
(`mxcli lint --baseline lint-baseline.json --update-baseline`), which tracks new
findings without saying anything is intended.

## Related

- `assess-quality` — the manual review the rules cannot do, and how to write a full
  assessment that combines it with these reports.
- `write-lint-rules` — adding a project's own rules.
- `report-security` — the security findings with a verdict per rule, and what
  protects the data.

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.