Produce and read the architecture report (mxcli report architecture): layered module map, module health, coupling matrix, bounded contexts, cycles and unused documents. Use when a team asks how the app's modules depend on each other, where the real cycles and bounded contexts are, whether a module should be split, or what is safe to delete.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Report Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mendixlabs-report-architecture)
---
name: report-architecture
description: "Produce and read the architecture report (mxcli report architecture): layered module map, module health, coupling matrix, bounded contexts, cycles and unused documents. Use when a team asks how the app's modules depend on each other, where the real cycles and bounded contexts are, whether a module should be split, or what is safe to delete."
---
<!-- 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-47 | Run it |
| 48-64 | Checks before you trust the page |
| 65-82 | Reading it |
| 83-99 | Annotations file |
| 100-104 | Related |
<!-- /skill-index -->
# Architecture Report
`mxcli report architecture` turns the catalog's reference graph into a page a team
can read: each app module on its layer, module health, the coupling matrix in layer
order, bounded contexts (Leiden clusters × modules), god nodes, bridges, entity
hotspots, cycles with the exact edges that close them, and unused documents.
The command does the measuring. This skill is the judgement it cannot make.
## Run it
```bash
# measure once, keep the data
mxcli report architecture -p app.mpr --format json -o docs/architecture/arch.json
# render with a person's names and verdicts, as often as needed
mxcli report architecture --from docs/architecture/arch.json \
--annotations docs/architecture/notes.yaml -o docs/architecture/architecture.html
```
Marketplace modules, `System` and `MxTest` are outside the app by default — they
dominate god nodes and coupling otherwise. `--include-marketplace` brings them in;
`--modules A,B` or `--exclude C` choose the app's modules by hand.
Generated code, probes and fixtures inside an app module can dominate the clusters,
god nodes and unused list. `--exclude-docs 'Shop.FaultProbe*,RestClient.*'` (name
globs on the qualified name) leaves them out of every figure; the page states how
many documents the patterns matched, so a too-wide glob shows.
## Checks before you trust the page
1. **Domain versus navigation.** Layers, the matrix and cycles use domain edges
only; menus, layouts and page links are listed under "Navigation dependencies".
The stat "N with navigation counted" shows what the page would claim otherwise —
on a 14-module app every module was in one cycle until navigation was split out.
Do not "fix" a navigation cycle: the shell links every screen by design.
2. **"Dead" needs a second look.** Every entry under *Unused documents* marked
`verify` names why the graph cannot see a use: a microflow named in a constant
(`OIDC.GlobalUserProvisioningMicroflow`), a snippet in a layout region when the
catalog has no layout references, a name in text. Search for the name before
deleting anything. Java actions calling a microflow are invisible too (#1819).
3. **Cluster labels are not names.** A cluster is labelled by its dominant module and,
when that collides, its most central member. Name each one from its members in
the annotations file — three clusters all called after one big module is the
normal case, not an error.
## Reading it
- **Low cohesion is fine for a shell, an admin UI or an adapter.** The page names
the role when the model shows it (mostly navigation edges; mostly services and
mappings; an admin-named module). For any other low-cohesion module, ask whether
it is two modules.
- **Judging a cycle.** Each cycle lists its edges and the lightest one. A cycle is
*real* when both directions carry domain meaning (orders need invoices, invoices
read orders); it is *accidental* when one direction is a helper that belongs on
the other side — usually the lightest edge. Record the verdict as
`cycle:<A+B>`.
- **When a cluster suggests a split.** A module with a fifth or more of its
clustered documents in each of two clusters may hold two contexts. Check the
members: shared reference data is not a second context; two workflows that share
no entity are.
- **Bridges** (betweenness) are where a split would cut; a bridge that is a
utility microflow is a candidate for a shared module.
## Annotations file
```yaml
title: Architecture — Shop
summary: Two real cycles, both through Pricing; Shell is the app shell.
items:
"module:Shell": {note: "app shell: layouts and menu"}
"cluster:Orders.Order": {name: "Order intake", note: "Orders + half of Pricing"}
"cycle:Billing+Sales": {status: accidental, note: "move SUB_Total to Billing"}
"unused:Admin.OldExport": {status: unused, note: "confirmed, remove in 4.2"}
recommendations:
- Move Sales.SUB_Total into Billing to break the cycle.
```
Keys the page prints but the file has no entry for are simply unannotated; entries
that match nothing are listed at the bottom of the page so stale verdicts are seen.
## Related
- `graph-analysis` — the catalog tables underneath, for ad-hoc questions.
- `report-tests`, `report-security`, `report-performance`, `report-traceability` — the
other reports in the family; they share flags and the annotations format.