Produce and read the PRD-to-app traceability report (mxcli report traceability): every requirement in the project brain per milestone, with a derived status (built, partial, changed, not built, not traceable), the microflows that implement it, the tests and journeys that prove it, and the decisions and open questions that bear on it. Use when asked how far a specification is built, which requirements are untested, or to replace a hand-maintained requirements poster.
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 Traceability?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mendixlabs-report-traceability)
---
name: report-traceability
description: "Produce and read the PRD-to-app traceability report (mxcli report traceability): every requirement in the project brain per milestone, with a derived status (built, partial, changed, not built, not traceable), the microflows that implement it, the tests and journeys that prove it, and the decisions and open questions that bear on it. Use when asked how far a specification is built, which requirements are untested, or to replace a hand-maintained requirements poster."
---
<!-- 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 |
|---|---|
| 25-74 | Preconditions |
| 75-85 | Run it |
| 86-103 | Reading it |
| 104-107 | Related |
<!-- /skill-index -->
# Traceability Report
`mxcli report traceability` is the requirements-side counterpart of the tests report:
the tests report asks "what do the tests reach?", this one asks "is each requirement
built and proven?". Nothing on it is ticked off by hand.
## Preconditions
1. **Requirements are in the brain.** The report refuses to run without
`docs/brain/plan/`. A PRD item nobody captured cannot appear — capture each one,
anchored where it will be built, with its place in the spec at the end of the
title:
```bash
mxcli brain capture "Colleagues can offer a shift (slide 7)" --slice 02-swaps \
-a @Swaps.ACT_OfferShift -p app.mpr
```
2. **Anchor where it is built**, not where it is talked about: the microflow, page,
entity, attribute or published service that implements it. A role, enumeration or
constant anchor has no microflow footprint; the page says "no microflow implements
this", not "untested". `brain check` warns about such a requirement as
`UNPROVABLE` (`--strict` fails on it), and `brain capture` hints at it, so add
the implementing microflow as an anchor while you still know which it is.
3. **Verdicts live on decisions and open questions**, never on the requirement.
When the build differs from the spec, record it with the entry that explains it:
```bash
mxcli brain capture "Approval is per team" --changes a1b2c3:"per team, not per person" -a @Leave.ACT_Approve -p app.mpr
mxcli brain capture "Is mobile in scope?" --open --partly-meets d4e5f6:"until answered: web only" -a @Leave.ACT_Request -p app.mpr
```
That writes a ``Changes requirement `a1b2c3`: …`` / ``Partly meets requirement `d4e5f6`: …``
line in the body (`brain edit <id> --changes …` adds one later). `brain check`
refuses an unknown id, a verdict on a requirement, and a requirement that is
both changed and partly met; two verdicts of one kind are fine. On an open
question the verdict counts until it is answered: resolving a question filed
on a slice drops its verdict lines (and says how to re-record one), resolving
a module question keeps them on the decision it becomes. `brain plan --json`
reports each requirement's effective `status`, which this report shows.
4. **Milestones** live in the plan, on the slices they group. Put slices — or a
single requirement apart from its slice — in a milestone:
```bash
mxcli brain milestone "M1 — accounts" --slice 01-accounts -p app.mpr
mxcli brain milestone "M2 — swaps" --slice 02-swaps --requirement a1b2c3 -p app.mpr
```
That writes `milestone: "M1 — accounts"` in the slice file's frontmatter (a
``Milestone: `M2 — swaps` `` line on a requirement). `brain plan` shows the
column, and milestones are ordered by first appearance in slice-name order.
A project with the older `docs/brain/plan/traceability.json` moves it with
`mxcli brain milestone --import docs/brain/plan/traceability.json`; until then
the report still reads it, with a warning.
## Run it
```bash
mxcli report traceability -p app.mpr --junit results.xml \
--journeys journeys.jsonl --spans spans.jsonl -o docs/traceability.html
```
Evidence flags are the tests report's (`--tests`, `--junit`, `--run`, `--journeys`,
`--spans`, `--journeys-cmd`); see `report-tests` for their preconditions (fresh
seed, tracing on, never commit while tests run).
## Reading it
- **Status** — `built`: every anchor resolves (the same check as `brain plan`; the
command refuses to report if the two disagree). `partial` / `changed`: a decision
says so. `not built`: an anchor does not resolve. `not traceable`: no anchors.
- **Implemented by** is the footprint: the anchored microflow and its same-module
callees, microflows a page/workflow/service calls, microflows that write an anchored
entity, use an anchored attribute or association. Helpers with more than three
callers are left out — they belong to no single requirement.
- **Tests / journeys** reach the footprint (or the journey log names an anchored
page — needed for pages with only database data sources, which run no microflow).
- **Decisions / open questions** share an anchor or cite the id. Linking by shared
anchor is noisy around hub elements; cite the id in the body when it matters.
The three gap lists at the bottom are the work queue: not built as asked, built but
untested, and open questions that affect a requirement. Answer questions with
`mxcli brain resolve`; the next run moves them.
## Related
- `project-brain` — capturing requirements, decisions and questions.
- `report-tests` — the same evidence per module instead of per requirement.